[llvm] r374186 - [FPEnv][NFC] Change test to conform to strictfp attribute rules.
Kevin P. Neal via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 10:24:56 PDT 2019
Author: kpn
Date: Wed Oct 9 10:24:56 2019
New Revision: 374186
URL: http://llvm.org/viewvc/llvm-project?rev=374186&view=rev
Log:
[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
Modified:
llvm/trunk/test/Bitcode/compatibility.ll
Modified: llvm/trunk/test/Bitcode/compatibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bitcode/compatibility.ll?rev=374186&r1=374185&r2=374186&view=diff
==============================================================================
--- llvm/trunk/test/Bitcode/compatibility.ll (original)
+++ llvm/trunk/test/Bitcode/compatibility.ll Wed Oct 9 10:24:56 2019
@@ -1374,9 +1374,6 @@ exit:
call void @f.nobuiltin() builtin
; CHECK: call void @f.nobuiltin() #43
- call void @f.strictfp() strictfp
- ; CHECK: call void @f.strictfp() #44
-
call fastcc noalias i32* @f.noalias() noinline
; CHECK: call fastcc noalias i32* @f.noalias() #12
tail call ghccc nonnull i32* @f.nonnull() minsize
@@ -1391,6 +1388,13 @@ define void @instructions.call_musttail(
ret void
}
+
+define void @instructions.strictfp() #44 {
+ call void @f.strictfp() strictfp
+ ; CHECK: call void @f.strictfp() #44
+
+ ret void
+}
define void @instructions.call_notail() {
notail call void @f1()
More information about the llvm-commits
mailing list