78 lines · plain
1; RUN: llc %s -filetype=obj -o - | llvm-readobj -r - | FileCheck %s --check-prefix=RELOC2; RUN: llc %s -o - | FileCheck %s --check-prefix=ASM3 4target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"5target triple = "x86_64-apple-macosx"6 7declare void @issue64826(i64, ptr, ptr swifterror)8 9define swiftcc void @rdar113994760() personality ptr @__gcc_personality_v0 {10entry:11 %swifterror = alloca swifterror ptr, align 812 invoke swiftcc void @issue64826(i64 0, ptr null, ptr swifterror %swifterror)13 to label %.noexc unwind label %tsan_cleanup14 15.noexc: ; preds = %entry16 ret void17 18tsan_cleanup: ; preds = %entry19 %cleanup.lpad = landingpad { ptr, i32 }20 cleanup21 resume { ptr, i32 } zeroinitializer22}23 24declare i32 @__gcc_personality_v0(...)25 26; RELOC-LABEL: Relocations [27; RELOC-NEXT: Section __text {28; RELOC-NEXT: 0x19 1 2 1 X86_64_RELOC_BRANCH 0 __Unwind_Resume29; RELOC-NEXT: 0xB 1 2 1 X86_64_RELOC_BRANCH 0 _issue6482630; RELOC-NEXT: }31; RELOC-NEXT: Section __eh_frame {32; RELOC-NEXT: 0x13 1 2 1 X86_64_RELOC_GOT 0 ___gcc_personality_v033; RELOC-NEXT: }34; RELOC-NEXT: ]35 36; ASM-LABEL: rdar113994760:37; ASM: ## %bb.0: ## %entry38; ASM-NEXT: pushq %r1239; ASM-NEXT: .cfi_def_cfa_offset 1640; ASM-NEXT: subq $16, %rsp41; ASM-NEXT: .cfi_def_cfa_offset 3242; ASM-NEXT: .cfi_offset %r12, -1643; ASM-NEXT: Ltmp0:44; ASM-NEXT: xorl %edi, %edi45; ASM-NEXT: xorl %esi, %esi46; ASM-NEXT: callq _issue6482647; ASM-NEXT: Ltmp1:48; ASM-NEXT: ## %bb.1: ## %.noexc49; ASM-NEXT: addq $16, %rsp50; ASM-NEXT: popq %r1251; ASM-NEXT: retq52; ASM-NEXT: LBB0_2: ## %tsan_cleanup53; ASM-NEXT: Ltmp2:54; ASM-NEXT: xorl %edi, %edi55; ASM-NEXT: callq __Unwind_Resume56; ASM-NEXT: Lfunc_end0:57; ASM-NEXT: .cfi_endproc58; ASM-NEXT: .section __TEXT,__gcc_except_tab59; ASM-NEXT: .p2align 2, 0x060; ASM-NEXT: GCC_except_table0:61; ASM-NEXT: Lexception0:62; ASM-NEXT: .byte 255 ## @LPStart Encoding = omit63; ASM-NEXT: .byte 255 ## @TType Encoding = omit64; ASM-NEXT: .byte 1 ## Call site Encoding = uleb12865; ASM-NEXT: .uleb128 Lcst_end0-Lcst_begin066; ASM-NEXT: Lcst_begin0:67; ASM-NEXT: .uleb128 Ltmp0-Lfunc_begin0 ## >> Call Site 1 <<68; ASM-NEXT: .uleb128 Ltmp1-Ltmp0 ## Call between Ltmp0 and Ltmp169; ASM-NEXT: .uleb128 Ltmp2-Lfunc_begin0 ## jumps to Ltmp270; ASM-NEXT: .byte 0 ## On action: cleanup71; ASM-NEXT: .uleb128 Ltmp1-Lfunc_begin0 ## >> Call Site 2 <<72; ASM-NEXT: .uleb128 Lfunc_end0-Ltmp1 ## Call between Ltmp1 and Lfunc_end073; ASM-NEXT: .byte 0 ## has no landing pad74; ASM-NEXT: .byte 0 ## On action: cleanup75; ASM-NEXT: Lcst_end0:76; ASM-NEXT: .p2align 2, 0x077; ASM-NEXT: ## -- End function78