1 ; Test strict 128-bit floating-point subtraction on z14.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s
5 declare fp128 @llvm.experimental.constrained.fsub.f128(fp128, fp128, metadata, metadata)
7 define void @f1(ptr %ptr1, ptr %ptr2) strictfp {
9 ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2)
10 ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3)
11 ; CHECK: wfsxb [[RES:%v[0-9]+]], [[REG1]], [[REG2]]
12 ; CHECK: vst [[RES]], 0(%r2)
14 %f1 = load fp128, ptr %ptr1
15 %f2 = load fp128, ptr %ptr2
16 %sum = call fp128 @llvm.experimental.constrained.fsub.f128(
18 metadata !"round.dynamic",
19 metadata !"fpexcept.strict") strictfp
20 store fp128 %sum, ptr %ptr1