summaryrefslogtreecommitdiff
path: root/test/107-int-math2/src/Main.java
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-08-17 20:52:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-08-17 20:52:26 +0000
commit18d54cda7d9a0e6846a1c7b9b72c07598f3d1855 (patch)
tree2f90bcd0192246a28fe840d749cd7c95acb393db /test/107-int-math2/src/Main.java
parent381e58a43c6833f7fa7018cf0545681d3ebea4c3 (diff)
parent151ab8d096be02b04391fd32460a31ee60ae2b0a (diff)
Merge "Revert "Revert "ART: DCHECK zero case for CLZ/CTZ"""
Diffstat (limited to 'test/107-int-math2/src/Main.java')
-rw-r--r--test/107-int-math2/src/Main.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/107-int-math2/src/Main.java b/test/107-int-math2/src/Main.java
index 6a6227cee5..0c91d4438d 100644
--- a/test/107-int-math2/src/Main.java
+++ b/test/107-int-math2/src/Main.java
@@ -412,7 +412,7 @@ class Main extends IntMathBase {
*/
static int lit8Test(int x) {
- int[] results = new int[8];
+ int[] results = new int[9];
/* try to generate op-int/lit8" instructions */
results[0] = x + 10;
@@ -423,6 +423,7 @@ class Main extends IntMathBase {
results[5] = x & 10;
results[6] = x | -10;
results[7] = x ^ -10;
+ results[8] = x * -256;
int minInt = -2147483648;
int result = minInt / -1;
if (result != minInt) {return 1; }
@@ -434,6 +435,7 @@ class Main extends IntMathBase {
if (results[5] != 8) {return 7; }
if (results[6] != -1) {return 8; }
if (results[7] != 55563) {return 9; }
+ if (results[8] != 14222080) {return 10; }
return 0;
}