brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · e8b4de0 Raw
53 lines · plain
1# RUN: llc -mtriple=aarch64-- -run-pass=legalizer -verify-machineinstrs -O0 %s -o - | FileCheck %s2--- |3  target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"4  target triple = "arm64-apple-ios13.0.0"5 6  define void @test_debugloc() {7    ret void8  }9 10  !llvm.module.flags = !{!0, !1, !2, !3, !4}11  !llvm.dbg.cu = !{!5}12  !llvm.ident = !{!8}13 14  !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 14, i32 0]}15  !1 = !{i32 7, !"Dwarf Version", i32 4}16  !2 = !{i32 2, !"Debug Info Version", i32 3}17  !3 = !{i32 1, !"wchar_size", i32 4}18  !4 = !{i32 7, !"PIC Level", i32 2}19  !5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, producer: "clang")20  !6 = !DIFile(filename: "foo.c", directory: "/")21  !7 = !{}22  !8 = !{!"clang"}23  !9 = distinct !DISubprogram(name: "test_debugloc", scope: !6, file: !6, line: 3, type: !10, scopeLine: 3, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !5, retainedNodes: !7)24  !10 = !DISubroutineType(types: !7)25  !11 = !DILocation(line: 4, column: 3, scope: !9)26  !12 = !DILocation(line: 5, column: 1, scope: !9)27 28...29---30name:            test_debugloc31alignment:       432tracksRegLiveness: true33liveins:34  - { reg: '$x0' }35  - { reg: '$q0' }36body:             |37  bb.1:38    liveins: $q0, $x039 40    ; CHECK-LABEL: name: test_debugloc41    ; CHECK: liveins: $q0, $x042    ; CHECK: [[COPY:%[0-9]+]]:_(<2 x p0>) = COPY $q043    ; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $x044    ; CHECK: [[BITCAST:%[0-9]+]]:_(<2 x s64>) = G_BITCAST [[COPY]](<2 x p0>), debug-location !DILocation(line: 4, column: 345    ; CHECK: G_STORE [[BITCAST]](<2 x s64>), [[COPY1]](p0), debug-location !DILocation(line: 4, column: 346    ; CHECK: RET_ReallyLR debug-location !DILocation(line: 5, column: 147    %0:_(<2 x p0>) = COPY $q048    %1:_(p0) = COPY $x049    G_STORE %0(<2 x p0>), %1(p0), debug-location !11 :: (store (<2 x p0>))50    RET_ReallyLR debug-location !1251 52...53