brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · ee86c89 Raw
48 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=aarch64-apple-ios -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s3 4# Check that we can legalize G_BZERO on Darwin.5 6...7---8name:            bzero9tracksRegLiveness: true10body:             |11  bb.0:12    liveins: $x0, $x113    ; CHECK-LABEL: name: bzero14    ; CHECK: liveins: $x0, $x115    ; CHECK-NEXT: {{  $}}16    ; CHECK-NEXT: %ptr:_(p0) = COPY $x017    ; CHECK-NEXT: %width:_(s64) = COPY $x118    ; CHECK-NEXT: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp19    ; CHECK-NEXT: $x0 = COPY %ptr(p0)20    ; CHECK-NEXT: $x1 = COPY %width(s64)21    ; CHECK-NEXT: BL &bzero, csr_darwin_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $x0, implicit $x122    ; CHECK-NEXT: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp23    ; CHECK-NEXT: RET_ReallyLR24    %ptr:_(p0) = COPY $x025    %width:_(s64) = COPY $x126    G_BZERO %ptr(p0), %width(s64), 0 :: (store (s32))27    RET_ReallyLR28 29...30---31name:            bzero_tail_call32tracksRegLiveness: true33body:             |34  bb.0:35    liveins: $x0, $x136    ; CHECK-LABEL: name: bzero_tail_call37    ; CHECK: liveins: $x0, $x138    ; CHECK-NEXT: {{  $}}39    ; CHECK-NEXT: %ptr:_(p0) = COPY $x040    ; CHECK-NEXT: %width:_(s64) = COPY $x141    ; CHECK-NEXT: $x0 = COPY %ptr(p0)42    ; CHECK-NEXT: $x1 = COPY %width(s64)43    ; CHECK-NEXT: TCRETURNdi &bzero, 0, csr_darwin_aarch64_aapcs, implicit $sp, implicit $x0, implicit $x144    %ptr:_(p0) = COPY $x045    %width:_(s64) = COPY $x146    G_BZERO %ptr(p0), %width(s64), 1 :: (store (s32))47    RET_ReallyLR48