1 ; Test strict vector subtraction on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare float @llvm.experimental.constrained.fsub.f32(float, float, metadata, metadata)
6 declare <4 x float> @llvm.experimental.constrained.fsub.v4f32(<4 x float>, <4 x float>, metadata, metadata)
7 declare <1 x fp128> @llvm.experimental.constrained.fsub.v1f128(<1 x fp128>, <1 x fp128>, metadata, metadata)
9 ; Test a v4f32 subtraction.
10 define <4 x float> @f6(<4 x float> %dummy, <4 x float> %val1,
11 <4 x float> %val2) #0 {
13 ; CHECK: vfssb %v24, %v26, %v28
15 %ret = call <4 x float> @llvm.experimental.constrained.fsub.v4f32(
16 <4 x float> %val1, <4 x float> %val2,
17 metadata !"round.dynamic",
18 metadata !"fpexcept.strict") #0
22 ; Test an f32 subtraction that uses vector registers.
23 define float @f7(<4 x float> %val1, <4 x float> %val2) #0 {
25 ; CHECK: wfssb %f0, %v24, %v26
27 %scalar1 = extractelement <4 x float> %val1, i32 0
28 %scalar2 = extractelement <4 x float> %val2, i32 0
29 %ret = call float @llvm.experimental.constrained.fsub.f32(
30 float %scalar1, float %scalar2,
31 metadata !"round.dynamic",
32 metadata !"fpexcept.strict") #0
36 ; Test a v1f128 subtraction.
37 define <1 x fp128> @f8(<1 x fp128> %dummy, <1 x fp128> %val1,
38 <1 x fp128> %val2) #0 {
40 ; CHECK: wfsxb %v24, %v26, %v28
42 %ret = call <1 x fp128> @llvm.experimental.constrained.fsub.v1f128(
43 <1 x fp128> %val1, <1 x fp128> %val2,
44 metadata !"round.dynamic",
45 metadata !"fpexcept.strict") #0
49 attributes #0 = { strictfp }