| 1 |
# RUN: llc -mtriple=powerpc64le--linux-gnu -run-pass ppc-mi-peepholes %s -o - \ |
| 2 |
# RUN: -verify-machineinstrs | FileCheck %s |
| 3 |
|
| 4 |
--- |
| 5 |
name: testRLDIC |
| 6 |
alignment: 16 |
| 7 |
tracksRegLiveness: true |
| 8 |
registers: |
| 9 |
- { id: 0, class: g8rc } |
| 10 |
- { id: 1, class: g8rc } |
| 11 |
- { id: 2, class: g8rc } |
| 12 |
liveins: |
| 13 |
- { reg: '$x3', virtual-reg: '%0' } |
| 14 |
- { reg: '$x4', virtual-reg: '%1' } |
| 15 |
frameInfo: |
| 16 |
maxAlignment: 1 |
| 17 |
machineFunctionInfo: {} |
| 18 |
body: | |
| 19 |
bb.0.entry: |
| 20 |
liveins: $x3, $x4 |
| 21 |
|
| 22 |
%1:g8rc = COPY $x4 |
| 23 |
%0:g8rc = COPY $x3 |
| 24 |
%2:g8rc = RLDICL killed %1, 0, 32 |
| 25 |
%3:g8rc = RLDICR %2, 2, 61 |
| 26 |
$x3 = COPY %3 |
| 27 |
BLR8 implicit $lr8, implicit $rm, implicit $x3 |
| 28 |
|
| 29 |
; CHECK-LABEL: testRLDIC |
| 30 |
; CHECK: bb.0.entry: |
| 31 |
; CHECK: %1:g8rc = COPY killed $x4 |
| 32 |
; CHECK: %0:g8rc = COPY killed $x3 |
| 33 |
; CHECK: %3:g8rc = RLDIC killed %1, 2, 30 |
| 34 |
; CHECK: $x3 = COPY killed %3 |
| 35 |
; CHECK: BLR8 implicit $lr8, implicit $rm, implicit killed $x3 |
| 36 |
... |