Home | History | Annotate | Download | only in score
      1 /*
      2  * test relax
      3  * nop <-> nop!
      4 
      5  * Author: ligang
      6  */
      7 
      8 .macro tran insn32, insn16
      9 /* This block transform 32b instruction to 16b. */
     10 .align 4
     11 
     12   \insn32               #32b -> 16b
     13   \insn16
     14 
     15   \insn32               #32b -> 16b
     16   \insn32               #32b -> 16b
     17 
     18   \insn16
     19   \insn32               #32b -> 16b
     20 
     21   \insn32               #No transform
     22   add r18, r20, r24
     23 
     24 /* This block transform 16b instruction to 32b. */
     25 .align 4
     26 
     27   \insn16               #No transform
     28   \insn32
     29 
     30   \insn16               #No transform
     31   \insn16
     32 
     33   \insn16               #16b -> 32b
     34   xor r18, r20, r24
     35 
     36 .endm
     37 
     38   tran "nop", "nop!"
     39