Revert "Revert "ART: DCHECK zero case for CLZ/CTZ""
This reverts commit 4318d91ea4be673d4deba39d33ac4718d77986a7.
Fix up the lit=-1 case in the arm32 Quick backend; add test case.
Change-Id: I8d0861133db950090ee959f532ede1448683dfa9
diff --git a/test/107-int-math2/src/Main.java b/test/107-int-math2/src/Main.java
index 6a6227c..0c91d44 100644
--- a/test/107-int-math2/src/Main.java
+++ b/test/107-int-math2/src/Main.java
@@ -412,7 +412,7 @@
*/
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 @@
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 @@
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;
}