brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 2432f42 Raw
100 lines · plain
1# RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs \2# RUN:   -run-pass ppc-mi-peepholes -ppc-convert-rr-to-ri %s -o - | FileCheck %s3 4---5name: foldNewDformStore6# CHECK: name: foldNewDformStore7tracksRegLiveness: true8body:             |9  bb.0.entry:10    liveins: $x311 12    %0:g8rc_and_g8rc_nox0 = COPY $x313    %1:g8rc_and_g8rc_nox0 = ADDI8 %0:g8rc_and_g8rc_nox0, 14414    %2:g8rc = LI8 015    ; CHECK: STD killed %2, 160, killed %016    STD killed %2:g8rc, 16, %1:g8rc_and_g8rc_nox017    BLR8 implicit $lr8, implicit $rm18...19---20name: foldNewDformStoreAlignNotMatch21# CHECK: name: foldNewDformStoreAlignNotMatch22tracksRegLiveness: true23body:             |24  bb.0.entry:25    liveins: $x326 27    %0:g8rc_and_g8rc_nox0 = COPY $x328    %1:g8rc_and_g8rc_nox0 = ADDI8 %0:g8rc_and_g8rc_nox0, 14129    %2:g8rc = LI8 030    ; CHECK: STD killed %2, 16, killed %131    STD killed %2:g8rc, 16, %1:g8rc_and_g8rc_nox032    BLR8 implicit $lr8, implicit $rm33...34---35name: foldNewDformStoreKilledFlag36# CHECK: name: foldNewDformStoreKilledFlag37tracksRegLiveness: true38body:             |39  bb.0.entry:40    liveins: $x341 42    %0:g8rc_and_g8rc_nox0 = COPY $x343    %1:g8rc_and_g8rc_nox0 = ADDI8 %0:g8rc_and_g8rc_nox0, 14444    %2:g8rc = LI8 045    ; CHECK: STD killed %1, 0, %046    STD %1:g8rc_and_g8rc_nox0, 0, killed %0:g8rc_and_g8rc_nox047    ; CHECK: STD killed %2, 160, killed %048    STD killed %2:g8rc, 16, %1:g8rc_and_g8rc_nox049    BLR8 implicit $lr8, implicit $rm50...51---52name: foldNewDformPreferLIOperand53# CHECK: name: foldNewDformPreferLIOperand54tracksRegLiveness: true55body:             |56  bb.0.entry:57  liveins: $x358  %0:g8rc_and_g8rc_nox0 = COPY $x359  %1:g8rc = ADDI8 %0:g8rc_and_g8rc_nox0, 160  %2:g8rc = LI8 161  ; CHECK: SUBFIC8 killed %1, 1, implicit-def $carry62  %3:g8rc = SUBFC8 killed %1:g8rc, %2:g8rc, implicit-def $carry63  %4:g8rc = SUBFE8 %2:g8rc, %2:g8rc, implicit-def dead $carry, implicit $carry64  %5:g8rc = NEG8 killed %4:g8rc65  $x3 = COPY %5:g8rc66  BLR8 implicit $lr8, implicit $rm, implicit $x367...68---69name: killFlagSameBlock70#CHECK : name : killFlagSameBlock71tracksRegLiveness: true72body: |73  bb.0.entry:74  liveins: $x375    %0:g8rc_and_g8rc_nox0 = COPY $x376    %1:g8rc_and_g8rc_nox0 = ADDI8 killed %0:g8rc_and_g8rc_nox0, -877    ; CHECK: %1:g8rc_and_g8rc_nox0 = ADDI8 %0, -878    %2:g8rc = LI8 079    ; CHECK: STD killed %2, 8, killed %080    STD killed %2:g8rc, 16, %1:g8rc_and_g8rc_nox081    BLR8 implicit $lr8, implicit $rm82...83---84name: killFlagDifferentBlocks85#CHECK : name : killFlagDifferentBlocks86tracksRegLiveness: true87body: |88  bb.0.entry:89  liveins: $x390    %0:g8rc_and_g8rc_nox0 = COPY $x391    ; CHECK: %1:g8rc_and_g8rc_nox0 = ADDI8 %0, -892    %1:g8rc_and_g8rc_nox0 = ADDI8 killed %0:g8rc_and_g8rc_nox0, -893 94  bb.1:95    %2:g8rc = LI8 096    ; CHECK: STD killed %2, 8, killed %097    STD killed %2:g8rc, 16, %1:g8rc_and_g8rc_nox098    BLR8 implicit $lr8, implicit $rm99...100