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 | c01104dfbf92f941dfd3e6b931e6eabf08c1327a (patch) | |
tree | 5e60c7dbc49275076a7c9b13d92efeda03ae069d /llvm/test/CodeGen/Thumb2 | |
parent | 77a9255329be5d8bb8a03f3188dadb9907c6a7f3 (diff) | |
download | bcm5719-llvm-c01104dfbf92f941dfd3e6b931e6eabf08c1327a.tar.gz bcm5719-llvm-c01104dfbf92f941dfd3e6b931e6eabf08c1327a.zip |
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.
llvm-svn: 151315
Diffstat (limited to 'llvm/test/CodeGen/Thumb2')
-rw-r--r-- | llvm/test/CodeGen/Thumb2/thumb2-mls.ll | 2 | ||||
-rw-r--r-- | llvm/test/CodeGen/Thumb2/thumb2-mul.ll | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Thumb2/thumb2-mls.ll b/llvm/test/CodeGen/Thumb2/thumb2-mls.ll index 24c45c53fc8..58f9add0fc6 100644 --- a/llvm/test/CodeGen/Thumb2/thumb2-mls.ll +++ b/llvm/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/llvm/test/CodeGen/Thumb2/thumb2-mul.ll b/llvm/test/CodeGen/Thumb2/thumb2-mul.ll index bb97d978cf2..ac059bdaf05 100644 --- a/llvm/test/CodeGen/Thumb2/thumb2-mul.ll +++ b/llvm/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 } |