Skip to content

Commit 44e988a

Browse files
committedOct 9, 2019
[FPEnv][NFC] Change test to conform to strictfp attribute rules.
In particular, the function definition is not marked strictfp despite containing a function marked strictfp. Also, if any function call is marked strictfp then all function calls in that function must be marked. This change to move the one strictfp call to a new properly marked function meets all the new rules. Tested with a stricter version of D68233. Reviewed by: spatel Approved by: spatel Differential Revision: https://reviews.llvm.org/D68713 llvm-svn: 374186
1 parent f98606f commit 44e988a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎llvm/test/Bitcode/compatibility.ll

+7-3
Original file line numberDiff line numberDiff line change
@@ -1374,9 +1374,6 @@ exit:
13741374
call void @f.nobuiltin() builtin
13751375
; CHECK: call void @f.nobuiltin() #43
13761376

1377-
call void @f.strictfp() strictfp
1378-
; CHECK: call void @f.strictfp() #44
1379-
13801377
call fastcc noalias i32* @f.noalias() noinline
13811378
; CHECK: call fastcc noalias i32* @f.noalias() #12
13821379
tail call ghccc nonnull i32* @f.nonnull() minsize
@@ -1392,6 +1389,13 @@ define void @instructions.call_musttail(i8* inalloca %val) {
13921389
ret void
13931390
}
13941391

1392+
define void @instructions.strictfp() #44 {
1393+
call void @f.strictfp() strictfp
1394+
; CHECK: call void @f.strictfp() #44
1395+
1396+
ret void
1397+
}
1398+
13951399
define void @instructions.call_notail() {
13961400
notail call void @f1()
13971401
; CHECK: notail call void @f1()

0 commit comments

Comments
 (0)
Please sign in to comment.