Skip to content

Commit ea628f0

Browse files
committed
[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.
1 parent 5a8a7ee commit ea628f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llc -mtriple powerpc64le < %s | FileCheck %s
33

44
; Check constrained ops converted to call
5-
define void @test(ptr %cast) {
5+
define void @test(ptr %cast) strictfp {
66
; CHECK-LABEL: test:
77
; CHECK: # %bb.0: # %root
88
; CHECK-NEXT: mflr 0
@@ -51,7 +51,7 @@ for.body:
5151
}
5252

5353
; Check constrained ops converted to native instruction
54-
define void @test2(ptr %cast) {
54+
define void @test2(ptr %cast) strictfp {
5555
; CHECK-LABEL: test2:
5656
; CHECK: # %bb.0: # %entry
5757
; CHECK-NEXT: li 4, 255

0 commit comments

Comments
 (0)