Thumb2 size reduction fix for tied operands of tMUL.
authorJim Grosbach <grosbach@apple.com>
Fri, 24 Feb 2012 00:33:36 +0000 (00:33 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 24 Feb 2012 00:33:36 +0000 (00:33 +0000)
commitfdf7c850321bba542e181ae035507d9c71d95364
tree2d183d4f63fe14751bb3615a11b88eb0ea8bc3b2
parent4bf6c19e94e4c7eb888d94c1aa322d23dbcc93ba
Thumb2 size reduction fix for tied operands of tMUL.

The tied source operand of tMUL is the second source operand, not the
first like every other two-address thumb instruction. Special case it
in the size reduction pass to make sure we create the tMUL instruction
properly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151315 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2SizeReduction.cpp
test/CodeGen/ARM/avoid-cpsr-rmw.ll
test/CodeGen/Thumb2/thumb2-mls.ll
test/CodeGen/Thumb2/thumb2-mul.ll