[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Arithm.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Mar 2 01:50:45 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Arithm.java updated: 1.6 -> 1.7
---
Log message:
Make this test a bit more interesting.
---
Diffs of the changes: (+13 -3)
Arithm.java | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Arithm.java
diff -u llvm-java/test/Programs/SingleSource/UnitTests/Arithm.java:1.6 llvm-java/test/Programs/SingleSource/UnitTests/Arithm.java:1.7
--- llvm-java/test/Programs/SingleSource/UnitTests/Arithm.java:1.6 Sat Dec 11 17:31:49 2004
+++ llvm-java/test/Programs/SingleSource/UnitTests/Arithm.java Wed Mar 2 03:50:34 2005
@@ -1,9 +1,19 @@
public class Arithm
{
public static void main(String[] args) {
- int one = 1;
- int two = 2;
+ int i = 53;
- Test.println((one + two) - (two * two) + (two / one) + (two % one) + (two << one) - (two >> 1) + (-two)); // = 2
+ i += 53;
+ i *= 53;
+ i -= 53;
+ i >>= 3;
+ i /= 53;
+ i %= 53;
+ i = -i;
+ i <<= 3;
+ i |= 53;
+ i ^= 35;
+ i &= 53;
+ Test.println(i);
}
}
More information about the llvm-commits
mailing list