brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · f8dc20b Raw
21 lines · plain
1; Test strict 128-bit floating-point square root on z14.2;3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s4 5declare fp128 @llvm.experimental.constrained.sqrt.f128(fp128, metadata, metadata)6 7define void @f1(ptr %ptr) strictfp {8; CHECK-LABEL: f1:9; CHECK-DAG: vl [[REG:%v[0-9]+]], 0(%r2)10; CHECK: wfsqxb [[RES:%v[0-9]+]], [[REG]]11; CHECK: vst [[RES]], 0(%r2)12; CHECK: br %r1413  %f = load fp128, ptr %ptr14  %res = call fp128 @llvm.experimental.constrained.sqrt.f128(15                        fp128 %f,16                        metadata !"round.dynamic",17                        metadata !"fpexcept.strict") strictfp18  store fp128 %res, ptr %ptr19  ret void20}21