1 ; Test strict f32 and v4f32 square root on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare float @llvm.experimental.constrained.sqrt.f32(float, metadata, metadata)
6 declare <4 x float> @llvm.experimental.constrained.sqrt.v4f32(<4 x float>, metadata, metadata)
8 define <4 x float> @f1(<4 x float> %val) #0 {
10 ; CHECK: vfsqsb %v24, %v24
12 %ret = call <4 x float> @llvm.experimental.constrained.sqrt.v4f32(
14 metadata !"round.dynamic",
15 metadata !"fpexcept.strict") #0
19 define float @f2(<4 x float> %val) #0 {
21 ; CHECK: wfsqsb %f0, %v24
23 %scalar = extractelement <4 x float> %val, i32 0
24 %ret = call float @llvm.experimental.constrained.sqrt.f32(
26 metadata !"round.dynamic",
27 metadata !"fpexcept.strict") #0
31 attributes #0 = { strictfp }