annotate test/CodeGen/SystemZ/fp-mul-12.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 declare fp128 @llvm.fma.f128(fp128 %f1, fp128 %f2, fp128 %f3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 define void @f1(fp128 *%ptr1, fp128 *%ptr2, fp128 *%ptr3, fp128 *%dst) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 ; CHECK-LABEL: f1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK-DAG: vl [[REG3:%v[0-9]+]], 0(%r4)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: wfmaxb [[RES:%v[0-9]+]], [[REG1]], [[REG2]], [[REG3]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; CHECK: vst [[RES]], 0(%r5)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 %f1 = load fp128, fp128 *%ptr1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 %f2 = load fp128, fp128 *%ptr2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 %f3 = load fp128, fp128 *%ptr3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 %res = call fp128 @llvm.fma.f128 (fp128 %f1, fp128 %f2, fp128 %f3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 store fp128 %res, fp128 *%dst
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 define void @f2(fp128 *%ptr1, fp128 *%ptr2, fp128 *%ptr3, fp128 *%dst) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 ; CHECK-LABEL: f2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 ; CHECK-DAG: vl [[REG3:%v[0-9]+]], 0(%r4)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 ; CHECK: wfmsxb [[RES:%v[0-9]+]], [[REG1]], [[REG2]], [[REG3]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 ; CHECK: vst [[RES]], 0(%r5)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 %f1 = load fp128, fp128 *%ptr1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 %f2 = load fp128, fp128 *%ptr2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 %f3 = load fp128, fp128 *%ptr3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 %neg = fsub fp128 0xL00000000000000008000000000000000, %f3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 %res = call fp128 @llvm.fma.f128 (fp128 %f1, fp128 %f2, fp128 %neg)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 store fp128 %res, fp128 *%dst
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 define void @f3(fp128 *%ptr1, fp128 *%ptr2, fp128 *%ptr3, fp128 *%dst) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 ; CHECK-LABEL: f3:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41 ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 ; CHECK-DAG: vl [[REG3:%v[0-9]+]], 0(%r4)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 ; CHECK: wfnmaxb [[RES:%v[0-9]+]], [[REG1]], [[REG2]], [[REG3]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44 ; CHECK: vst [[RES]], 0(%r5)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 %f1 = load fp128, fp128 *%ptr1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47 %f2 = load fp128, fp128 *%ptr2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48 %f3 = load fp128, fp128 *%ptr3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 %res = call fp128 @llvm.fma.f128 (fp128 %f1, fp128 %f2, fp128 %f3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50 %negres = fsub fp128 0xL00000000000000008000000000000000, %res
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
51 store fp128 %negres, fp128 *%dst
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
52 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
53 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
54
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
55 define void @f4(fp128 *%ptr1, fp128 *%ptr2, fp128 *%ptr3, fp128 *%dst) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
56 ; CHECK-LABEL: f4:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
57 ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
58 ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
59 ; CHECK-DAG: vl [[REG3:%v[0-9]+]], 0(%r4)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
60 ; CHECK: wfnmsxb [[RES:%v[0-9]+]], [[REG1]], [[REG2]], [[REG3]]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
61 ; CHECK: vst [[RES]], 0(%r5)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
62 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
63 %f1 = load fp128, fp128 *%ptr1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
64 %f2 = load fp128, fp128 *%ptr2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
65 %f3 = load fp128, fp128 *%ptr3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
66 %neg = fsub fp128 0xL00000000000000008000000000000000, %f3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
67 %res = call fp128 @llvm.fma.f128 (fp128 %f1, fp128 %f2, fp128 %neg)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
68 %negres = fsub fp128 0xL00000000000000008000000000000000, %res
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
69 store fp128 %negres, fp128 *%dst
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
70 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
71 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
72