diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-02-24 00:33:36 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-02-24 00:33:36 +0000 |
commit | fdf7c850321bba542e181ae035507d9c71d95364 (patch) | |
tree | 2d183d4f63fe14751bb3615a11b88eb0ea8bc3b2 /test/CodeGen/Thumb2 | |
parent | 4bf6c19e94e4c7eb888d94c1aa322d23dbcc93ba (diff) | |
download | llvm-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')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-mls.ll | 2 | ||||
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-mul.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-mls.ll b/test/CodeGen/Thumb2/thumb2-mls.ll index 24c45c53fc..58f9add0fc 100644 --- a/test/CodeGen/Thumb2/thumb2-mls.ll +++ b/test/CodeGen/Thumb2/thumb2-mls.ll @@ -15,5 +15,5 @@ define i32 @f2(i32 %a, i32 %b, i32 %c) { ret i32 %tmp2 } ; CHECK: f2: -; CHECK: muls r0, r0, r1 +; CHECK: muls r0, r1, r0 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 } |