annotate test/CodeGen/SystemZ/vec-sqrt-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 f32 and v4f32 square root 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 declare float @llvm.sqrt.f32(float)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 define <4 x float> @f1(<4 x float> %val) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK-LABEL: f1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: vfsqsb %v24, %v24
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 %ret = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %val)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 ret <4 x float> %ret
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 define float @f2(<4 x float> %val) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 ; CHECK-LABEL: f2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 ; CHECK: wfsqsb %f0, %v24
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 ; CHECK: br %r14
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 %scalar = extractelement <4 x float> %val, i32 0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 %ret = call float @llvm.sqrt.f32(float %scalar)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 ret float %ret
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 }