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