37 lines · plain
1# RUN: llc -mtriple thumbv5e -run-pass=machine-cse -o - %s | FileCheck %s2# RUN: llc -mtriple thumbv5e -passes=machine-cse -o - %s | FileCheck %s3 4# This is a contrived example made to expose a bug in5# MachineCSE, see PR32538.6 7# MachineCSE must not remove this def of $cpsr:8# CHECK-LABEL: bb.1:9# CHECK: , $cpsr = tLSLri10 11...12---13name: spam14registers:15 - { id: 0, class: tgpr }16 - { id: 1, class: tgpr }17 - { id: 2, class: tgpr }18 - { id: 3, class: tgpr }19liveins:20 - { reg: '$r0', virtual-reg: '%0' }21body: |22 bb.0:23 liveins: $r024 %0 = COPY $r025 %1, $cpsr = tLSLri %0, 2, 14, $noreg26 tCMPi8 %0, 5, 14, $noreg, implicit-def $cpsr27 tBcc %bb.8, 8, $cpsr28 29 bb.1:30 %2, $cpsr = tLSLri %0, 2, 14, $noreg31 32 bb.8:33 liveins: $cpsr34 %3 = COPY $cpsr35 tSTRi killed %3, %0, 0, 14, $noreg36...37