qbe

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

_dragon.ssa (403B)


      1 # a moderately complex test for
      2 # dominators computation from
      3 # the dragon book
      4 # because branching is limited to
      5 # two, I had to split some blocks
      6 
      7 function $dragon() {
      8 @start
      9 @b1
     10 	jnz 0, @b2, @b3
     11 @b2
     12 	jmp @b3
     13 @b3
     14 	jmp @b4.1
     15 @b4.1
     16 	jnz 0, @b3, @b4.2
     17 @b4.2
     18 	jnz 0, @b5, @b6
     19 @b5
     20 	jmp @b7
     21 @b6
     22 	jmp @b7
     23 @b7
     24 	jnz 0, @b8.1, @b4.1
     25 @b8.1
     26 	jnz 0, @b3, @b8.2
     27 @b8.2
     28 	jnz 0, @b9, @b10
     29 @b9
     30 	jmp @b1
     31 @b10
     32 	jmp @b7
     33 }