brintos

brintos / llvm-project-archived public Read only

0
0
Text · 22.2 KiB · 0bc6449 Raw
580 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 42; RUN: llc -o - %s | FileCheck --check-prefix=SELDAG --check-prefix=CHECK %s3; RUN: llc -global-isel -o - %s | FileCheck --check-prefix=GISEL --check-prefix=CHECK %s4 5target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"6target triple = "arm64-apple-ios"7 8declare ptr @foo0(i32)9declare ptr @foo1()10 11declare void @llvm.objc.release(ptr)12declare void @objc_object(ptr)13 14declare void @foo2(ptr)15 16declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture)17 18declare ptr @_ZN1SD1Ev(ptr nonnull dereferenceable(1))19 20declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture)21 22 23%struct.S = type { i8 }24 25@g = dso_local global ptr null, align 826@fptr = dso_local global ptr null, align 827 28define dso_local ptr @rv_marker_1_retain() {29; SELDAG-LABEL: rv_marker_1_retain:30; SELDAG:       ; %bb.0: ; %entry31; SELDAG-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill32; SELDAG-NEXT:    .cfi_def_cfa_offset 1633; SELDAG-NEXT:    .cfi_offset w30, -834; SELDAG-NEXT:    .cfi_offset w29, -1635; SELDAG-NEXT:    bl _foo136; SELDAG-NEXT:    mov x29, x2937; SELDAG-NEXT:    bl _objc_retainAutoreleasedReturnValue38; SELDAG-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload39; SELDAG-NEXT:    ret40;41; GISEL-LABEL: rv_marker_1_retain:42; GISEL:       ; %bb.0: ; %entry43; GISEL-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill44; GISEL-NEXT:    .cfi_def_cfa_offset 1645; GISEL-NEXT:    .cfi_offset w30, -846; GISEL-NEXT:    .cfi_offset w29, -1647; GISEL-NEXT:    bl _foo148; GISEL-NEXT:    mov x29, x2949; GISEL-NEXT:    bl _objc_retainAutoreleasedReturnValue50; GISEL-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload51; GISEL-NEXT:    ret52entry:53  %call = call ptr @foo1() [ "clang.arc.attachedcall"(ptr @objc_retainAutoreleasedReturnValue) ]54  ret ptr %call55}56 57define dso_local ptr @rv_marker_1_unsafeClaim() {58; SELDAG-LABEL: rv_marker_1_unsafeClaim:59; SELDAG:       ; %bb.0: ; %entry60; SELDAG-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill61; SELDAG-NEXT:    .cfi_def_cfa_offset 1662; SELDAG-NEXT:    .cfi_offset w30, -863; SELDAG-NEXT:    .cfi_offset w29, -1664; SELDAG-NEXT:    bl _foo165; SELDAG-NEXT:    mov x29, x2966; SELDAG-NEXT:    bl _objc_unsafeClaimAutoreleasedReturnValue67; SELDAG-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload68; SELDAG-NEXT:    ret69;70; GISEL-LABEL: rv_marker_1_unsafeClaim:71; GISEL:       ; %bb.0: ; %entry72; GISEL-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill73; GISEL-NEXT:    .cfi_def_cfa_offset 1674; GISEL-NEXT:    .cfi_offset w30, -875; GISEL-NEXT:    .cfi_offset w29, -1676; GISEL-NEXT:    bl _foo177; GISEL-NEXT:    mov x29, x2978; GISEL-NEXT:    bl _objc_unsafeClaimAutoreleasedReturnValue79; GISEL-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload80; GISEL-NEXT:    ret81entry:82  %call = call ptr @foo1() [ "clang.arc.attachedcall"(ptr @objc_unsafeClaimAutoreleasedReturnValue) ]83  ret ptr %call84}85 86define dso_local void @rv_marker_2_select(i32 %c) {87; SELDAG-LABEL: rv_marker_2_select:88; SELDAG:       ; %bb.0: ; %entry89; SELDAG-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill90; SELDAG-NEXT:    .cfi_def_cfa_offset 1691; SELDAG-NEXT:    .cfi_offset w30, -892; SELDAG-NEXT:    .cfi_offset w29, -1693; SELDAG-NEXT:    mov w8, #1 ; =0x194; SELDAG-NEXT:    cmp w0, #095; SELDAG-NEXT:    cinc w0, w8, eq96; SELDAG-NEXT:    bl _foo097; SELDAG-NEXT:    mov x29, x2998; SELDAG-NEXT:    bl _objc_retainAutoreleasedReturnValue99; SELDAG-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload100; SELDAG-NEXT:    b _foo2101;102; GISEL-LABEL: rv_marker_2_select:103; GISEL:       ; %bb.0: ; %entry104; GISEL-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill105; GISEL-NEXT:    .cfi_def_cfa_offset 16106; GISEL-NEXT:    .cfi_offset w30, -8107; GISEL-NEXT:    .cfi_offset w29, -16108; GISEL-NEXT:    mov w8, #1 ; =0x1109; GISEL-NEXT:    cmp w0, #0110; GISEL-NEXT:    cinc w0, w8, eq111; GISEL-NEXT:    bl _foo0112; GISEL-NEXT:    mov x29, x29113; GISEL-NEXT:    bl _objc_retainAutoreleasedReturnValue114; GISEL-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload115; GISEL-NEXT:    b _foo2116entry:117  %tobool.not = icmp eq i32 %c, 0118  %.sink = select i1 %tobool.not, i32 2, i32 1119  %call1 = call ptr @foo0(i32 %.sink) [ "clang.arc.attachedcall"(ptr @objc_retainAutoreleasedReturnValue) ]120  tail call void @foo2(ptr %call1)121  ret void122}123 124define dso_local void @rv_marker_3() personality ptr @__gxx_personality_v0 {125; SELDAG-LABEL: rv_marker_3:126; SELDAG:       Lfunc_begin0:127; SELDAG-NEXT:    .cfi_startproc128; SELDAG-NEXT:    .cfi_personality 155, ___gxx_personality_v0129; SELDAG-NEXT:    .cfi_lsda 16, Lexception0130; SELDAG-NEXT:  ; %bb.0: ; %entry131; SELDAG-NEXT:    stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill132; SELDAG-NEXT:    stp x29, x30, [sp, #16] ; 16-byte Folded Spill133; SELDAG-NEXT:    .cfi_def_cfa_offset 32134; SELDAG-NEXT:    .cfi_offset w30, -8135; SELDAG-NEXT:    .cfi_offset w29, -16136; SELDAG-NEXT:    .cfi_offset w19, -24137; SELDAG-NEXT:    .cfi_offset w20, -32138; SELDAG-NEXT:    bl _foo1139; SELDAG-NEXT:    mov x29, x29140; SELDAG-NEXT:    bl _objc_retainAutoreleasedReturnValue141; SELDAG-NEXT:    mov x19, x0142; SELDAG-NEXT:  Ltmp0: ; EH_LABEL143; SELDAG-NEXT:    bl _objc_object144; SELDAG-NEXT:  Ltmp1: ; EH_LABEL145; SELDAG-NEXT:  ; %bb.1: ; %invoke.cont146; SELDAG-NEXT:    ldp x29, x30, [sp, #16] ; 16-byte Folded Reload147; SELDAG-NEXT:    mov x0, x19148; SELDAG-NEXT:    ldp x20, x19, [sp], #32 ; 16-byte Folded Reload149; SELDAG-NEXT:    b _objc_release150; SELDAG-NEXT:  LBB3_2: ; %lpad151; SELDAG-NEXT:  Ltmp2: ; EH_LABEL152; SELDAG-NEXT:    mov x20, x0153; SELDAG-NEXT:    mov x0, x19154; SELDAG-NEXT:    bl _objc_release155; SELDAG-NEXT:    mov x0, x20156; SELDAG-NEXT:    bl __Unwind_Resume157; SELDAG-NEXT:  Lfunc_end0:158; SELDAG-NEXT:    .cfi_endproc159; SELDAG-NEXT:    .section __TEXT,__gcc_except_tab160; SELDAG-NEXT:    .p2align 2, 0x0161; SELDAG-NEXT:  GCC_except_table3:162; SELDAG-NEXT:  Lexception0:163; SELDAG-NEXT:    .byte 255 ; @LPStart Encoding = omit164; SELDAG-NEXT:    .byte 255 ; @TType Encoding = omit165; SELDAG-NEXT:    .byte 1 ; Call site Encoding = uleb128166; SELDAG-NEXT:    .uleb128 Lcst_end0-Lcst_begin0167; SELDAG-NEXT:  Lcst_begin0:168; SELDAG-NEXT:    .uleb128 Lfunc_begin0-Lfunc_begin0 ; >> Call Site 1 <<169; SELDAG-NEXT:    .uleb128 Ltmp0-Lfunc_begin0 ; Call between Lfunc_begin0 and Ltmp0170; SELDAG-NEXT:    .byte 0 ; has no landing pad171; SELDAG-NEXT:    .byte 0 ; On action: cleanup172; SELDAG-NEXT:    .uleb128 Ltmp0-Lfunc_begin0 ; >> Call Site 2 <<173; SELDAG-NEXT:    .uleb128 Ltmp1-Ltmp0 ; Call between Ltmp0 and Ltmp1174; SELDAG-NEXT:    .uleb128 Ltmp2-Lfunc_begin0 ; jumps to Ltmp2175; SELDAG-NEXT:    .byte 0 ; On action: cleanup176; SELDAG-NEXT:    .uleb128 Ltmp1-Lfunc_begin0 ; >> Call Site 3 <<177; SELDAG-NEXT:    .uleb128 Lfunc_end0-Ltmp1 ; Call between Ltmp1 and Lfunc_end0178; SELDAG-NEXT:    .byte 0 ; has no landing pad179; SELDAG-NEXT:    .byte 0 ; On action: cleanup180; SELDAG-NEXT:  Lcst_end0:181; SELDAG-NEXT:    .p2align 2, 0x0182;183; GISEL-LABEL: rv_marker_3:184; GISEL:       Lfunc_begin0:185; GISEL-NEXT:    .cfi_startproc186; GISEL-NEXT:    .cfi_personality 155, ___gxx_personality_v0187; GISEL-NEXT:    .cfi_lsda 16, Lexception0188; GISEL-NEXT:  ; %bb.0: ; %entry189; GISEL-NEXT:    stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill190; GISEL-NEXT:    stp x29, x30, [sp, #16] ; 16-byte Folded Spill191; GISEL-NEXT:    .cfi_def_cfa_offset 32192; GISEL-NEXT:    .cfi_offset w30, -8193; GISEL-NEXT:    .cfi_offset w29, -16194; GISEL-NEXT:    .cfi_offset w19, -24195; GISEL-NEXT:    .cfi_offset w20, -32196; GISEL-NEXT:    bl _foo1197; GISEL-NEXT:    mov x29, x29198; GISEL-NEXT:    bl _objc_retainAutoreleasedReturnValue199; GISEL-NEXT:    mov x19, x0200; GISEL-NEXT:  Ltmp0: ; EH_LABEL201; GISEL-NEXT:    bl _objc_object202; GISEL-NEXT:  Ltmp1: ; EH_LABEL203; GISEL-NEXT:  ; %bb.1: ; %invoke.cont204; GISEL-NEXT:  Lloh0:205; GISEL-NEXT:    adrp x1, _objc_release@GOTPAGE206; GISEL-NEXT:    mov x0, x19207; GISEL-NEXT:  Lloh1:208; GISEL-NEXT:    ldr x1, [x1, _objc_release@GOTPAGEOFF]209; GISEL-NEXT:    ldp x29, x30, [sp, #16] ; 16-byte Folded Reload210; GISEL-NEXT:    ldp x20, x19, [sp], #32 ; 16-byte Folded Reload211; GISEL-NEXT:    br x1212; GISEL-NEXT:  LBB3_2: ; %lpad213; GISEL-NEXT:  Ltmp2: ; EH_LABEL214; GISEL-NEXT:  Lloh2:215; GISEL-NEXT:    adrp x8, _objc_release@GOTPAGE216; GISEL-NEXT:    mov x20, x0217; GISEL-NEXT:    mov x0, x19218; GISEL-NEXT:  Lloh3:219; GISEL-NEXT:    ldr x8, [x8, _objc_release@GOTPAGEOFF]220; GISEL-NEXT:    blr x8221; GISEL-NEXT:    mov x0, x20222; GISEL-NEXT:    bl __Unwind_Resume223; GISEL-NEXT:    .loh AdrpLdrGot Lloh0, Lloh1224; GISEL-NEXT:    .loh AdrpLdrGot Lloh2, Lloh3225; GISEL-NEXT:  Lfunc_end0:226; GISEL-NEXT:    .cfi_endproc227; GISEL-NEXT:    .section __TEXT,__gcc_except_tab228; GISEL-NEXT:    .p2align 2, 0x0229; GISEL-NEXT:  GCC_except_table3:230; GISEL-NEXT:  Lexception0:231; GISEL-NEXT:    .byte 255 ; @LPStart Encoding = omit232; GISEL-NEXT:    .byte 255 ; @TType Encoding = omit233; GISEL-NEXT:    .byte 1 ; Call site Encoding = uleb128234; GISEL-NEXT:    .uleb128 Lcst_end0-Lcst_begin0235; GISEL-NEXT:  Lcst_begin0:236; GISEL-NEXT:    .uleb128 Lfunc_begin0-Lfunc_begin0 ; >> Call Site 1 <<237; GISEL-NEXT:    .uleb128 Ltmp0-Lfunc_begin0 ; Call between Lfunc_begin0 and Ltmp0238; GISEL-NEXT:    .byte 0 ; has no landing pad239; GISEL-NEXT:    .byte 0 ; On action: cleanup240; GISEL-NEXT:    .uleb128 Ltmp0-Lfunc_begin0 ; >> Call Site 2 <<241; GISEL-NEXT:    .uleb128 Ltmp1-Ltmp0 ; Call between Ltmp0 and Ltmp1242; GISEL-NEXT:    .uleb128 Ltmp2-Lfunc_begin0 ; jumps to Ltmp2243; GISEL-NEXT:    .byte 0 ; On action: cleanup244; GISEL-NEXT:    .uleb128 Ltmp1-Lfunc_begin0 ; >> Call Site 3 <<245; GISEL-NEXT:    .uleb128 Lfunc_end0-Ltmp1 ; Call between Ltmp1 and Lfunc_end0246; GISEL-NEXT:    .byte 0 ; has no landing pad247; GISEL-NEXT:    .byte 0 ; On action: cleanup248; GISEL-NEXT:  Lcst_end0:249; GISEL-NEXT:    .p2align 2, 0x0250entry:251  %call = call ptr @foo1() [ "clang.arc.attachedcall"(ptr @objc_retainAutoreleasedReturnValue) ]252  invoke void @objc_object(ptr %call) #5253          to label %invoke.cont unwind label %lpad254 255invoke.cont:                                      ; preds = %entry256  tail call void @llvm.objc.release(ptr %call)257  ret void258 259lpad:                                             ; preds = %entry260  %0 = landingpad { ptr, i32 }261          cleanup262  tail call void @llvm.objc.release(ptr %call)263  resume { ptr, i32 } %0264}265 266define dso_local void @rv_marker_4() personality ptr @__gxx_personality_v0 {267; SELDAG-LABEL: rv_marker_4:268; SELDAG:       Lfunc_begin1:269; SELDAG-NEXT:    .cfi_startproc270; SELDAG-NEXT:    .cfi_personality 155, ___gxx_personality_v0271; SELDAG-NEXT:    .cfi_lsda 16, Lexception1272; SELDAG-NEXT:  ; %bb.0: ; %entry273; SELDAG-NEXT:    sub sp, sp, #48274; SELDAG-NEXT:    stp x20, x19, [sp, #16] ; 16-byte Folded Spill275; SELDAG-NEXT:    stp x29, x30, [sp, #32] ; 16-byte Folded Spill276; SELDAG-NEXT:    .cfi_def_cfa_offset 48277; SELDAG-NEXT:    .cfi_offset w30, -8278; SELDAG-NEXT:    .cfi_offset w29, -16279; SELDAG-NEXT:    .cfi_offset w19, -24280; SELDAG-NEXT:    .cfi_offset w20, -32281; SELDAG-NEXT:  Ltmp3: ; EH_LABEL282; SELDAG-NEXT:    bl _foo1283; SELDAG-NEXT:    mov x29, x29284; SELDAG-NEXT:    bl _objc_retainAutoreleasedReturnValue285; SELDAG-NEXT:  Ltmp4: ; EH_LABEL286; SELDAG-NEXT:  ; %bb.1: ; %invoke.cont287; SELDAG-NEXT:  Ltmp6: ; EH_LABEL288; SELDAG-NEXT:    mov x19, x0289; SELDAG-NEXT:    bl _objc_object290; SELDAG-NEXT:  Ltmp7: ; EH_LABEL291; SELDAG-NEXT:  ; %bb.2: ; %invoke.cont2292; SELDAG-NEXT:    mov x0, x19293; SELDAG-NEXT:    bl _objc_release294; SELDAG-NEXT:    add x0, sp, #15295; SELDAG-NEXT:    bl __ZN1SD1Ev296; SELDAG-NEXT:    ldp x29, x30, [sp, #32] ; 16-byte Folded Reload297; SELDAG-NEXT:    ldp x20, x19, [sp, #16] ; 16-byte Folded Reload298; SELDAG-NEXT:    add sp, sp, #48299; SELDAG-NEXT:    ret300; SELDAG-NEXT:  LBB4_3: ; %lpad1301; SELDAG-NEXT:  Ltmp8: ; EH_LABEL302; SELDAG-NEXT:    mov x20, x0303; SELDAG-NEXT:    mov x0, x19304; SELDAG-NEXT:    bl _objc_release305; SELDAG-NEXT:    b LBB4_5306; SELDAG-NEXT:  LBB4_4: ; %lpad307; SELDAG-NEXT:  Ltmp5: ; EH_LABEL308; SELDAG-NEXT:    mov x20, x0309; SELDAG-NEXT:  LBB4_5: ; %ehcleanup310; SELDAG-NEXT:    add x0, sp, #15311; SELDAG-NEXT:    bl __ZN1SD1Ev312; SELDAG-NEXT:    mov x0, x20313; SELDAG-NEXT:    bl __Unwind_Resume314; SELDAG-NEXT:  Lfunc_end1:315; SELDAG-NEXT:    .cfi_endproc316; SELDAG-NEXT:    .section __TEXT,__gcc_except_tab317; SELDAG-NEXT:    .p2align 2, 0x0318; SELDAG-NEXT:  GCC_except_table4:319; SELDAG-NEXT:  Lexception1:320; SELDAG-NEXT:    .byte 255 ; @LPStart Encoding = omit321; SELDAG-NEXT:    .byte 255 ; @TType Encoding = omit322; SELDAG-NEXT:    .byte 1 ; Call site Encoding = uleb128323; SELDAG-NEXT:    .uleb128 Lcst_end1-Lcst_begin1324; SELDAG-NEXT:  Lcst_begin1:325; SELDAG-NEXT:    .uleb128 Ltmp3-Lfunc_begin1 ; >> Call Site 1 <<326; SELDAG-NEXT:    .uleb128 Ltmp4-Ltmp3 ; Call between Ltmp3 and Ltmp4327; SELDAG-NEXT:    .uleb128 Ltmp5-Lfunc_begin1 ; jumps to Ltmp5328; SELDAG-NEXT:    .byte 0 ; On action: cleanup329; SELDAG-NEXT:    .uleb128 Ltmp6-Lfunc_begin1 ; >> Call Site 2 <<330; SELDAG-NEXT:    .uleb128 Ltmp7-Ltmp6 ; Call between Ltmp6 and Ltmp7331; SELDAG-NEXT:    .uleb128 Ltmp8-Lfunc_begin1 ; jumps to Ltmp8332; SELDAG-NEXT:    .byte 0 ; On action: cleanup333; SELDAG-NEXT:    .uleb128 Ltmp7-Lfunc_begin1 ; >> Call Site 3 <<334; SELDAG-NEXT:    .uleb128 Lfunc_end1-Ltmp7 ; Call between Ltmp7 and Lfunc_end1335; SELDAG-NEXT:    .byte 0 ; has no landing pad336; SELDAG-NEXT:    .byte 0 ; On action: cleanup337; SELDAG-NEXT:  Lcst_end1:338; SELDAG-NEXT:    .p2align 2, 0x0339;340; GISEL-LABEL: rv_marker_4:341; GISEL:       Lfunc_begin1:342; GISEL-NEXT:    .cfi_startproc343; GISEL-NEXT:    .cfi_personality 155, ___gxx_personality_v0344; GISEL-NEXT:    .cfi_lsda 16, Lexception1345; GISEL-NEXT:  ; %bb.0: ; %entry346; GISEL-NEXT:    sub sp, sp, #48347; GISEL-NEXT:    stp x20, x19, [sp, #16] ; 16-byte Folded Spill348; GISEL-NEXT:    stp x29, x30, [sp, #32] ; 16-byte Folded Spill349; GISEL-NEXT:    .cfi_def_cfa_offset 48350; GISEL-NEXT:    .cfi_offset w30, -8351; GISEL-NEXT:    .cfi_offset w29, -16352; GISEL-NEXT:    .cfi_offset w19, -24353; GISEL-NEXT:    .cfi_offset w20, -32354; GISEL-NEXT:  Ltmp3: ; EH_LABEL355; GISEL-NEXT:    bl _foo1356; GISEL-NEXT:    mov x29, x29357; GISEL-NEXT:    bl _objc_retainAutoreleasedReturnValue358; GISEL-NEXT:  Ltmp4: ; EH_LABEL359; GISEL-NEXT:  ; %bb.1: ; %invoke.cont360; GISEL-NEXT:  Ltmp6: ; EH_LABEL361; GISEL-NEXT:    mov x19, x0362; GISEL-NEXT:    bl _objc_object363; GISEL-NEXT:  Ltmp7: ; EH_LABEL364; GISEL-NEXT:  ; %bb.2: ; %invoke.cont2365; GISEL-NEXT:  Lloh4:366; GISEL-NEXT:    adrp x8, _objc_release@GOTPAGE367; GISEL-NEXT:    mov x0, x19368; GISEL-NEXT:  Lloh5:369; GISEL-NEXT:    ldr x8, [x8, _objc_release@GOTPAGEOFF]370; GISEL-NEXT:    blr x8371; GISEL-NEXT:    add x0, sp, #15372; GISEL-NEXT:    bl __ZN1SD1Ev373; GISEL-NEXT:    ldp x29, x30, [sp, #32] ; 16-byte Folded Reload374; GISEL-NEXT:    ldp x20, x19, [sp, #16] ; 16-byte Folded Reload375; GISEL-NEXT:    add sp, sp, #48376; GISEL-NEXT:    ret377; GISEL-NEXT:  LBB4_3: ; %lpad1378; GISEL-NEXT:  Ltmp8: ; EH_LABEL379; GISEL-NEXT:  Lloh6:380; GISEL-NEXT:    adrp x8, _objc_release@GOTPAGE381; GISEL-NEXT:    mov x20, x0382; GISEL-NEXT:    mov x0, x19383; GISEL-NEXT:  Lloh7:384; GISEL-NEXT:    ldr x8, [x8, _objc_release@GOTPAGEOFF]385; GISEL-NEXT:    blr x8386; GISEL-NEXT:    b LBB4_5387; GISEL-NEXT:  LBB4_4: ; %lpad388; GISEL-NEXT:  Ltmp5: ; EH_LABEL389; GISEL-NEXT:    mov x20, x0390; GISEL-NEXT:  LBB4_5: ; %ehcleanup391; GISEL-NEXT:    add x0, sp, #15392; GISEL-NEXT:    bl __ZN1SD1Ev393; GISEL-NEXT:    mov x0, x20394; GISEL-NEXT:    bl __Unwind_Resume395; GISEL-NEXT:    .loh AdrpLdrGot Lloh4, Lloh5396; GISEL-NEXT:    .loh AdrpLdrGot Lloh6, Lloh7397; GISEL-NEXT:  Lfunc_end1:398; GISEL-NEXT:    .cfi_endproc399; GISEL-NEXT:    .section __TEXT,__gcc_except_tab400; GISEL-NEXT:    .p2align 2, 0x0401; GISEL-NEXT:  GCC_except_table4:402; GISEL-NEXT:  Lexception1:403; GISEL-NEXT:    .byte 255 ; @LPStart Encoding = omit404; GISEL-NEXT:    .byte 255 ; @TType Encoding = omit405; GISEL-NEXT:    .byte 1 ; Call site Encoding = uleb128406; GISEL-NEXT:    .uleb128 Lcst_end1-Lcst_begin1407; GISEL-NEXT:  Lcst_begin1:408; GISEL-NEXT:    .uleb128 Ltmp3-Lfunc_begin1 ; >> Call Site 1 <<409; GISEL-NEXT:    .uleb128 Ltmp4-Ltmp3 ; Call between Ltmp3 and Ltmp4410; GISEL-NEXT:    .uleb128 Ltmp5-Lfunc_begin1 ; jumps to Ltmp5411; GISEL-NEXT:    .byte 0 ; On action: cleanup412; GISEL-NEXT:    .uleb128 Ltmp6-Lfunc_begin1 ; >> Call Site 2 <<413; GISEL-NEXT:    .uleb128 Ltmp7-Ltmp6 ; Call between Ltmp6 and Ltmp7414; GISEL-NEXT:    .uleb128 Ltmp8-Lfunc_begin1 ; jumps to Ltmp8415; GISEL-NEXT:    .byte 0 ; On action: cleanup416; GISEL-NEXT:    .uleb128 Ltmp7-Lfunc_begin1 ; >> Call Site 3 <<417; GISEL-NEXT:    .uleb128 Lfunc_end1-Ltmp7 ; Call between Ltmp7 and Lfunc_end1418; GISEL-NEXT:    .byte 0 ; has no landing pad419; GISEL-NEXT:    .byte 0 ; On action: cleanup420; GISEL-NEXT:  Lcst_end1:421; GISEL-NEXT:    .p2align 2, 0x0422entry:423  %s = alloca %struct.S, align 1424  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %s) #2425  %call = invoke ptr @foo1() [ "clang.arc.attachedcall"(ptr @objc_retainAutoreleasedReturnValue) ]426          to label %invoke.cont unwind label %lpad427 428invoke.cont:                                      ; preds = %entry429  invoke void @objc_object(ptr %call) #5430          to label %invoke.cont2 unwind label %lpad1431 432invoke.cont2:                                     ; preds = %invoke.cont433  tail call void @llvm.objc.release(ptr %call)434  %call3 = call ptr @_ZN1SD1Ev(ptr nonnull dereferenceable(1) %s)435  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %s)436  ret void437 438lpad:                                             ; preds = %entry439  %0 = landingpad { ptr, i32 }440          cleanup441  br label %ehcleanup442 443lpad1:                                            ; preds = %invoke.cont444  %1 = landingpad { ptr, i32 }445          cleanup446  tail call void @llvm.objc.release(ptr %call)447  br label %ehcleanup448 449ehcleanup:                                        ; preds = %lpad1, %lpad450  %.pn = phi { ptr, i32 } [ %1, %lpad1 ], [ %0, %lpad ]451  %call4 = call ptr @_ZN1SD1Ev(ptr nonnull dereferenceable(1) %s)452  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %s)453  resume { ptr, i32 } %.pn454}455 456define dso_local ptr @rv_marker_5_indirect_call() {457; SELDAG-LABEL: rv_marker_5_indirect_call:458; SELDAG:       ; %bb.0: ; %entry459; SELDAG-NEXT:    stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill460; SELDAG-NEXT:    stp x29, x30, [sp, #16] ; 16-byte Folded Spill461; SELDAG-NEXT:    .cfi_def_cfa_offset 32462; SELDAG-NEXT:    .cfi_offset w30, -8463; SELDAG-NEXT:    .cfi_offset w29, -16464; SELDAG-NEXT:    .cfi_offset w19, -24465; SELDAG-NEXT:    .cfi_offset w20, -32466; SELDAG-NEXT:  Lloh0:467; SELDAG-NEXT:    adrp x8, _fptr@PAGE468; SELDAG-NEXT:  Lloh1:469; SELDAG-NEXT:    ldr x8, [x8, _fptr@PAGEOFF]470; SELDAG-NEXT:    blr x8471; SELDAG-NEXT:    mov x29, x29472; SELDAG-NEXT:    bl _objc_retainAutoreleasedReturnValue473; SELDAG-NEXT:    mov x19, x0474; SELDAG-NEXT:    bl _foo2475; SELDAG-NEXT:    ldp x29, x30, [sp, #16] ; 16-byte Folded Reload476; SELDAG-NEXT:    mov x0, x19477; SELDAG-NEXT:    ldp x20, x19, [sp], #32 ; 16-byte Folded Reload478; SELDAG-NEXT:    ret479; SELDAG-NEXT:    .loh AdrpLdr Lloh0, Lloh1480;481; GISEL-LABEL: rv_marker_5_indirect_call:482; GISEL:       ; %bb.0: ; %entry483; GISEL-NEXT:    stp x20, x19, [sp, #-32]! ; 16-byte Folded Spill484; GISEL-NEXT:    stp x29, x30, [sp, #16] ; 16-byte Folded Spill485; GISEL-NEXT:    .cfi_def_cfa_offset 32486; GISEL-NEXT:    .cfi_offset w30, -8487; GISEL-NEXT:    .cfi_offset w29, -16488; GISEL-NEXT:    .cfi_offset w19, -24489; GISEL-NEXT:    .cfi_offset w20, -32490; GISEL-NEXT:  Lloh8:491; GISEL-NEXT:    adrp x8, _fptr@PAGE492; GISEL-NEXT:  Lloh9:493; GISEL-NEXT:    ldr x8, [x8, _fptr@PAGEOFF]494; GISEL-NEXT:    blr x8495; GISEL-NEXT:    mov x29, x29496; GISEL-NEXT:    bl _objc_retainAutoreleasedReturnValue497; GISEL-NEXT:    mov x19, x0498; GISEL-NEXT:    bl _foo2499; GISEL-NEXT:    ldp x29, x30, [sp, #16] ; 16-byte Folded Reload500; GISEL-NEXT:    mov x0, x19501; GISEL-NEXT:    ldp x20, x19, [sp], #32 ; 16-byte Folded Reload502; GISEL-NEXT:    ret503; GISEL-NEXT:    .loh AdrpLdr Lloh8, Lloh9504entry:505  %0 = load ptr, ptr @fptr, align 8506  %call = call ptr %0() [ "clang.arc.attachedcall"(ptr @objc_retainAutoreleasedReturnValue) ]507  tail call void @foo2(ptr %call)508  ret ptr %call509}510 511declare ptr @foo(i64, i64, i64)512 513define dso_local void @rv_marker_multiarg(i64 %a, i64 %b, i64 %c) {514; SELDAG-LABEL: rv_marker_multiarg:515; SELDAG:       ; %bb.0:516; SELDAG-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill517; SELDAG-NEXT:    .cfi_def_cfa_offset 16518; SELDAG-NEXT:    .cfi_offset w30, -8519; SELDAG-NEXT:    .cfi_offset w29, -16520; SELDAG-NEXT:    mov x8, x0521; SELDAG-NEXT:    mov x0, x2522; SELDAG-NEXT:    mov x2, x8523; SELDAG-NEXT:    bl _foo524; SELDAG-NEXT:    mov x29, x29525; SELDAG-NEXT:    bl _objc_retainAutoreleasedReturnValue526; SELDAG-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload527; SELDAG-NEXT:    ret528;529; GISEL-LABEL: rv_marker_multiarg:530; GISEL:       ; %bb.0:531; GISEL-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill532; GISEL-NEXT:    .cfi_def_cfa_offset 16533; GISEL-NEXT:    .cfi_offset w30, -8534; GISEL-NEXT:    .cfi_offset w29, -16535; GISEL-NEXT:    mov x3, x0536; GISEL-NEXT:    mov x0, x2537; GISEL-NEXT:    mov x2, x3538; GISEL-NEXT:    bl _foo539; GISEL-NEXT:    mov x29, x29540; GISEL-NEXT:    bl _objc_retainAutoreleasedReturnValue541; GISEL-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload542; GISEL-NEXT:    ret543  call ptr @foo(i64 %c, i64 %b, i64 %a) [ "clang.arc.attachedcall"(ptr @objc_retainAutoreleasedReturnValue) ]544  ret void545}546 547define dso_local ptr @rv_marker_claim() {548; SELDAG-LABEL: rv_marker_claim:549; SELDAG:       ; %bb.0: ; %entry550; SELDAG-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill551; SELDAG-NEXT:    .cfi_def_cfa_offset 16552; SELDAG-NEXT:    .cfi_offset w30, -8553; SELDAG-NEXT:    .cfi_offset w29, -16554; SELDAG-NEXT:    bl _foo1555; SELDAG-NEXT:    bl _objc_claimAutoreleasedReturnValue556; SELDAG-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload557; SELDAG-NEXT:    ret558;559; GISEL-LABEL: rv_marker_claim:560; GISEL:       ; %bb.0: ; %entry561; GISEL-NEXT:    stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill562; GISEL-NEXT:    .cfi_def_cfa_offset 16563; GISEL-NEXT:    .cfi_offset w30, -8564; GISEL-NEXT:    .cfi_offset w29, -16565; GISEL-NEXT:    bl _foo1566; GISEL-NEXT:    bl _objc_claimAutoreleasedReturnValue567; GISEL-NEXT:    ldp x29, x30, [sp], #16 ; 16-byte Folded Reload568; GISEL-NEXT:    ret569entry:570  %call = call ptr @foo1() [ "clang.arc.attachedcall"(ptr @objc_claimAutoreleasedReturnValue) ]571  ret ptr %call572}573 574declare ptr @objc_retainAutoreleasedReturnValue(ptr)575declare ptr @objc_claimAutoreleasedReturnValue(ptr)576declare ptr @objc_unsafeClaimAutoreleasedReturnValue(ptr)577declare i32 @__gxx_personality_v0(...)578;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:579; CHECK: {{.*}}580