1# RUN: llc < %s -x=mir -mtriple=x86_64-- -run-pass=simple-register-coalescing | FileCheck %s
2---
3name: f
4body: |
5  bb.0:
6    JCC_1 %bb.2, 2, undef implicit killed $eflags
7    JMP_1 %bb.1
8
9  bb.1:
10    %0 : gr64 = IMPLICIT_DEF
11    NOOP implicit-def undef %1.sub_32bit : gr64
12    NOOP implicit-def %1.sub_16bit : gr64
13    JMP_1 %bb.3
14
15  bb.2:
16    NOOP implicit-def %0
17    %1 = COPY %0
18
19  bb.3:
20    NOOP implicit killed %0
21    NOOP implicit killed %1
22...
23
24# We should have a setting of both sub_32bit and sub_16bit. The first one
25# should be undef and not dead, and the second should not be undef.
26
27# CHECK-NOT:  dead
28# CHECK:      NOOP implicit-def undef %1.sub_32bit
29# CHECK-NOT:  undef
30# CHECK-NEXT: NOOP implicit-def %1.sub_16bit
31