1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -mtriple=aarch64-apple-ios -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s 3 4# Check that we can legalize G_BZERO on Darwin. 5 6... 7--- 8name: bzero 9tracksRegLiveness: true 10body: | 11 bb.0: 12 liveins: $x0, $x1 13 ; CHECK-LABEL: name: bzero 14 ; CHECK: liveins: $x0, $x1 15 ; CHECK: %ptr:_(p0) = COPY $x0 16 ; CHECK: %width:_(s64) = COPY $x1 17 ; CHECK: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp 18 ; CHECK: $x0 = COPY %ptr(p0) 19 ; CHECK: $x1 = COPY %width(s64) 20 ; CHECK: BL &bzero, csr_darwin_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $x0, implicit $x1 21 ; CHECK: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp 22 ; CHECK: RET_ReallyLR 23 %ptr:_(p0) = COPY $x0 24 %width:_(s64) = COPY $x1 25 G_BZERO %ptr(p0), %width(s64), 0 :: (store (s32)) 26 RET_ReallyLR 27 28... 29--- 30name: bzero_tail_call 31tracksRegLiveness: true 32body: | 33 bb.0: 34 liveins: $x0, $x1 35 ; CHECK-LABEL: name: bzero_tail_call 36 ; CHECK: liveins: $x0, $x1 37 ; CHECK: %ptr:_(p0) = COPY $x0 38 ; CHECK: %width:_(s64) = COPY $x1 39 ; CHECK: $x0 = COPY %ptr(p0) 40 ; CHECK: $x1 = COPY %width(s64) 41 ; CHECK: TCRETURNdi &bzero, 0, csr_darwin_aarch64_aapcs, implicit $sp, implicit $x0, implicit $x1 42 %ptr:_(p0) = COPY $x0 43 %width:_(s64) = COPY $x1 44 G_BZERO %ptr(p0), %width(s64), 1 :: (store (s32)) 45 RET_ReallyLR 46