1 ; Test 128-bit square root.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
5 declare fp128 @llvm.sqrt.f128(fp128 %f)
7 ; There's no memory form of SQXBR.
8 define void @f1(ptr %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, ptr %ptr
17 %sqrt = call fp128 @llvm.sqrt.f128(fp128 %orig)
18 store fp128 %sqrt, ptr %ptr