1 ; Test strict vector multiply-and-add.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 declare <2 x double> @llvm.experimental.constrained.fma.v2f64(<2 x double>, <2 x double>, <2 x double>, metadata, metadata)
7 ; Test a v2f64 multiply-and-add.
8 define <2 x double> @f4(<2 x double> %dummy, <2 x double> %val1,
9 <2 x double> %val2, <2 x double> %val3) {
11 ; CHECK: vfmadb %v24, %v26, %v28, %v30
13 %ret = call <2 x double> @llvm.experimental.constrained.fma.v2f64 (
17 metadata !"round.dynamic",
18 metadata !"fpexcept.strict")
22 ; Test a v2f64 multiply-and-subtract.
23 define <2 x double> @f5(<2 x double> %dummy, <2 x double> %val1,
24 <2 x double> %val2, <2 x double> %val3) {
26 ; CHECK: vfmsdb %v24, %v26, %v28, %v30
28 %negval3 = fsub <2 x double> <double -0.0, double -0.0>, %val3
29 %ret = call <2 x double> @llvm.experimental.constrained.fma.v2f64 (
32 <2 x double> %negval3,
33 metadata !"round.dynamic",
34 metadata !"fpexcept.strict")