1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=aarch64 -O0 -run-pass=legalizer %s -o - | FileCheck %s 3 4--- 5name: test_unmerge_s4_constant 6body: | 7 bb.0: 8 ; CHECK-LABEL: name: test_unmerge_s4_constant 9 ; CHECK: [[C:%[0-9]+]]:_(s8) = G_CONSTANT i8 0 10 ; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 0 11 ; CHECK: $x0 = COPY [[C1]](s64) 12 %0:_(s8) = G_CONSTANT i8 0 13 %1:_(s4), %2:_(s4)= G_UNMERGE_VALUES %0 14 %3:_(s64) = G_ANYEXT %1 15 $x0 = COPY %3 16 17... 18 19--- 20name: test_unmerge_s4 21body: | 22 bb.0: 23 liveins: $w0 24 ; CHECK-LABEL: name: test_unmerge_s4 25 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0 26 ; CHECK: [[UV:%[0-9]+]]:_(s8), [[UV1:%[0-9]+]]:_(s8), [[UV2:%[0-9]+]]:_(s8), [[UV3:%[0-9]+]]:_(s8) = G_UNMERGE_VALUES [[COPY]](s32) 27 ; CHECK: [[C:%[0-9]+]]:_(s8) = G_CONSTANT i8 4 28 ; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8) 29 ; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 4 30 ; CHECK: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT]], [[C1]](s64) 31 ; CHECK: [[ANYEXT:%[0-9]+]]:_(s64) = G_ANYEXT [[UV]](s8) 32 ; CHECK: [[ANYEXT1:%[0-9]+]]:_(s64) = G_ANYEXT [[LSHR]](s32) 33 ; CHECK: $x0 = COPY [[ANYEXT]](s64) 34 ; CHECK: $x1 = COPY [[ANYEXT1]](s64) 35 %0:_(s32) = COPY $w0 36 %1:_(s8) = G_TRUNC %0 37 %2:_(s4), %3:_(s4)= G_UNMERGE_VALUES %1 38 %4:_(s64) = G_ANYEXT %2 39 %5:_(s64) = G_ANYEXT %3 40 $x0 = COPY %4 41 $x1 = COPY %5 42 43... 44