summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/token_landingpad.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/token_landingpad.ll')
-rw-r--r--llvm/test/CodeGen/X86/token_landingpad.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/token_landingpad.ll b/llvm/test/CodeGen/X86/token_landingpad.ll
new file mode 100644
index 00000000000..41e8a793235
--- /dev/null
+++ b/llvm/test/CodeGen/X86/token_landingpad.ll
@@ -0,0 +1,22 @@
+; RUN: llc < %s | FileCheck %s
+
+; This test verifies that SelectionDAG can handle landingPad of token type.
+
+define void @test() personality i32 (...)* @dummy_personality {
+; CHECK: .cfi_personality 155, _dummy_personality
+entry:
+ invoke void @dummy()
+ to label %return unwind label %unwind
+
+unwind: ; preds = %entry
+ %lp = landingpad token
+ cleanup
+ br label %return
+
+return: ; preds = %entry
+ ret void
+}
+
+declare void @dummy()
+
+declare i32 @dummy_personality(...)
OpenPOWER on IntegriCloud