summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2/thumb2-mul.ll
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-02-24 00:33:36 +0000
committerJim Grosbach <grosbach@apple.com>2012-02-24 00:33:36 +0000
commitfdf7c850321bba542e181ae035507d9c71d95364 (patch)
tree2d183d4f63fe14751bb3615a11b88eb0ea8bc3b2 /test/CodeGen/Thumb2/thumb2-mul.ll
parent4bf6c19e94e4c7eb888d94c1aa322d23dbcc93ba (diff)
downloadllvm-fdf7c850321bba542e181ae035507d9c71d95364.tar.gz
llvm-fdf7c850321bba542e181ae035507d9c71d95364.tar.bz2
llvm-fdf7c850321bba542e181ae035507d9c71d95364.tar.xz
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
Diffstat (limited to 'test/CodeGen/Thumb2/thumb2-mul.ll')
-rw-r--r--test/CodeGen/Thumb2/thumb2-mul.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-mul.ll b/test/CodeGen/Thumb2/thumb2-mul.ll
index bb97d978cf..ac059bdaf0 100644
--- a/test/CodeGen/Thumb2/thumb2-mul.ll
+++ b/test/CodeGen/Thumb2/thumb2-mul.ll
@@ -2,7 +2,7 @@
define i32 @f1(i32 %a, i32 %b, i32 %c) {
; CHECK: f1:
-; CHECK: muls r0, r0, r1
+; CHECK: muls r0, r1, r0
%tmp = mul i32 %a, %b
ret i32 %tmp
}