From 0d5b5cefcba8e4ce7e3917628d367331968e7725 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sun, 16 Aug 2015 17:40:02 -0400 Subject: swap a test in collatz This is pretty stupid... Since we rely on rpo only for code output (and not a proper scheduler), I have to be careful with the ordering of tests to get cleaner code. --- lisc/test/collatz.ssa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisc/test') diff --git a/lisc/test/collatz.ssa b/lisc/test/collatz.ssa index b763827..9f1c7b5 100644 --- a/lisc/test/collatz.ssa +++ b/lisc/test/collatz.ssa @@ -15,8 +15,8 @@ @cloop %n0 =w phi @loop %n, @odd %n2, @even %n3 %c0 =w phi @loop 0, @odd %c1, @even %c1 - %is1 =w ceq %n0, 1 - jnz %is1, @endcl, @iter0 + %no1 =w cne %n0, 1 + jnz %no1, @iter0, @endcl @iter0 %ism =w cslt %n0, %n jnz %ism, @getmemo, @iter1 -- cgit 1.4.1