diff options
author | Kevin P. Neal <kevin.neal@sas.com> | 2019-10-04 17:03:46 +0000 |
---|---|---|
committer | Kevin P. Neal <kevin.neal@sas.com> | 2019-10-04 17:03:46 +0000 |
commit | 68b805212134ae16769e38af7da4861bb8b809dd (patch) | |
tree | 4b9d3101db485b0f5880eda7c9e81de5061bb3c4 /llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll | |
parent | 9819b9d35fad46783b4c6292b3ce2e414c9fe54a (diff) | |
download | bcm5719-llvm-68b805212134ae16769e38af7da4861bb8b809dd.tar.gz bcm5719-llvm-68b805212134ae16769e38af7da4861bb8b809dd.zip |
[FPEnv] Strict FP tests should use the requisite function attributes.
A set of function attributes is required in any function that uses constrained
floating point intrinsics. None of our tests use these attributes.
This patch fixes this.
These tests have been tested against the IR verifier changes in D68233.
Reviewed by: andrew.w.kaylor, cameron.mcinally, uweigand
Approved by: andrew.w.kaylor
Differential Revision: https://reviews.llvm.org/D67925
llvm-svn: 373761
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll')
-rw-r--r-- | llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll b/llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll index d4ec5fc6854..98a3454a898 100644 --- a/llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll +++ b/llvm/test/CodeGen/SystemZ/fp-strict-add-04.ll @@ -4,7 +4,7 @@ declare fp128 @llvm.experimental.constrained.fadd.f128(fp128, fp128, metadata, metadata) -define void @f1(fp128 *%ptr1, fp128 *%ptr2) { +define void @f1(fp128 *%ptr1, fp128 *%ptr2) strictfp { ; CHECK-LABEL: f1: ; CHECK-DAG: vl [[REG1:%v[0-9]+]], 0(%r2) ; CHECK-DAG: vl [[REG2:%v[0-9]+]], 0(%r3) @@ -16,7 +16,7 @@ define void @f1(fp128 *%ptr1, fp128 *%ptr2) { %sum = call fp128 @llvm.experimental.constrained.fadd.f128( fp128 %f1, fp128 %f2, metadata !"round.dynamic", - metadata !"fpexcept.strict") + metadata !"fpexcept.strict") strictfp store fp128 %sum, fp128 *%ptr1 ret void } |