Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/2007-05-05-Personality.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 54457678186b |
line wrap: on
line source
; RUN: llc < %s -mtriple=i686-pc-linux-gnu -o - | FileCheck %s ; CHECK: .cfi_personality 0, __gnat_eh_personality ; CHECK: .cfi_lsda 0, .Lexception0 @error = external global i8 define void @_ada_x() { entry: invoke void @raise() to label %eh_then unwind label %unwind unwind: ; preds = %entry %eh_ptr = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*) catch i8* @error %eh_select = extractvalue { i8*, i32 } %eh_ptr, 1 %eh_typeid = tail call i32 @llvm.eh.typeid.for(i8* @error) %tmp2 = icmp eq i32 %eh_select, %eh_typeid br i1 %tmp2, label %eh_then, label %Unwind eh_then: ; preds = %unwind, %entry ret void Unwind: ; preds = %unwind resume { i8*, i32 } %eh_ptr } declare void @raise() declare i32 @llvm.eh.typeid.for(i8*) nounwind declare i32 @__gnat_eh_personality(...) declare i32 @_Unwind_Resume(...)