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