brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · bac0a69 Raw
45 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=powerpc64le -simplify-mir -verify-machineinstrs \3# RUN:   -run-pass=peephole-opt %s -o - | FileCheck %s4# Test to show effect of `optimizeCompareInstr` when `equalityOnly` is true.5---6name:            h7alignment:       168tracksRegLiveness: true9registers:10  - { id: 0, class: g8rc }11  - { id: 1, class: g8rc }12  - { id: 2, class: g8rc_and_g8rc_nox0 }13  - { id: 3, class: crrc }14  - { id: 4, class: g8rc_and_g8rc_nox0 }15  - { id: 5, class: g8rc }16liveins:17  - { reg: '$x3', virtual-reg: '%0' }18  - { reg: '$x4', virtual-reg: '%1' }19frameInfo:20  maxAlignment:    121machineFunctionInfo: {}22body:             |23  bb.0:24    liveins: $x3, $x425 26    ; CHECK-LABEL: name: h27    ; CHECK: liveins: $x3, $x428    ; CHECK: [[COPY:%[0-9]+]]:g8rc = COPY $x429    ; CHECK: [[COPY1:%[0-9]+]]:g8rc = COPY $x330    ; CHECK: [[SUBF8_rec:%[0-9]+]]:g8rc_and_g8rc_nox0 = SUBF8_rec [[COPY]], [[COPY1]], implicit-def $cr031    ; CHECK: [[COPY2:%[0-9]+]]:crrc = COPY killed $cr032    ; CHECK: [[ISEL8_:%[0-9]+]]:g8rc = ISEL8 $zero8, [[SUBF8_rec]], [[COPY2]].sub_eq33    ; CHECK: $x3 = COPY [[ISEL8_]]34    ; CHECK: BLR8 implicit $lr8, implicit $rm, implicit $x335    %1:g8rc = COPY $x436    %0:g8rc = COPY $x337    %2:g8rc_and_g8rc_nox0 = SUBF8 %1, %038    %3:crrc = CMPLD %0, %139    %4:g8rc_and_g8rc_nox0 = LI8 040    %5:g8rc = ISEL8 %4, %2, %3.sub_eq41    $x3 = COPY %542    BLR8 implicit $lr8, implicit $rm, implicit $x343 44...45