summaryrefslogtreecommitdiff
path: root/compiler/optimizing/constant_folding_test.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-10-20 21:08:52 -0700
committer Andreas Gampe <agampe@google.com> 2015-10-20 21:51:19 -0700
commit58554b7de4b437ddef7ff550e62c8ec0b16f9264 (patch)
tree4f728d96635f4fbd1165e780e460b1d3dd95fd62 /compiler/optimizing/constant_folding_test.cc
parent1d7d0ce2d6c9a7e30d311aadc7d8aa9bbd351cb8 (diff)
ART: Fix left-shift of negative numbers
Shifting negative numbers is undefined. Change-Id: I0c32a3fcf372eae74507a5f2383edbfaf5c6830c
Diffstat (limited to 'compiler/optimizing/constant_folding_test.cc')
-rw-r--r--compiler/optimizing/constant_folding_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/constant_folding_test.cc b/compiler/optimizing/constant_folding_test.cc
index b2e222f1a9..2feb75cc9f 100644
--- a/compiler/optimizing/constant_folding_test.cc
+++ b/compiler/optimizing/constant_folding_test.cc
@@ -569,7 +569,7 @@ TEST(ConstantFolding, IntConstantFoldingAndJumps) {
Instruction::ADD_INT_LIT16 | 1 << 8 | 0 << 12, 5,
Instruction::GOTO | 4 << 8,
Instruction::ADD_INT_LIT16 | 0 << 8 | 2 << 12, 4,
- static_cast<uint16_t>(Instruction::GOTO | -5 << 8),
+ static_cast<uint16_t>(Instruction::GOTO | 0xFFFFFFFB << 8),
Instruction::ADD_INT_LIT16 | 2 << 8 | 1 << 12, 8,
Instruction::RETURN | 2 << 8);