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
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)
19 %2:_(s64) = G_SEXT %1(s32)