aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-01 18:18:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-01 18:18:57 -0700
commit4401a0b0e47832a94ba54b787795678535273d19 (patch)
tree4245019746b4938ca9501e109fe1df4c5e49f269
parent609bf2ea07190fd87a875ce5fef7016ee2a0ee9b (diff)
improve i64 precise test
-rw-r--r--tests/i64_precise.txt1
-rwxr-xr-xtests/runner.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/i64_precise.txt b/tests/i64_precise.txt
index 7072cbf1..69f1f306 100644
--- a/tests/i64_precise.txt
+++ b/tests/i64_precise.txt
@@ -61,6 +61,7 @@ unsigned 59: 230584300921369395,16807920381198316008,17038504682119685403,186940
unsigned 60: 461168601842738790,17170154638794455431,17631323240637194221,1737758036757834975,7428164801607120330,0,37,461168601842738790,106916370613120201
unsigned 61: 922337203685477580,7452110880706682785,8374448084392160365,11916970396688346411,17096741387571593292,0,8,922337203685477580,73413251222862145
unsigned 62: 1844674407370955161,9590438292969086497,11435112700340041658,10700980188111420280,7158457875815234233,0,5,1844674407370955161,367066256114310692
+unsigned 63: 3689348814741910323,11058703317426329250,14748052132168239573,11077389571025132689,16235003410224285766,0,2,3689348814741910323,3680005687942508604
signed 0: 0,5,5,-5,0,0,0,0,0
signed 1: 0,-35,-35,35,0,0,0,0,0
signed 2: -1,-155,-156,154,155,0,155,-1,0
diff --git a/tests/runner.py b/tests/runner.py
index c7867c88..84517659 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -840,7 +840,7 @@ m_divisor is 1091269979
int main() {
uint64_t x = 0, y = 0;
- for (int i = 0; i < 63; i++) {
+ for (int i = 0; i < 64; i++) {
x += 1ULL << i;
y += x;
x /= 3;
@@ -860,9 +860,9 @@ m_divisor is 1091269979
'''
self.do_run(src, open(path_from_root('tests', 'i64_precise.txt')).read())
- print 'TODO: i == 64 unsigned'
print 'TODO: make precise the default, and imprecise in -O3'
- #1/0.
+ print 'TODO: only include this code when needed'
+ 1/0.
def test_unaligned(self):
if Settings.QUANTUM_SIZE == 1: return self.skip('No meaning to unaligned addresses in q1')