brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.4 KiB · 59d2630 Raw
62 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -debugify-and-strip-all-safe=0 -mtriple=aarch64-- -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -implicit-check-not=DBG_VALUE3 4--- |5  target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"6 7  define void @test_memcpy_tail() !dbg !11 {8  entry:9    call void @llvm.dbg.value(metadata i32 0, metadata !13, metadata !DIExpression()), !dbg !1410    unreachable, !dbg !1411  }12 13  ; Function Attrs: nounwind readnone speculatable willreturn14  declare void @llvm.dbg.value(metadata, metadata, metadata) #015 16  attributes #0 = { nounwind readnone speculatable willreturn }17 18  !llvm.dbg.cu = !{!0}19  !llvm.debugify = !{!3, !3}20  !llvm.module.flags = !{!4}21 22  !0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)23  !1 = !DIFile(filename: "/Users/vsk/src/llvm-backup-main/llvm/test/CodeGen/AArch64/GlobalISel/legalize-memcpy-et-al.mir", directory: "/")24  !2 = !{}25  !3 = !{i32 6}26  !4 = !{i32 2, !"Debug Info Version", i32 3}27  !6 = !DISubroutineType(types: !2)28  !9 = !DIBasicType(name: "ty32", size: 32, encoding: DW_ATE_unsigned)29  !11 = distinct !DISubprogram(name: "test_memcpy_tail", linkageName: "test_memcpy_tail", scope: null, file: !1, line: 2, type: !6, scopeLine: 2, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !12)30  !12 = !{!13}31  !13 = !DILocalVariable(name: "2", scope: !11, file: !1, line: 2, type: !9)32  !14 = !DILocation(line: 2, column: 1, scope: !11)33 34...35---36name:            test_memcpy_tail37body:             |38  bb.0:39    liveins: $w2, $x0, $x140 41    ; CHECK-LABEL: name: test_memcpy_tail42    ; CHECK: liveins: $w2, $x0, $x143    ; CHECK-NEXT: {{  $}}44    ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0,  debug-location !1045    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $x1,  debug-location !DILocation(line: 3, column: 1, scope: !5)46    ; CHECK-NEXT: [[COPY2:%[0-9]+]]:_(s32) = COPY $w2,  debug-location !DILocation(line: 4, column: 1, scope: !5)47    ; CHECK-NEXT: [[ZEXT:%[0-9]+]]:_(s64) = G_ZEXT [[COPY2]](s32),  debug-location !DILocation(line: 5, column: 1, scope: !5)48    ; CHECK-NEXT: $x0 = COPY [[COPY]](p0),  debug-location !DILocation(line: 6, column: 1, scope: !5)49    ; CHECK-NEXT: $x1 = COPY [[COPY1]](p0),  debug-location !DILocation(line: 6, column: 1, scope: !5)50    ; CHECK-NEXT: $x2 = COPY [[ZEXT]](s64),  debug-location !DILocation(line: 6, column: 1, scope: !5)51    ; CHECK-NEXT: TCRETURNdi &memcpy, 0, csr_aarch64_aapcs, implicit $sp, implicit $x0, implicit $x1, implicit $x2,  debug-location !DILocation(line: 6, column: 1, scope: !5)52    %0:_(p0) = COPY $x0, debug-location !1453    %1:_(p0) = COPY $x1, debug-location !DILocation(line: 3, column: 1, scope: !11)54    %2:_(s32) = COPY $w2, debug-location !DILocation(line: 4, column: 1, scope: !11)55    %3:_(s64) = G_ZEXT %2(s32), debug-location !DILocation(line: 5, column: 1, scope: !11)56    G_MEMCPY %0(p0), %1(p0), %3(s64), 1, debug-location !DILocation(line: 6, column: 1, scope: !11) :: (store unknown-size), (load unknown-size)57    DBG_VALUE 0, $noreg, !13, !DIExpression(), debug-location !DILocation(line: 6, column: 1, scope: !11)58    DBG_VALUE 0, $noreg, !13, !DIExpression(), debug-location !DILocation(line: 6, column: 1, scope: !11)59    RET_ReallyLR debug-location !DILocation(line: 7, column: 1, scope: !11)60 61...62