mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
b85e4eba85
for pre-2.9 bitcode files. We keep x86 unaligned loads, movnt, crc32, and the target indep prefetch change. As usual, updating the testsuite is a PITA. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133337 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.1 KiB
LLVM
39 lines
1.1 KiB
LLVM
; 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 = tail call i8* @llvm.eh.exception()
|
|
%eh_select = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i8* @error)
|
|
%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
|
|
%0 = tail call i32 (...)* @_Unwind_Resume(i8* %eh_ptr)
|
|
unreachable
|
|
}
|
|
|
|
declare void @raise()
|
|
|
|
declare i8* @llvm.eh.exception() nounwind readonly
|
|
|
|
declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind
|
|
|
|
declare i32 @llvm.eh.typeid.for(i8*) nounwind
|
|
|
|
declare i32 @__gnat_eh_personality(...)
|
|
|
|
declare i32 @_Unwind_Resume(...)
|