1*c808e665SOliver Stannard; RUN: llc -mtriple=arm-none-eabi < %s | FileCheck %s 2*c808e665SOliver Stannard; RUN: llc -mtriple=arm-none-eabi < %s | llvm-mc --triple=arm-none-eabi -mcpu=cortex-m3 3*c808e665SOliver Stannard 4*c808e665SOliver Stannard; Check that, when an aligned loop is the first thing in a function, we do not 5*c808e665SOliver Stannard; emit an invalid .loc directive, which is rejected by the assembly parser. 6*c808e665SOliver Stannard 7*c808e665SOliver Stannard; CHECK-NOT: .loc 0 8*c808e665SOliver Stannard; CHECK: .loc 1 2 3 prologue_end 9*c808e665SOliver Stannard; CHECK-NOT: .loc 0 10*c808e665SOliver Stannard 11*c808e665SOliver Stannarddefine dso_local void @foo() "target-cpu"="cortex-m3" !dbg !8 { 12*c808e665SOliver Stannardentry: 13*c808e665SOliver Stannard br label %while.body, !dbg !11 14*c808e665SOliver Stannard 15*c808e665SOliver Stannardwhile.body: 16*c808e665SOliver Stannard br label %while.body, !dbg !11 17*c808e665SOliver Stannard} 18*c808e665SOliver Stannard 19*c808e665SOliver Stannard 20*c808e665SOliver Stannard!llvm.dbg.cu = !{!0} 21*c808e665SOliver Stannard!llvm.module.flags = !{!2, !3} 22*c808e665SOliver Stannard 23*c808e665SOliver Stannard!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 20.0.0git (git@github.com:llvm/llvm-project.git 1c984b86b389bbc71c8c2988d1d707e2f32878bd)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) 24*c808e665SOliver Stannard!1 = !DIFile(filename: "test.c", directory: "/work/scratch") 25*c808e665SOliver Stannard!2 = !{i32 7, !"Dwarf Version", i32 4} 26*c808e665SOliver Stannard!3 = !{i32 2, !"Debug Info Version", i32 3} 27*c808e665SOliver Stannard!8 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !9, scopeLine: 1, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0) 28*c808e665SOliver Stannard!9 = !DISubroutineType(types: !10) 29*c808e665SOliver Stannard!10 = !{null} 30*c808e665SOliver Stannard!11 = !DILocation(line: 2, column: 3, scope: !8) 31