[RS4GC] Add a test case around calling conventions; NFC

llvm-svn: 268436
This commit is contained in:
Sanjoy Das 2016-05-03 20:58:10 +00:00
parent 9a635e6090
commit f99ddd26dc

View 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
}