1 ; Test 128-bit floating-point square root on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare fp128 @llvm.sqrt.f128(fp128 %f)
7 define void @f1(ptr %ptr) {
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.sqrt.f128(fp128 %f)
15 store fp128 %res, ptr %ptr