From 4a1c8fc061b72b7115e0181c8f37fd17df7f0f0e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 17 Sep 2009 23:42:06 +0000 Subject: rename file llvm-svn: 82178 --- .../CodeGen/X86/2007-09-03-X86-64-EhSelector.ll | 38 ---------------------- llvm/test/CodeGen/X86/personality64.ll | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 llvm/test/CodeGen/X86/2007-09-03-X86-64-EhSelector.ll create mode 100644 llvm/test/CodeGen/X86/personality64.ll (limited to 'llvm') diff --git a/llvm/test/CodeGen/X86/2007-09-03-X86-64-EhSelector.ll b/llvm/test/CodeGen/X86/2007-09-03-X86-64-EhSelector.ll deleted file mode 100644 index e99a0f1d9f7..00000000000 --- a/llvm/test/CodeGen/X86/2007-09-03-X86-64-EhSelector.ll +++ /dev/null @@ -1,38 +0,0 @@ -; RUN: llc < %s -march=x86-64 -enable-eh -; 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 ) ; [#uses=2] - %tmp18 = icmp slt i64 %eh_select13, 0 ; [#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 ] ; [#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() diff --git a/llvm/test/CodeGen/X86/personality64.ll b/llvm/test/CodeGen/X86/personality64.ll new file mode 100644 index 00000000000..e99a0f1d9f7 --- /dev/null +++ b/llvm/test/CodeGen/X86/personality64.ll @@ -0,0 +1,38 @@ +; RUN: llc < %s -march=x86-64 -enable-eh +; 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 ) ; [#uses=2] + %tmp18 = icmp slt i64 %eh_select13, 0 ; [#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 ] ; [#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() -- cgit v1.2.3