diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-17 23:55:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-17 23:55:12 +0000 |
commit | 7ea9890962fae195601d3cf0db5789cdbd5bf69f (patch) | |
tree | f91aeafaae622faf923fbf3862605d3c710d486a /test/CodeGen/X86/personality.ll | |
parent | 3a5815f90feb1eb791f6383acd62e6c5ed75cada (diff) | |
download | llvm-7ea9890962fae195601d3cf0db5789cdbd5bf69f.tar.gz llvm-7ea9890962fae195601d3cf0db5789cdbd5bf69f.tar.bz2 llvm-7ea9890962fae195601d3cf0db5789cdbd5bf69f.tar.xz |
rename test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/personality.ll')
-rw-r--r-- | test/CodeGen/X86/personality.ll | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/CodeGen/X86/personality.ll b/test/CodeGen/X86/personality.ll new file mode 100644 index 0000000000..853cf11f9a --- /dev/null +++ b/test/CodeGen/X86/personality.ll @@ -0,0 +1,41 @@ +; RUN: llc < %s -mtriple=x86_64-apple-darwin9 | FileCheck %s -check-prefix=X64 +; PR1632 + +define void @_Z1fv() { +entry: + invoke void @_Z1gv( ) + to label %return unwind label %unwind + +unwind: ; preds = %entry + br i1 false, label %eh_then, label %cleanup20 + +eh_then: ; preds = %unwind + invoke void @__cxa_end_catch( ) + to label %return unwind label %unwind10 + +unwind10: ; preds = %eh_then + %eh_select13 = tail call i64 (i8*, i8*, ...)* @llvm.eh.selector.i64( i8* null, i8* bitcast (void ()* @__gxx_personality_v0 to i8*), i32 1 ) ; <i32> [#uses=2] + %tmp18 = icmp slt i64 %eh_select13, 0 ; <i1> [#uses=1] + br i1 %tmp18, label %filter, label %cleanup20 + +filter: ; preds = %unwind10 + unreachable + +cleanup20: ; preds = %unwind10, %unwind + %eh_selector.0 = phi i64 [ 0, %unwind ], [ %eh_select13, %unwind10 ] ; <i32> [#uses=0] + ret void + +return: ; preds = %eh_then, %entry + ret void +} + +declare void @_Z1gv() + +declare i64 @llvm.eh.selector.i64(i8*, i8*, ...) + +declare void @__gxx_personality_v0() + +declare void @__cxa_end_catch() + +; X64: Leh_frame_common_begin: +; X64: .long ___gxx_personality_v0@GOTPCREL+4 |