aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-14 09:39:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-14 09:39:23 -0700
commit2cdb053aedf15cb565553be44fe8c68a44a693c3 (patch)
tree0b9e2252bd2315d1ef665945f62511fb6f5bcdf6
parent90c4b12c0b07ca889eb5521b434f5ce258b651a1 (diff)
add i64 testing
-rwxr-xr-xtests/runner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 37cb30ad..8fb6cada 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -735,7 +735,8 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv) and 'brows
uint64_t a = 5;
double b = 6.8;
uint64_t c = a * b;
- printf("*prod:%llu*\n*%d,%d,%d*\n", c, (int)&a, (int)&b, (int)&c); // printing addresses prevents optimizations
+ if (truthy()) printf("*%d,%d,%d*\n", (int)&a, (int)&b, (int)&c); // printing addresses prevents optimizations
+ printf("*prod:%llu*\n", c);
}
// Basic (rounded, for now) math. Just check compilation.
@@ -764,7 +765,8 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv) and 'brows
'*-1,34359738367,4294967295,1073741823*\n' +
'*-1,-1,-1,-1*\n' +
'*-1,34359738367,4294967295,1073741823*\n' +
- '*prod:34*')
+ '*prod:34*\n' +
+ '*524718382041609,49025451137,787151111239120,52476740749274*')
src = r'''
#include <stdio.h>