diff options
| author | 2015-02-02 19:17:11 -0800 | |
|---|---|---|
| committer | 2015-02-02 19:17:11 -0800 | |
| commit | 7b7e524c86a67f7357bbcfd0e7bde07ded50cca2 (patch) | |
| tree | 24e3b5bb0af0d74f1d80fda69b56c93cb379e088 /compiler/utils/assembler_thumb_test.cc | |
| parent | a1a0ffb72c4d7170dee9d46f055ca56932eedbae (diff) | |
ART: Fix assembler_thumb_test
Fix the inconsistent calls. This was bad practice, requiring that
shape meant arm32 and thumb were not interchangeable.
Also fix an error in the assembler itself for tst and teq.
Change-Id: I50242801002aa81cc17bfaa53eb8b7c1d9488fbc
Diffstat (limited to 'compiler/utils/assembler_thumb_test.cc')
| -rw-r--r-- | compiler/utils/assembler_thumb_test.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler/utils/assembler_thumb_test.cc b/compiler/utils/assembler_thumb_test.cc index e3a9580737..a171e59d98 100644 --- a/compiler/utils/assembler_thumb_test.cc +++ b/compiler/utils/assembler_thumb_test.cc @@ -309,13 +309,13 @@ TEST(Thumb2AssemblerTest, DataProcessingRegister) { // 16 bit variants. __ add(R0, R1, ShifterOperand()); __ sub(R0, R1, ShifterOperand()); - __ and_(R0, R1, ShifterOperand()); - __ orr(R0, R1, ShifterOperand()); - __ eor(R0, R1, ShifterOperand()); - __ bic(R0, R1, ShifterOperand()); - __ adc(R0, R1, ShifterOperand()); - __ sbc(R0, R1, ShifterOperand()); - __ rsb(R0, R1, ShifterOperand()); + __ and_(R0, R0, ShifterOperand(R1)); + __ orr(R0, R0, ShifterOperand(R1)); + __ eor(R0, R0, ShifterOperand(R1)); + __ bic(R0, R0, ShifterOperand(R1)); + __ adc(R0, R0, ShifterOperand(R1)); + __ sbc(R0, R0, ShifterOperand(R1)); + __ rsb(R0, R0, ShifterOperand(R1)); __ tst(R0, ShifterOperand(R1)); __ teq(R0, ShifterOperand(R1)); |