qbe

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

_fix3.ssa (225B)


      1 function w $test() {
      2 @start
      3 	%x =w copy 100
      4 	%s =w copy 0
      5 @l
      6 	%c =w cslew %x, 10
      7 	jnz %c, @a, @b
      8 @a
      9 	%s =w add %s, %x
     10 	%x =w sub %x, 1
     11 	jmp @c
     12 @b
     13 	%s =w sub %s, %x
     14 	jmp @c
     15 @c
     16 	%x =w sub %x, 1
     17 	jnz %x, @l, @end
     18 @end
     19 	ret %s
     20 }