brintos

brintos / llvm-project-archived public Read only

0
0
Text · 988 B · 28ce9f1 Raw
41 lines · plain
1# RUN: llc -mtriple=x86_64-- -run-pass=peephole-opt %s -o - | FileCheck %s2--- |3  define void @func() { ret void }4...5---6# Check that instructions with MI.isBitcast() are only replaced by COPY if there7# are no SUBREG_TO_REG users.8# CHECK-LABEL: name: func9name: func10registers:11  - { id: 0, class: gr32 }12  - { id: 1, class: fr32 }13  - { id: 2, class: gr32 }14 15  - { id: 3, class: gr32 }16  - { id: 4, class: fr32 }17  - { id: 5, class: gr32 }18  - { id: 6, class: gr64 }19 20body: |21  bb.0:22    ; CHECK: %1:fr32 = VMOVDI2SSrr %023    ; CHECK: %7:gr32 = COPY %024    ; CHECK: NOOP implicit %725    %0 = MOV32ri 4226    %1 = VMOVDI2SSrr %027    %2 = MOVSS2DIrr %128    NOOP implicit %229 30    ; CHECK: %4:fr32 = VMOVDI2SSrr %331    ; CHECK-NOT: COPY32    ; CHECK: %5:gr32 = MOVSS2DIrr %433    ; CHECK: %6:gr64 = SUBREG_TO_REG %5, 034    ; CHECK: NOOP implicit %635    %3 = MOV32ri 4236    %4 = VMOVDI2SSrr %337    %5 = MOVSS2DIrr %438    %6 = SUBREG_TO_REG %5, 0, %subreg.sub_32bit39    NOOP implicit %640...41