1 ; Test strict vector multiply-and-add on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare <4 x float> @llvm.experimental.constrained.fma.v4f32(<4 x float>, <4 x float>, <4 x float>, metadata, metadata)
7 ; Test a v4f32 multiply-and-add.
8 define <4 x float> @f1(<4 x float> %dummy, <4 x float> %val1,
9 <4 x float> %val2, <4 x float> %val3) {
11 ; CHECK: vfmasb %v24, %v26, %v28, %v30
13 %ret = call <4 x float> @llvm.experimental.constrained.fma.v4f32 (
17 metadata !"round.dynamic",
18 metadata !"fpexcept.strict")
22 ; Test a v4f32 multiply-and-subtract.
23 define <4 x float> @f2(<4 x float> %dummy, <4 x float> %val1,
24 <4 x float> %val2, <4 x float> %val3) {
26 ; CHECK: vfmssb %v24, %v26, %v28, %v30
28 %negval3 = fsub <4 x float> <float -0.0, float -0.0,
29 float -0.0, float -0.0>, %val3
30 %ret = call <4 x float> @llvm.experimental.constrained.fma.v4f32 (
34 metadata !"round.dynamic",
35 metadata !"fpexcept.strict")