qbe

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

align.ssa (248B)


      1 export
      2 function $test() {
      3 @start
      4 	%x =l alloc16 16
      5 	%y =l add %x, 8
      6 	%m =w rem %y, 16
      7 	storew %m, %y
      8 	%n =w loadw %y
      9 	storew %n, $a
     10 	ret
     11 }
     12 
     13 # >>> driver
     14 # extern void test(void);
     15 # int a;
     16 # int main() { test(); return !(a == 8 || a == -8); }
     17 # <<<