brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · 622803f Raw
58 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s3 4--- |5  target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"6  target triple = "aarch64--"7  define void @test_vaarg() { ret void }8 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_vaarg", 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 30---31name:            test_vaarg32body: |33  bb.0:34    ; CHECK-LABEL: name: test_vaarg35    ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x036    ; CHECK-NEXT: [[LOAD:%[0-9]+]]:_(p0) = G_LOAD [[COPY]](p0),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}}) :: (load (p0))37    ; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 838    ; CHECK-NEXT: [[PTR_ADD:%[0-9]+]]:_(p0) = G_PTR_ADD [[LOAD]], [[C]](s64),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}})39    ; CHECK-NEXT: G_STORE [[PTR_ADD]](p0), [[COPY]](p0),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}}) :: (store (p0))40    ; CHECK-NEXT: [[LOAD1:%[0-9]+]]:_(p0) = G_LOAD [[COPY]](p0),  debug-location !DILocation(line: 5, column: 1, scope: {{.*}}) :: (load (p0))41    ; CHECK-NEXT: [[PTR_ADD1:%[0-9]+]]:_(p0) = G_PTR_ADD [[LOAD1]], [[C]](s64),  debug-location !DILocation(line: 5, column: 1, scope: {{.*}})42    ; CHECK-NEXT: G_STORE [[PTR_ADD1]](p0), [[COPY]](p0),  debug-location !DILocation(line: 5, column: 1, scope: {{.*}}) :: (store (p0))43    ; CHECK-NEXT: [[LOAD2:%[0-9]+]]:_(p0) = G_LOAD [[COPY]](p0),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}}) :: (load (p0))44    ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 1545    ; CHECK-NEXT: [[PTR_ADD2:%[0-9]+]]:_(p0) = G_PTR_ADD [[LOAD2]], [[C1]](s64),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}})46    ; CHECK-NEXT: [[C2:%[0-9]+]]:_(s64) = G_CONSTANT i64 -1647    ; CHECK-NEXT: [[PTRMASK:%[0-9]+]]:_(p0) = G_PTRMASK [[PTR_ADD2]], [[C2]](s64),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}})48    ; CHECK-NEXT: [[PTR_ADD3:%[0-9]+]]:_(p0) = G_PTR_ADD [[PTRMASK]], [[C]](s64),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}})49    ; CHECK-NEXT: G_STORE [[PTR_ADD3]](p0), [[COPY]](p0),  debug-location !DILocation(line: 4, column: 3, scope: {{.*}}) :: (store (p0))50    %0:_(p0) = COPY $x051 52    %1:_(s8) = G_VAARG %0(p0), 1, debug-location !1153 54    %2:_(s64) = G_VAARG %0(p0), 8, debug-location !1255 56    %3:_(s64) = G_VAARG %0(p0), 16, debug-location !1157...58