diff options
author | Kevin P. Neal <kevin.neal@sas.com> | 2024-03-15 12:04:55 -0400 |
---|---|---|
committer | Kevin P. Neal <kevin.neal@sas.com> | 2024-03-15 12:08:09 -0400 |
commit | ea628f087e42b24c8188f782cb81f146e06be40e (patch) | |
tree | 057012ed82278ce0cf2149eab202445729b703f5 | |
parent | 5a8a7ee9d12d7cd3680c7bc14a4750bd44d99c56 (diff) | |
download | llvm-ea628f087e42b24c8188f782cb81f146e06be40e.zip llvm-ea628f087e42b24c8188f782cb81f146e06be40e.tar.gz llvm-ea628f087e42b24c8188f782cb81f146e06be40e.tar.bz2 |
[FPEnv][PowerPC] Correct strictfp test.
Correct llvm-reduce strictfp test to follow the rules documented in the
LangRef:
https://llvm.org/docs/LangRef.html#constrained-floating-point-intrinsics
This test needed the strictfp attribute added to function definitions.
Test changes verified with D146845.
-rw-r--r-- | llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll b/llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll index c1d1461..50ebe04 100644 --- a/llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll +++ b/llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll @@ -2,7 +2,7 @@ ; RUN: llc -mtriple powerpc64le < %s | FileCheck %s ; Check constrained ops converted to call -define void @test(ptr %cast) { +define void @test(ptr %cast) strictfp { ; CHECK-LABEL: test: ; CHECK: # %bb.0: # %root ; CHECK-NEXT: mflr 0 @@ -51,7 +51,7 @@ for.body: } ; Check constrained ops converted to native instruction -define void @test2(ptr %cast) { +define void @test2(ptr %cast) strictfp { ; CHECK-LABEL: test2: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: li 4, 255 |