]> granicus.if.org Git - llvm/commitdiff
[RS4GC] Add a test case around calling conventions; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 3 May 2016 20:58:10 +0000 (20:58 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 3 May 2016 20:58:10 +0000 (20:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268436 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll

index ef0e2bd61afc6101d9267956ed059bb4e3042df6..559dc9d65012a8b2cb879b5d29bc6c33b3f61948 100644 (file)
@@ -5,6 +5,7 @@ target triple = "x86_64-apple-macosx10.11.0"
 
 declare i32 @llvm.experimental.deoptimize.i32(...)
 declare void @llvm.experimental.deoptimize.isVoid(...)
+declare cc42 double @llvm.experimental.deoptimize.f64(...)
 
 define i32 @caller_0(i32 addrspace(1)* %ptr) gc "statepoint-example" {
 ; CHECK-LABEL: @caller_0(
@@ -33,3 +34,13 @@ entry:
   call void(...) @llvm.experimental.deoptimize.isVoid() [ "deopt"(i32 0, i32 addrspace(1)* %ptr) ]
   ret void
 }
+
+define double @caller_3() gc "statepoint-example" {
+; CHECK-LABELL @caller_3(
+; CHECK: call cc42 token (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoint
+; CHECK:  unreachable
+
+entry:
+  %val = call cc42 double(...) @llvm.experimental.deoptimize.f64() [ "deopt"() ]
+  ret double %val
+}