[llvm] ea628f0 - [FPEnv][PowerPC] Correct strictfp test.

Kevin P. Neal via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 15 09:11:25 PDT 2024


Author: Kevin P. Neal
Date: 2024-03-15T12:08:09-04:00
New Revision: ea628f087e42b24c8188f782cb81f146e06be40e

URL: https://github.com/llvm/llvm-project/commit/ea628f087e42b24c8188f782cb81f146e06be40e
DIFF: https://github.com/llvm/llvm-project/commit/ea628f087e42b24c8188f782cb81f146e06be40e.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll b/llvm/test/CodeGen/PowerPC/ctrloop-constrained-fp.ll
index c1d1461664418c..50ebe0471dceac 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


        


More information about the llvm-commits mailing list