summaryrefslogtreecommitdiffstats
path: root/test/416-optimizing-arith-not/src
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2014-11-11 14:48:08 +0000
committerRoland Levillain <rpl@google.com>2014-11-11 14:48:08 +0000
commit3adfd1b4fb20ac2b0217b5d2737bfe30ad90257a (patch)
treefe5ffa4519a798cf5de4dbb724f38541562d571d /test/416-optimizing-arith-not/src
parent13e86ed02c6256b704ba669cfe5f2c44f9d9f91f (diff)
downloadart-3adfd1b4fb20ac2b0217b5d2737bfe30ad90257a.zip
art-3adfd1b4fb20ac2b0217b5d2737bfe30ad90257a.tar.gz
art-3adfd1b4fb20ac2b0217b5d2737bfe30ad90257a.tar.bz2
Revert "Add support for long-to-int in the optimizing compiler."
This reverts commit 647b96f29cb81832e698f863884fdba06674c9de. Change-Id: I552f23585463c676acbd547521b4d3ee5c0342eb
Diffstat (limited to 'test/416-optimizing-arith-not/src')
-rw-r--r--test/416-optimizing-arith-not/src/Main.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/416-optimizing-arith-not/src/Main.java b/test/416-optimizing-arith-not/src/Main.java
index 44c7d3c..26e206c 100644
--- a/test/416-optimizing-arith-not/src/Main.java
+++ b/test/416-optimizing-arith-not/src/Main.java
@@ -40,10 +40,10 @@ public class Main {
expectEquals(0, smaliNotInt(-1));
expectEquals(-1, smaliNotInt(0));
expectEquals(-2, smaliNotInt(1));
- expectEquals(2147483647, smaliNotInt(-2147483648)); // -(2^31)
- expectEquals(2147483646, smaliNotInt(-2147483647)); // -(2^31 - 1)
- expectEquals(-2147483647, smaliNotInt(2147483646)); // 2^31 - 2
- expectEquals(-2147483648, smaliNotInt(2147483647)); // 2^31 - 1
+ expectEquals(2147483647, smaliNotInt(-2147483648)); // (2^31) - 1
+ expectEquals(2147483646, smaliNotInt(-2147483647)); // (2^31) - 2
+ expectEquals(-2147483647, smaliNotInt(2147483646)); // -(2^31) - 1
+ expectEquals(-2147483648, smaliNotInt(2147483647)); // -(2^31)
}
private static void notLong() throws Exception {
@@ -51,14 +51,14 @@ public class Main {
expectEquals(0L, smaliNotLong(-1L));
expectEquals(-1L, smaliNotLong(0L));
expectEquals(-2L, smaliNotLong(1L));
- expectEquals(2147483647L, smaliNotLong(-2147483648L)); // -(2^31)
- expectEquals(2147483646L, smaliNotLong(-2147483647L)); // -(2^31 - 1)
- expectEquals(-2147483647L, smaliNotLong(2147483646L)); // 2^31 - 2
- expectEquals(-2147483648L, smaliNotLong(2147483647L)); // 2^31 - 1
- expectEquals(9223372036854775807L, smaliNotLong(-9223372036854775808L)); // -(2^63)
- expectEquals(9223372036854775806L, smaliNotLong(-9223372036854775807L)); // -(2^63 - 1)
- expectEquals(-9223372036854775807L, smaliNotLong(9223372036854775806L)); // 2^63 - 2
- expectEquals(-9223372036854775808L, smaliNotLong(9223372036854775807L)); // 2^63 - 1
+ expectEquals(2147483647L, smaliNotLong(-2147483648L)); // (2^31) - 1
+ expectEquals(2147483646L, smaliNotLong(-2147483647L)); // (2^31) - 2
+ expectEquals(-2147483647L, smaliNotLong(2147483646L)); // -(2^31) - 1
+ expectEquals(-2147483648L, smaliNotLong(2147483647L)); // -(2^31)
+ expectEquals(9223372036854775807L, smaliNotLong(-9223372036854775808L)); // (2^63) - 1
+ expectEquals(9223372036854775806L, smaliNotLong(-9223372036854775807L)); // (2^63) - 2
+ expectEquals(-9223372036854775807L, smaliNotLong(9223372036854775806L)); // -(2^63) - 1
+ expectEquals(-9223372036854775808L, smaliNotLong(9223372036854775807L)); // -(2^63)
}
// Wrappers around methods located in file not.smali.