blob: 195dbb996ef3ab11fb4f3edb8987faf768d611f0 [file] [log] [blame]
Quentin Colombet868ef842017-07-07 19:25:45 +00001# 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---
13name: main
14alignment: 2
15tracksRegLiveness: true
Matthias Braunc045c552018-10-29 20:10:42 +000016# CHECK: $r0l = COPY renamable $r1l
Quentin Colombet868ef842017-07-07 19:25:45 +000017# Although R0L partially redefines R0Q, it must not mark R0Q as kill
18# because R1D is still live through that instruction.
Puyan Lotfi43e94b12018-01-31 22:04:26 +000019# CHECK-NOT: implicit killed $r0q
Matthias Braunc045c552018-10-29 20:10:42 +000020# CHECK-NEXT: {{\$r[0-9]+d}} = COPY renamable $r1d
Quentin Colombet868ef842017-07-07 19:25:45 +000021# CHECK-NEXT: LARL
22body: |
23 bb.0:
Matthias Braunc045c552018-10-29 20:10:42 +000024 %0 : gr128bit = IMPLICIT_DEF
Quentin Colombet868ef842017-07-07 19:25:45 +000025 %0.subreg_hl32 = COPY %0.subreg_l32
Matthias Braunc045c552018-10-29 20:10:42 +000026 %1 : gr64bit = COPY %0.subreg_l64
27 %2 : addr64bit = LARL @g_167
Puyan Lotfi43e94b12018-01-31 22:04:26 +000028 STC %1.subreg_l32, %2, 8, $noreg
Quentin Colombet868ef842017-07-07 19:25:45 +000029
30...