# RUN: llc -O0 -run-pass=legalizer -global-isel -global-isel-abort=0 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s --- | target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" target triple = "aarch64--" define void @test_unmerge_s4() { ret void } ... --- name: test_unmerge_s4 registers: - { id: 0, class: _ } - { id: 1, class: _ } - { id: 2, class: _ } - { id: 3, class: _ } body: | bb.0: %0(s8) = G_CONSTANT i8 0 ; Previously, LegalizerInfo was assuming all G_MERGE_VALUES and G_UNMERGE_VALUES ; instructions are legal. Make sure that is no longer happening. ; CHECK: unable to legalize instruction: {{.*}} G_UNMERGE_VALUES %1(s4), %2(s4)= G_UNMERGE_VALUES %0(s8) %3(s64) = G_ANYEXT %1(s4) %x0 = COPY %3(s64) ...