[llvm] r268436 - [RS4GC] Add a test case around calling conventions; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 13:58:11 PDT 2016
Author: sanjoy
Date: Tue May 3 15:58:10 2016
New Revision: 268436
URL: http://llvm.org/viewvc/llvm-project?rev=268436&view=rev
Log:
[RS4GC] Add a test case around calling conventions; NFC
Modified:
llvm/trunk/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll
Modified: llvm/trunk/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll?rev=268436&r1=268435&r2=268436&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll (original)
+++ llvm/trunk/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll Tue May 3 15:58:10 2016
@@ -5,6 +5,7 @@ target triple = "x86_64-apple-macosx10.1
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
+}
More information about the llvm-commits
mailing list