annotate test/CodeGen/SystemZ/vec-sub-02.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 ; Test vector subtraction on z14.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 ;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 ; Test a v4f32 subtraction.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 define <4 x float> @f6(<4 x float> %dummy, <4 x float> %val1,
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 <4 x float> %val2) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 ; CHECK-LABEL: f6:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK: vfssb %v24, %v26, %v28
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 %ret = fsub <4 x float> %val1, %val2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 ret <4 x float> %ret
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 ; Test an f32 subtraction that uses vector registers.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 define float @f7(<4 x float> %val1, <4 x float> %val2) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 ; CHECK-LABEL: f7:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 ; CHECK: wfssb %f0, %v24, %v26
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 %scalar1 = extractelement <4 x float> %val1, i32 0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 %scalar2 = extractelement <4 x float> %val2, i32 0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 %ret = fsub float %scalar1, %scalar2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 ret float %ret
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 ; Test a v2f32 subtraction, which gets promoted to v4f32.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 define <2 x float> @f14(<2 x float> %val1, <2 x float> %val2) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 ; No particular output expected, but must compile.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 %ret = fsub <2 x float> %val1, %val2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 ret <2 x float> %ret
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 }