1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=mips64-unknown-linux < %s | FileCheck %s
4 define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*){
7 ; CHECK-NEXT: daddiu $sp, $sp, -16
8 ; CHECK-NEXT: .cfi_def_cfa_offset 16
9 ; CHECK-NEXT: sd $ra, 8($sp) # 8-byte Folded Spill
10 ; CHECK-NEXT: .cfi_offset 31, -8
15 ; CHECK-NEXT: # %bb.1: # %good
16 ; CHECK-NEXT: addiu $2, $zero, 5
17 ; CHECK-NEXT: ld $ra, 8($sp) # 8-byte Folded Reload
19 ; CHECK-NEXT: daddiu $sp, $sp, 16
20 ; CHECK-NEXT: .LBB0_2: # %bad
22 ; CHECK-NEXT: jal _Unwind_Resume
24 %1 = invoke i32 @foo() to label %good unwind label %bad
28 %2 = landingpad { i8*, i32 }
30 resume { i8*, i32 } %2
34 declare i32 @__gxx_personality_v0(...)