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