1 ; Test strict vector division on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare float @llvm.experimental.constrained.fdiv.f32(float, float, metadata, metadata)
6 declare <4 x float> @llvm.experimental.constrained.fdiv.v4f32(<4 x float>, <4 x float>, metadata, metadata)
8 ; Test a v4f32 division.
9 define <4 x float> @f1(<4 x float> %dummy, <4 x float> %val1,
10 <4 x float> %val2) #0 {
12 ; CHECK: vfdsb %v24, %v26, %v28
14 %ret = call <4 x float> @llvm.experimental.constrained.fdiv.v4f32(
15 <4 x float> %val1, <4 x float> %val2,
16 metadata !"round.dynamic",
17 metadata !"fpexcept.strict") #0
21 ; Test an f32 division that uses vector registers.
22 define float @f2(<4 x float> %val1, <4 x float> %val2) #0 {
24 ; CHECK: wfdsb %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.fdiv.f32(
29 float %scalar1, float %scalar2,
30 metadata !"round.dynamic",
31 metadata !"fpexcept.strict") #0
35 attributes #0 = { strictfp }