1; Test f64 and v2f64 square root. 2; 3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 | FileCheck %s 4 5declare double @llvm.sqrt.f64(double) 6declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) 7 8define <2 x double> @f1(<2 x double> %val) { 9; CHECK-LABEL: f1: 10; CHECK: vfsqdb %v24, %v24 11; CHECK: br %r14 12 %ret = call <2 x double> @llvm.sqrt.v2f64(<2 x double> %val) 13 ret <2 x double> %ret 14} 15 16define double @f2(<2 x double> %val) { 17; CHECK-LABEL: f2: 18; CHECK: wfsqdb %f0, %v24 19; CHECK: br %r14 20 %scalar = extractelement <2 x double> %val, i32 0 21 %ret = call double @llvm.sqrt.f64(double %scalar) 22 ret double %ret 23} 24