1 ; Test f64 and v2f64 square root.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s
5 declare double @llvm.sqrt.f64(double)
6 declare <2 x double> @llvm.sqrt.v2f64(<2 x double>)
8 define <2 x double> @f1(<2 x double> %val) {
10 ; CHECK: vfsqdb %v24, %v24
12 %ret = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %val)
16 define double @f2(<2 x double> %val) {
18 ; CHECK: wfsqdb %f0, %v24
20 %scalar = extractelement <2 x double> %val, i32 0
21 %ret = call double @llvm.sqrt.f64(double %scalar)