1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=aarch64 -run-pass=legalizer %s -o - | FileCheck %s 3--- 4name: test_sext_copy 5body: | 6 bb.0.entry: 7 liveins: $w0, $w1 8 ; CHECK-LABEL: name: test_sext_copy 9 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w1 10 ; CHECK: $w0 = COPY [[COPY]](s32) 11 ; CHECK: $w0 = COPY [[COPY]](s32) 12 ; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $w0 13 ; CHECK: [[SEXT:%[0-9]+]]:_(s64) = G_SEXT [[COPY1]](s32) 14 ; CHECK: $x0 = COPY [[SEXT]](s64) 15 %0:_(s32) = COPY $w1 16 $w0 = COPY %0(s32) 17 $w0 = COPY %0(s32) 18 %1:_(s32) = COPY $w0 19 %2:_(s64) = G_SEXT %1(s32) 20 $x0 = COPY %2(s64) 21... 22