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