• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs -start-before ppc-mi-peepholes \
2# RUN:   -stop-after ppc-mi-peepholes %s -o - | FileCheck %s
3
4---
5name: test
6#CHECK : name : test
7tracksRegLiveness: true
8body: |
9  bb.0.entry:
10    liveins: $x3
11    %0:g8rc = COPY $x3
12    %1:gprc = COPY %0.sub_32:g8rc
13    %2:g8rc = LI8 63
14
15  bb.1:
16    %3:gprc = COPY %2.sub_32:g8rc
17    ; CHECK: %4:gprc = LI 0
18    %4:gprc = XORI killed %3:gprc, 63
19    STW killed %4:gprc, %4:gprc, 100
20    BLR8 implicit $lr8, implicit $rm
21...
22---
23name: test2
24#CHECK : name : test2
25tracksRegLiveness: true
26body: |
27  bb.0.entry:
28    liveins: $r3
29    %0:gprc = COPY $r3
30    %1:gprc_and_gprc_nor0 = LI 0
31    ; CHECK: dead %2:gprc = COPY %1
32    %2:gprc = COPY %1:gprc_and_gprc_nor0
33    ; CHECK: %3:gprc = LI 1
34    %3:gprc = ORI killed %2:gprc, 1
35    ; CHECK: STW killed %3, %0, 100
36    STW killed %3:gprc, %0:gprc, 100
37    BLR8 implicit $lr8, implicit $rm
38...
39