1 ; Test strict 128-bit square root.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5 declare fp128 @llvm.experimental.constrained.sqrt.f128(fp128, metadata, metadata)
7 ; There's no memory form of SQXBR.
8 define void @f1(fp128 *%ptr) {
10 ; CHECK: ld %f0, 0(%r2)
11 ; CHECK: ld %f2, 8(%r2)
12 ; CHECK: sqxbr %f0, %f0
13 ; CHECK: std %f0, 0(%r2)
14 ; CHECK: std %f2, 8(%r2)
16 %orig = load fp128, fp128 *%ptr
17 %sqrt = call fp128 @llvm.experimental.constrained.sqrt.f128(
19 metadata !"round.dynamic",
20 metadata !"fpexcept.strict")
21 store fp128 %sqrt, fp128 *%ptr