From f99ddd26dc13518ff0a400741c8d54d707d3c6f0 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Tue, 3 May 2016 20:58:10 +0000 Subject: [PATCH] [RS4GC] Add a test case around calling conventions; NFC llvm-svn: 268436 --- .../RewriteStatepointsForGC/deopt-intrinsic.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll b/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll index ef0e2bd61af..559dc9d6501 100644 --- a/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll +++ b/test/Transforms/RewriteStatepointsForGC/deopt-intrinsic.ll @@ -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 +}