1 ; Test vector multiply-and-add on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare <4 x float> @llvm.fma.v4f32(<4 x float>, <4 x float>, <4 x float>)
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.fma.v4f32 (<4 x float> %val1,
19 ; Test a v4f32 multiply-and-subtract.
20 define <4 x float> @f2(<4 x float> %dummy, <4 x float> %val1,
21 <4 x float> %val2, <4 x float> %val3) {
23 ; CHECK: vfmssb %v24, %v26, %v28, %v30
25 %negval3 = fneg <4 x float> %val3
26 %ret = call <4 x float> @llvm.fma.v4f32 (<4 x float> %val1,