llvm.org GIT mirror llvm / 5fb55f6
[RS4GC] Add a test case around calling conventions; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268436 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 3 years ago
1 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
44
55 declare i32 @llvm.experimental.deoptimize.i32(...)
66 declare void @llvm.experimental.deoptimize.isVoid(...)
7 declare cc42 double @llvm.experimental.deoptimize.f64(...)
78
89 define i32 @caller_0(i32 addrspace(1)* %ptr) gc "statepoint-example" {
910 ; CHECK-LABEL: @caller_0(
3233 call void(...) @llvm.experimental.deoptimize.isVoid() [ "deopt"(i32 0, i32 addrspace(1)* %ptr) ]
3334 ret void
3435 }
36
37 define double @caller_3() gc "statepoint-example" {
38 ; CHECK-LABELL @caller_3(
39 ; CHECK: call cc42 token (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoint
40 ; CHECK: unreachable
41
42 entry:
43 %val = call cc42 double(...) @llvm.experimental.deoptimize.f64() [ "deopt"() ]
44 ret double %val
45 }