[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2003-07-06-IntOverflow.c

Jeff Cohen jeffc at jolt-lang.org
Fri Jan 12 10:17:37 PST 2007



Changes in directory llvm-test/SingleSource/UnitTests:

2003-07-06-IntOverflow.c updated: 1.2 -> 1.3
---
Log message:

Make test correct on 64-bit systems.

---
Diffs of the changes:  (+3 -3)

 2003-07-06-IntOverflow.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm-test/SingleSource/UnitTests/2003-07-06-IntOverflow.c
diff -u llvm-test/SingleSource/UnitTests/2003-07-06-IntOverflow.c:1.2 llvm-test/SingleSource/UnitTests/2003-07-06-IntOverflow.c:1.3
--- llvm-test/SingleSource/UnitTests/2003-07-06-IntOverflow.c:1.2	Sat Nov 25 02:51:03 2006
+++ llvm-test/SingleSource/UnitTests/2003-07-06-IntOverflow.c	Fri Jan 12 12:17:22 2007
@@ -25,21 +25,21 @@
 {
   int sum = x * x + y * y;
   int rem = (1 << 31) / sum;
-  printf("divide after overflow = %d (0x%lx)\n", rem, rem);
+  printf("divide after overflow = %d (0x%x)\n", rem, rem);
 }
 
 void divideNeg(int x, int y)
 {
   int sum = x * x - y * y;
   int rem = sum / (1 << 18);
-  printf("divide negative value by power-of-2 = %d (0x%lx)\n", rem, rem);
+  printf("divide negative value by power-of-2 = %d (0x%x)\n", rem, rem);
 }
 
 void subtractOvf(int x, int y)
 {
   int sum = x * x + y * y;
   int rem = (1u << 31) - sum;
-  printf("subtract after overflow = %d (0x%lx)\n", rem, rem);
+  printf("subtract after overflow = %d (0x%x)\n", rem, rem);
 }
 
 int main()






More information about the llvm-commits mailing list