1 ; Test f32 and v4f32 square root on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare float @llvm.sqrt.f32(float)
6 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
8 define <4 x float> @f1(<4 x float> %val) {
10 ; CHECK: vfsqsb %v24, %v24
12 %ret = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %val)
16 define float @f2(<4 x float> %val) {
18 ; CHECK: wfsqsb %f0, %v24
20 %scalar = extractelement <4 x float> %val, i32 0
21 %ret = call float @llvm.sqrt.f32(float %scalar)