qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 4ce295adadc67f66b01b1841db394f60dda3956b
parent 4999d6ebf001ab3c1ae735cc0888521e0a27f9aa
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Tue, 12 Apr 2016 13:24:57 -0400

use a shift to divide by 2 in collatz

Diffstat:
Mtest/collatz.ssa | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/collatz.ssa b/test/collatz.ssa @@ -29,7 +29,7 @@ function $test() { %n2 =w add %n1, 1 jmp @cloop @even - %n3 =w div %n0, 2 + %n3 =w shr %n0, 1 jmp @cloop @getmemo # get the count for n0 in mem %n0l =l extsw %n0