mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 01:10:48 +00:00
620d5bd8e4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173941 91177308-0d34-0410-b5e6-96231b3b80d8
60 lines
2.1 KiB
LLVM
60 lines
2.1 KiB
LLVM
; RUN: llc -mtriple arm-unknown-linux-gnueabi \
|
|
; RUN: -arm-enable-ehabi -arm-enable-ehabi-descriptors \
|
|
; RUN: -filetype=obj -o - %s \
|
|
; RUN: | llvm-objdump -s - \
|
|
; RUN: | FileCheck %s
|
|
|
|
define void @_Z4testiiiiiddddd(i32 %u1, i32 %u2, i32 %u3, i32 %u4, i32 %u5, double %v1, double %v2, double %v3, double %v4, double %v5) {
|
|
entry:
|
|
invoke void @_Z5printiiiii(i32 %u1, i32 %u2, i32 %u3, i32 %u4, i32 %u5)
|
|
to label %try.cont unwind label %lpad
|
|
|
|
lpad: ; preds = %entry
|
|
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
|
catch i8* null
|
|
%1 = extractvalue { i8*, i32 } %0, 0
|
|
%2 = tail call i8* @__cxa_begin_catch(i8* %1) nounwind
|
|
invoke void @_Z5printddddd(double %v1, double %v2, double %v3, double %v4, double %v5)
|
|
to label %invoke.cont2 unwind label %lpad1
|
|
|
|
invoke.cont2: ; preds = %lpad
|
|
tail call void @__cxa_end_catch()
|
|
br label %try.cont
|
|
|
|
try.cont: ; preds = %entry, %invoke.cont2
|
|
ret void
|
|
|
|
lpad1: ; preds = %lpad
|
|
%3 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
|
cleanup
|
|
invoke void @__cxa_end_catch()
|
|
to label %eh.resume unwind label %terminate.lpad
|
|
|
|
eh.resume: ; preds = %lpad1
|
|
resume { i8*, i32 } %3
|
|
|
|
terminate.lpad: ; preds = %lpad1
|
|
%4 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
|
catch i8* null
|
|
tail call void @_ZSt9terminatev() noreturn nounwind
|
|
unreachable
|
|
}
|
|
|
|
declare void @_Z5printiiiii(i32, i32, i32, i32, i32)
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|
|
|
|
declare i8* @__cxa_begin_catch(i8*)
|
|
|
|
declare void @_Z5printddddd(double, double, double, double, double)
|
|
|
|
declare void @__cxa_end_catch()
|
|
|
|
declare void @_ZSt9terminatev()
|
|
|
|
; CHECK: section .text
|
|
; CHECK: section .ARM.extab
|
|
; CHECK-NEXT: 0000 00000000 b0b0b000
|
|
; CHECK: section .ARM.exidx
|
|
; CHECK-NEXT: 0000 00000000 00000000
|