1 # RUN: llc -verify-machineinstrs -run-pass regallocfast -mtriple s390x-ibm-linux -o - %s | FileCheck %s 2 --- | 3 4 @g_167 = external global [5 x i64], align 8 5 define void @main() local_unnamed_addr { 6 ret void 7 } 8 ... 9 # Make sure the usage of different subregisters on the same virtual register 10 # does not result in invalid kill flags. 11 # PR33677 12 --- 13 name: main 14 alignment: 2 15 tracksRegLiveness: true 16 registers: 17 - { id: 0, class: gr128bit } 18 - { id: 1, class: gr64bit } 19 - { id: 2, class: addr64bit } 20 # CHECK: $r0q = L128 21 # CHECK-NEXT: $r0l = COPY renamable $r1l 22 # Although R0L partially redefines R0Q, it must not mark R0Q as kill 23 # because R1D is still live through that instruction. 24 # CHECK-NOT: implicit killed $r0q 25 # CHECK-NEXT: $r2d = COPY renamable $r1d 26 # CHECK-NEXT: LARL 27 body: | 28 bb.0: 29 %0.subreg_hl32 = COPY %0.subreg_l32 30 %1 = COPY %0.subreg_l64 31 %2 = LARL @g_167 32 STC %1.subreg_l32, %2, 8, $noreg 33 34 ... 35