Debian Codegraph @

llvm/test/CodeGen/PowerPC/peephole-combineRLWINM-liveness.mir

raw
1 # RUN: llc -mtriple=powerpc-ibm-aix -verify-machineinstrs -run-pass=ppc-mi-peepholes -o - %s | FileCheck %s
2 # RUN: llc -mtriple=powerpc64-ibm-aix -verify-machineinstrs -run-pass=ppc-mi-peepholes -o - %s | FileCheck %s
3 # RUN: llc -mtriple=powerpc64-linux-gnu -verify-machineinstrs -run-pass=ppc-mi-peepholes -o - %s | FileCheck %s
4 ---
5
6 name: testFoldRLWINM
7 tracksRegLiveness: true
8
9 body: |
10 bb.0.entry:
11 liveins: $r3
12 %0:gprc = COPY $r3
13 B %bb.1
14 bb.1:
15 B %bb.2
16 bb.2:
17 %1:gprc = RLWINM killed %0:gprc, 1, 0, 30
18 %2:gprc = RLWINM killed %1:gprc, 31, 0, 0
19 BLR8 implicit $lr8, implicit $rm
20
21 ...
22
23 # CHECK-LABEL: testFoldRLWINM
24 # CHECK: bb.0.entry:
25 # CHECK: dead %0:gprc = COPY killed $r3
26 # CHECK: bb.2:
27 # CHECK: dead %2:gprc = LI 0