qbe

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

_spill3.ssa (368B)


      1 # make sure comparisons
      2 # never get their two
      3 # operands in memory
      4 # run with NReg == 3, or
      5 # adapt it!
      6 
      7 function $test() {
      8 @start
      9 	%a =w loadw $a
     10 	%b =w loadw $a
     11 
     12 @loop
     13 	%c =w phi @start 0, @loop %f
     14 	%d =w phi @start 0, @loop %g
     15 	%e =w phi @start 0, @loop %h
     16 	%f =w add %c, %d
     17 	%g =w add %c, %e
     18 	%h =w add %e, %d
     19 	%x =w cslew %a, %b
     20 	jnz %x, @loop, @end
     21 
     22 @end
     23 	ret
     24 }