1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -run-pass=legalizer %s -o - | FileCheck %s
8 ; CHECK-LABEL: name: test_sext_inreg
9 ; CHECK: liveins: $w0, $w1
11 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $w1
12 ; CHECK-NEXT: [[SEXT_INREG:%[0-9]+]]:_(s32) = G_SEXT_INREG [[COPY]], 7
13 ; CHECK-NEXT: $w0 = COPY [[SEXT_INREG]](s32)
15 %2:_(s32) = G_SEXT_INREG %0(s32), 7
23 ; CHECK-LABEL: name: test_v4s16
26 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<4 x s16>) = COPY $d0
27 ; CHECK-NEXT: [[SEXT_INREG:%[0-9]+]]:_(<4 x s16>) = G_SEXT_INREG [[COPY]], 8
28 ; CHECK-NEXT: $d0 = COPY [[SEXT_INREG]](<4 x s16>)
29 %0:_(<4 x s16>) = COPY $d0
30 %2:_(<4 x s16>) = G_SEXT_INREG %0(<4 x s16>), 8
31 $d0 = COPY %2(<4 x s16>)
38 ; CHECK-LABEL: name: test_v2s64
41 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $q0
42 ; CHECK-NEXT: [[SEXT_INREG:%[0-9]+]]:_(<2 x s64>) = G_SEXT_INREG [[COPY]], 48
43 ; CHECK-NEXT: $q0 = COPY [[SEXT_INREG]](<2 x s64>)
44 %0:_(<2 x s64>) = COPY $q0
45 %2:_(<2 x s64>) = G_SEXT_INREG %0(<2 x s64>), 48
46 $q0 = COPY %2(<2 x s64>)