[llvm-commits] [llvm] r139039 - /llvm/trunk/test/CodeGen/Mips/eh.ll
Bill Wendling
isanbard at gmail.com
Fri Sep 2 14:27:08 PDT 2011
Author: void
Date: Fri Sep 2 16:27:08 2011
New Revision: 139039
URL: http://llvm.org/viewvc/llvm-project?rev=139039&view=rev
Log:
Better fix for this testcase. Update it to the new EH scheme entirely.
Modified:
llvm/trunk/test/CodeGen/Mips/eh.ll
Modified: llvm/trunk/test/CodeGen/Mips/eh.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/eh.ll?rev=139039&r1=139038&r2=139039&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/eh.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/eh.ll Fri Sep 2 16:27:08 2011
@@ -30,12 +30,14 @@
lpad: ; preds = %entry
; CHECK-EL: # %lpad
; CHECK-EL: lw $gp
-; CHECK-EL: beq $3
+; CHECK-EL: beq $5
- %exn = tail call i8* @llvm.eh.exception() nounwind
- %eh.selector = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %exn, i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*), i8* bitcast (i8** @_ZTId to i8*)) nounwind
+ %exn.val = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
+ catch i8* bitcast (i8** @_ZTId to i8*)
+ %exn = extractvalue { i8*, i32 } %exn.val, 0
+ %sel = extractvalue { i8*, i32 } %exn.val, 1
%1 = tail call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @_ZTId to i8*)) nounwind
- %2 = icmp eq i32 %eh.selector, %1
+ %2 = icmp eq i32 %sel, %1
br i1 %2, label %catch, label %eh.resume
catch: ; preds = %lpad
@@ -48,8 +50,7 @@
ret void
eh.resume: ; preds = %lpad
- tail call void @llvm.eh.resume(i8* %exn, i32 %eh.selector) noreturn
- unreachable
+ resume { i8*, i32 } %exn.val
unreachable: ; preds = %entry
unreachable
More information about the llvm-commits
mailing list