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) #0 {
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") #0
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) #0 {
26 ; CHECK: vfmssb %v24, %v26, %v28, %v30
28 %negval3 = fneg <4 x float> %val3
29 %ret = call <4 x float> @llvm.experimental.constrained.fma.v4f32 (
33 metadata !"round.dynamic",
34 metadata !"fpexcept.strict") #0
38 attributes #0 = { strictfp }