1# RUN: llc -O0 -run-pass=legalizer -global-isel-abort=0 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s 2 3--- | 4 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" 5 target triple = "aarch64--" 6 define void @test_unmerge_s4() { 7 ret void 8 } 9... 10 11--- 12name: test_unmerge_s4 13registers: 14 - { id: 0, class: _ } 15 - { id: 1, class: _ } 16 - { id: 2, class: _ } 17 - { id: 3, class: _ } 18body: | 19 bb.0: 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) 26 $x0 = COPY %3(s64) 27 28... 29