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