summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin P. Neal <kevin.neal@sas.com>2019-10-09 17:24:56 +0000
committerKevin P. Neal <kevin.neal@sas.com>2019-10-09 17:24:56 +0000
commit44e988ab14cb387eddfeacd1493792a6aa6aee81 (patch)
tree4169267036a89e54d2d4c358a98bd156d70f6f1a
parentf98606f17735daa7a1cf3b774846445f3a178879 (diff)
downloadbcm5719-llvm-44e988ab14cb387eddfeacd1493792a6aa6aee81.tar.gz
bcm5719-llvm-44e988ab14cb387eddfeacd1493792a6aa6aee81.zip
[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
-rw-r--r--llvm/test/Bitcode/compatibility.ll10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/test/Bitcode/compatibility.ll b/llvm/test/Bitcode/compatibility.ll
index 9e7f6ac9917..3bc806229d0 100644
--- a/llvm/test/Bitcode/compatibility.ll
+++ b/llvm/test/Bitcode/compatibility.ll
@@ -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
@@ -1392,6 +1389,13 @@ define void @instructions.call_musttail(i8* inalloca %val) {
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()
; CHECK: notail call void @f1()
OpenPOWER on IntegriCloud