1 ; Test strict vector addition on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare float @llvm.experimental.constrained.fadd.f32(float, float, metadata, metadata)
6 declare <4 x float> @llvm.experimental.constrained.fadd.v4f32(<4 x float>, <4 x float>, metadata, metadata)
8 ; Test a v4f32 addition.
9 define <4 x float> @f1(<4 x float> %dummy, <4 x float> %val1,
10 <4 x float> %val2) strictfp {
12 ; CHECK: vfasb %v24, %v26, %v28
14 %ret = call <4 x float> @llvm.experimental.constrained.fadd.v4f32(
15 <4 x float> %val1, <4 x float> %val2,
16 metadata !"round.dynamic",
17 metadata !"fpexcept.strict") strictfp
21 ; Test an f32 addition that uses vector registers.
22 define float @f2(<4 x float> %val1, <4 x float> %val2) strictfp {
24 ; CHECK: wfasb %f0, %v24, %v26
26 %scalar1 = extractelement <4 x float> %val1, i32 0
27 %scalar2 = extractelement <4 x float> %val2, i32 0
28 %ret = call float @llvm.experimental.constrained.fadd.f32(
29 float %scalar1, float %scalar2,
30 metadata !"round.dynamic",
31 metadata !"fpexcept.strict") strictfp