61 lines · plain
1# RUN: llc %s -start-after=arm-mve-vpt-opts -stop-after=arm-prera-ldst-opt -o - | FileCheck %s2# CHECK: %5:rgpr = t2MOVCCr %3, killed %4, 0 /* CC::eq */, $cpsr, debug-location !153# CHECK-NEXT: DBG_VALUE 0, $noreg, !10, !DIExpression(), debug-location !154# CHECK-NEXT: DBG_VALUE $noreg, $noreg, !10, !DIExpression(), debug-location !155# CHECK-NEXT: DBG_VALUE $noreg, $noreg, !10, !DIExpression(), debug-location !156# CHECK-NEXT: %0:rgpr = t2LDRi12 %5, 0, 14 /* CC::al */, $noreg, debug-location !15 :: (load (s32) from %ir..backtrace_user.ctl_default, align 8)7# CHECK-NEXT: %6:rgpr = t2LDRi12 %5, 4, 14 /* CC::al */, $noreg, debug-location !15 :: (load (s32) from %ir.btc_user_copy)8# CHECK-NEXT: DBG_VALUE %6, $noreg, !10, !DIExpression(), debug-location !159# CHECK-NEXT: %2:gpr = t2LDRi12 %5, 8, 14 /* CC::al */, $noreg, debug-location !15 :: (load (s32) from %ir.btc_user_copy_context, align 8)10# CHECK-NEXT: %7:rgpr = t2ANDrr %6, %0, 14 /* CC::al */, $noreg, def $cpsr11# CHECK-NEXT: DBG_VALUE %2, $noreg, !10, !DIExpression(), debug-location !1512--- |13 target triple = "thumbv7k-apple-watchos8.0.0"14 %struct.backtrace_control = type {}15 @backtrace_user.ctl_default = internal unnamed_addr constant %struct.backtrace_control zeroinitializer, !dbg !016 define i32 @backtrace_user(ptr nocapture noundef writeonly %bt, i32 noundef %max_frames, ptr noundef readonly %ctl_in, ptr nocapture noundef readnone %info_out) local_unnamed_addr #0 !dbg !2 {entry:17 %tobool.not = icmp eq ptr %ctl_in, null, !dbg !9518 %.backtrace_user.ctl_default = select i1 %tobool.not, ptr @backtrace_user.ctl_default, ptr %ctl_in, !dbg !9519 %btc_user_copy = getelementptr inbounds %struct.backtrace_control, ptr %.backtrace_user.ctl_default, !dbg !9520 %btc_user_copy_context = getelementptr inbounds %struct.backtrace_control, ptr %.backtrace_user.ctl_default, !dbg !9521 ret i32 undef, !dbg !9522 }23 !llvm.module.flags = !{!88,24 !93}25 !llvm.dbg.cu = !{!32}26 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())27 !1 = distinct !DIGlobalVariable(type: !11, isDefinition: true)28 !2 = distinct !DISubprogram(unit: !32, retainedNodes: !38)29 !3 = !DIFile(filename: "backtrace.pp.c", directory: "/Users/shubham/Development/Delta")30 !8 = !DIDerivedType(tag: DW_TAG_typedef, baseType: !11, size: 32)31 !11 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !12)32 !12 = distinct !DICompositeType(tag: DW_TAG_structure_type, size: 32)33 !22 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !31, size: 32)34 !31 = !DICompositeType(tag: DW_TAG_structure_type, flags: DIFlagFwdDecl)35 !32 = distinct !DICompileUnit(language: DW_LANG_C11, file: !33, sdk: "MacOSX13.0.sdk")36 !33 = !DIFile(filename: "/Users/shubham/Development/Delta/backtrace.pp.c", directory: "/Users/shubham/Development/Delta")37 !38 = !{!60, !85}38 !60 = !DILocalVariable(scope: !2, type: !22)39 !85 = !DILabel(scope: !2, name: "out", file: !3, line: 102)40 !88 = !{i32 2, !"Debug Info Version", i32 3}41 !93 = !{i32 7, !"frame-pointer", i32 1}42 !95 = !DILocation(line: 5, column: 10, scope: !2)43name: backtrace_user44registers:45 - {id: 0, class: rgpr, }46 - {id: 1, class: gpr, }47 - {id: 2, class: gpr, }48body: |49 bb.0.entry:50 %10:rgpr = COPY $r251 %13:rgpr = t2MOV_ga_pcrel target-flags(arm-nonlazy) @backtrace_user.ctl_default, debug-location !9552 %15:rgpr = t2MOVCCr %10, killed %13, 0 /* CC::eq */, $cpsr, debug-location !9553 DBG_VALUE 0, $noreg, !60, !DIExpression(), debug-location !9554 %0:rgpr = t2LDRi12 %15, 0, 14 /* CC::al */, $noreg, debug-location !95 :: (load (s32) from %ir..backtrace_user.ctl_default, align 8)55 DBG_VALUE %0, $noreg, !60, !DIExpression(), debug-location !9556 %16:rgpr = t2LDRi12 %15, 4, 14 /* CC::al */, $noreg, debug-location !95 :: (load (s32) from %ir.btc_user_copy)57 DBG_VALUE %16, $noreg, !60, !DIExpression(), debug-location !9558 %2:gpr = t2LDRi12 %15, 8, 14 /* CC::al */, $noreg, debug-location !95 :: (load (s32) from %ir.btc_user_copy_context, align 8)59 %31:rgpr = t2ANDrr %16, %0, 14 /* CC::al */, $noreg, def $cpsr60 DBG_VALUE %2, $noreg, !60, !DIExpression(), debug-location !9561