1 ; Test strict 128-bit floating-point square root on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare fp128 @llvm.experimental.constrained.sqrt.f128(fp128, metadata, metadata)
7 define void @f1(ptr %ptr) strictfp {
9 ; CHECK-DAG: vl [[REG:%v[0-9]+]], 0(%r2)
10 ; CHECK: wfsqxb [[RES:%v[0-9]+]], [[REG]]
11 ; CHECK: vst [[RES]], 0(%r2)
13 %f = load fp128, ptr %ptr
14 %res = call fp128 @llvm.experimental.constrained.sqrt.f128(
16 metadata !"round.dynamic",
17 metadata !"fpexcept.strict") strictfp
18 store fp128 %res, ptr %ptr