1 # RUN: llc -mtriple=s390x-linux-gnu -mcpu=z13 -run-pass=postra-machine-sink -verify-machineinstrs -o - %s | FileCheck %s
4 # Don't sink COPY to bb.2 since SLLK define r13l that is aliased with r12q.
5 # CHECK-LABEL: name: donot_sink_copy
7 # CHECK: renamable $r0l = COPY renamable $r12l, implicit killed $r12q
11 tracksRegLiveness: true
14 successors: %bb.1, %bb.2
15 liveins: $r2d, $r3d, $r4d, $r5d, $r12q
17 renamable $r0l = COPY renamable $r12l, implicit killed $r12q
18 renamable $r13l = SLLK renamable $r4l, $noreg, 1
19 CHIMux renamable $r3l, 0, implicit-def $cc, implicit killed $r3d
20 BRC 14, 6, %bb.2, implicit killed $cc
28 liveins: $r2d, $r4d, $r5d, $r0l, $r13l
30 renamable $r0d = LGFR killed renamable $r0l
31 renamable $r11d = LGFR killed renamable $r13l
34 # Don't sink COPY to bb.2 since SLLK use r1l that is aliased with r0q.
35 # CHECK-LABEL: name: donot_sink_copy2
37 # CHECK: renamable $r0l = COPY renamable $r12l, implicit-def $r0q
40 name: donot_sink_copy2
41 tracksRegLiveness: true
44 successors: %bb.1, %bb.2
45 liveins: $r2d, $r3d, $r4d, $r5d, $r12q
47 renamable $r0l = COPY renamable $r12l, implicit def $r0q
48 renamable $r13l = SLLK renamable $r1l, $noreg, 1
49 CHIMux renamable $r3l, 0, implicit-def $cc, implicit killed $r3d
50 BRC 14, 6, %bb.2, implicit killed $cc
58 liveins: $r2d, $r4d, $r5d, $r0l, $r13l
60 renamable $r0d = LGFR killed renamable $r0l
61 renamable $r11d = LGFR killed renamable $r13l