104 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=thumbv7-apple-ios9.0.0 -verify-machineinstrs < %s | FileCheck %s3 4; Make sure machine verification does not fail due to incorrect bundle kill5; flags.6 7target triple = "thumbv7-apple-ios9.0.0"8 9%struct.ham = type { [1024 x i32], %struct.zot }10%struct.zot = type { [1 x i32], [1 x [32 x i32]] }11 12define i32 @test(ptr %arg, ptr %arg1, ptr %arg2) #0 !dbg !6 {13; CHECK-LABEL: test:14; CHECK: Lfunc_begin0:15; CHECK-NEXT: .file 1 "/" "test.cpp"16; CHECK-NEXT: .loc 1 50 0 @ test.cpp:50:017; CHECK-NEXT: @ %bb.0: @ %bb18; CHECK-NEXT: push {r4, r5, r6, r7, lr}19; CHECK-NEXT: add r7, sp, #1220; CHECK-NEXT: str r8, [sp, #-4]!21; CHECK-NEXT: mov.w lr, #022; CHECK-NEXT: mov.w r9, #123; CHECK-NEXT: movw r12, #410024; CHECK-NEXT: movs r3, #025; CHECK-NEXT: LBB0_1: @ %bb326; CHECK-NEXT: @ =>This Inner Loop Header: Depth=127; CHECK-NEXT: adds r5, r3, #128; CHECK-NEXT: str.w lr, [r2]29; CHECK-NEXT: cmp.w lr, #030; CHECK-NEXT: add.w r4, r0, r5, lsl #231; CHECK-NEXT: add.w r8, r4, r1232; CHECK-NEXT: lsl.w r4, r9, r333; CHECK-NEXT: and.w r3, r3, r434; CHECK-NEXT: add.w r4, r1, r5, lsl #235; CHECK-NEXT: itte ne36; CHECK-NEXT: movne r6, #037; CHECK-NEXT: Ltmp0:38; CHECK-NEXT: @DEBUG_VALUE: test:this <- [DW_OP_LLVM_arg 0, DW_OP_plus_uconst 135168, DW_OP_LLVM_arg 1, DW_OP_constu 4, DW_OP_mul, DW_OP_plus, DW_OP_plus_uconst 4, DW_OP_stack_value] $r0, $r539; CHECK-NEXT: .loc 1 28 24 prologue_end @ test.cpp:28:2440; CHECK-NEXT: strne.w r6, [r8]41; CHECK-NEXT: moveq r6, #142; CHECK-NEXT: ldr r4, [r4, #4]43; CHECK-NEXT: orrs r4, r644; CHECK-NEXT: str.w r4, [r8]45; CHECK-NEXT: b LBB0_146; CHECK-NEXT: Ltmp1:47; CHECK-NEXT: Lfunc_end0:48bb:49 br label %bb350 51bb3: ; preds = %bb14, %bb52 %tmp4 = phi i32 [ %tmp8, %bb14 ], [ 0, %bb ]53 %tmp5 = add i32 %tmp4, 154 %tmp6 = shl nuw i32 1, %tmp455 %tmp8 = and i32 %tmp4, %tmp656 store i32 0, ptr %arg2, align 457 %tmp10 = getelementptr inbounds %struct.ham, ptr %arg, i32 0, i32 1, i32 1, i32 0, i32 %tmp558 br i1 undef, label %bb11, label %bb1359 60bb11: ; preds = %bb361 %tmp12 = load i32, ptr null, align 462 br label %bb1463 64bb13: ; preds = %bb365 call void @llvm.dbg.value(metadata !DIArgList(ptr %arg, i32 %tmp5), metadata !11, metadata !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_plus_uconst, 135168, DW_OP_LLVM_arg, 1, DW_OP_constu, 4, DW_OP_mul, DW_OP_plus, DW_OP_plus_uconst, 4, DW_OP_stack_value)), !dbg !1466 store i32 0, ptr %tmp10, align 4, !dbg !1667 br label %bb1468 69bb14: ; preds = %bb13, %bb1170 %tmp15 = phi i32 [ 1, %bb11 ], [ 0, %bb13 ]71 %tmp16 = getelementptr inbounds %struct.zot, ptr %arg1, i32 0, i32 1, i32 0, i32 %tmp572 %tmp17 = load i32, ptr %tmp16, align 473 %tmp18 = or i32 %tmp17, %tmp1574 store i32 %tmp18, ptr %tmp10, align 475 br label %bb376}77 78; Function Attrs: nofree nosync nounwind readnone speculatable willreturn79declare void @llvm.dbg.value(metadata, metadata, metadata) #180 81attributes #0 = { "frame-pointer"="all" }82attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }83 84!llvm.module.flags = !{!0, !1, !2}85!llvm.dbg.cu = !{!3}86 87!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 15, i32 2]}88!1 = !{i32 7, !"Dwarf Version", i32 4}89!2 = !{i32 2, !"Debug Info Version", i32 3}90!3 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !4, producer: "clang version 14.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, imports: !5, splitDebugInlining: false, nameTableKind: None, sysroot: "/")91!4 = !DIFile(filename: "test.cpp", directory: "/")92!5 = !{}93!6 = distinct !DISubprogram(name: "test", linkageName: "test", scope: !7, file: !4, line: 49, type: !9, scopeLine: 50, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !3, declaration: !10, retainedNodes: !5)94!7 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "BVGraph<__sanitizer::TwoLevelBitVector<1UL, __sanitizer::BasicBitVector<unsigned long> > >", scope: !8, file: !4, line: 25, size: 1083456, flags: DIFlagTypePassByValue, elements: !5, templateParams: !5, identifier: "_ZTSN11__sanitizer7BVGraphINS_17TwoLevelBitVectorILm1ENS_14BasicBitVectorImEEEEEE")95!8 = !DINamespace(name: "__sanitizer", scope: null)96!9 = !DISubroutineType(types: !5)97!10 = !DISubprogram(name: "test", linkageName: "test", scope: !7, file: !4, line: 49, type: !9, scopeLine: 49, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagOptimized)98!11 = !DILocalVariable(name: "this", arg: 1, scope: !6, type: !12, flags: DIFlagArtificial | DIFlagObjectPointer)99!12 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 32)100!13 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "BasicBitVector<unsigned long>", scope: !8, file: !4, line: 22, size: 32, flags: DIFlagTypePassByValue, elements: !5, templateParams: !5, identifier: "_ZTSN11__sanitizer14BasicBitVectorImEE")101!14 = !DILocation(line: 0, scope: !6, inlinedAt: !15)102!15 = distinct !DILocation(line: 204, column: 23, scope: !6)103!16 = !DILocation(line: 28, column: 24, scope: !6, inlinedAt: !15)104