xref: /llvm-project/llvm/test/CodeGen/PowerPC/mi-peephole.mir (revision 46d5d264fc66a017bbd0182b2b5fcc0f3f23d3be)
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:             |
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...
37