1 /* 2 * macros for S+core 3 instruction relaxation 3 * 4 * partial copyed from testpatterns for S+core 7 5 * 6 * Author: libin 7 */ 8 9 .macro _tran insn1 insn2 10 .balign 2 11 .irp i1,"\insn1", "\insn2" 12 .irp i2,"\insn1", "\insn2" 13 \i1 14 \i2 15 .endr 16 .endr 17 .endm 18 19 /* insn32/insn16 may include special characters, for example, blank character */ 20 .macro tran_16_32 insn16 insn32 21 _tran "\insn16", "\insn32" 22 .endm 23 24 .macro insn_16 insn16 25 .balign 2 26 \insn16 27 .endm 28 29 .macro insn_32 insn32 30 .balign 2 31 \insn32 32 .endm 33