1 # RUN: llc -mtriple thumbv5e -run-pass=machine-cse -o - %s | FileCheck %s
2 # RUN: llc -mtriple thumbv5e -passes=machine-cse -o - %s | FileCheck %s
4 # This is a contrived example made to expose a bug in
5 # MachineCSE, see PR32538.
7 # MachineCSE must not remove this def of $cpsr:
9 # CHECK: , $cpsr = tLSLri
15 - { id: 0, class: tgpr }
16 - { id: 1, class: tgpr }
17 - { id: 2, class: tgpr }
18 - { id: 3, class: tgpr }
20 - { reg: '$r0', virtual-reg: '%0' }
25 %1, $cpsr = tLSLri %0, 2, 14, $noreg
26 tCMPi8 %0, 5, 14, $noreg, implicit-def $cpsr
30 %2, $cpsr = tLSLri %0, 2, 14, $noreg
35 tSTRi killed %3, %0, 0, 14, $noreg