File: qpx-qvfmadd.ll

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (79 lines) | stat: -rw-r--r-- 2,414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
; RUN: llc -verify-machineinstrs -stop-after=finalize-isel < %s -mcpu=a2q | FileCheck %s
target triple = "powerpc64-bgq-linux"

define <2 x double> @test_qvfmadd(<2 x double> %0, <2 x double> %1, <2 x double> %2) {
; CHECK: test_qvfmadd
; CHECK: QVFMADD %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <2 x double> %2, %1
  %5 = fadd reassoc nsz <2 x double> %4, %0
  ret <2 x double> %5
}

define <4 x float> @test_qvfmadds(<4 x float> %0, <4 x float> %1, <4 x float> %2) {
; CHECK: test_qvfmadds
; CHECK: QVFMADDSs %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <4 x float> %2, %1
  %5 = fadd reassoc nsz <4 x float> %4, %0
  ret <4 x float> %5
}

define <2 x double> @test_qvfnmadd(<2 x double> %0, <2 x double> %1, <2 x double> %2) {
; CHECK: test_qvfnmadd
; CHECK: QVFNMADD %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <2 x double> %2, %1
  %5 = fadd reassoc nsz <2 x double> %4, %0
  %6 = fneg reassoc nsz <2 x double> %5
  ret <2 x double> %6
}

define <4 x float> @test_qvfnmadds(<4 x float> %0, <4 x float> %1, <4 x float> %2) {
; CHECK: test_qvfnmadds
; CHECK: QVFNMADDSs %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <4 x float> %2, %1
  %5 = fadd reassoc nsz <4 x float> %4, %0
  %6 = fneg reassoc nsz <4 x float> %5
  ret <4 x float> %6
}

define <2 x double> @test_qvfmsub(<2 x double> %0, <2 x double> %1, <2 x double> %2) {
; CHECK: test_qvfmsub
; CHECK: QVFMSUB %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <2 x double> %2, %1
  %5 = fsub reassoc nsz <2 x double> %4, %0
  ret <2 x double> %5
}

define <4 x float> @test_qvfmsubs(<4 x float> %0, <4 x float> %1, <4 x float> %2) {
; CHECK: test_qvfmsubs
; CHECK: QVFMSUBSs %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <4 x float> %2, %1
  %5 = fsub reassoc nsz <4 x float> %4, %0
  ret <4 x float> %5
}

define <2 x double> @test_qvfnmsub(<2 x double> %0, <2 x double> %1, <2 x double> %2) {
; CHECK: test_qvfnmsub
; CHECK: QVFNMSUB %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <2 x double> %2, %1
  %5 = fsub reassoc nsz <2 x double> %4, %0
  %6 = fneg reassoc nsz <2 x double> %5
  ret <2 x double> %6
}

define <4 x float> @test_qvfnmsubs(<4 x float> %0, <4 x float> %1, <4 x float> %2) {
; CHECK: test_qvfnmsubs
; CHECK: QVFNMSUBSs %2, %1, %0, implicit $rm
;
  %4 = fmul reassoc nsz <4 x float> %2, %1
  %5 = fsub reassoc nsz <4 x float> %4, %0
  %6 = fneg reassoc nsz <4 x float> %5
  ret <4 x float> %6
}