3 OPCODES="AND EOR SUB RSB ADD ADC SBC RSC ORR BIC"
4 CMP_OPCODES="TST TEQ CMP CMN"
11 sed "s/<Op>/$i/g" $2.th
17 echo -e "/* Macros for DPI ops, auto-generated from template */\n"
19 echo -e "\n/* mov/mvn */\n"
20 gen "$MOV_OPCODES" mov_macros
22 echo -e "\n/* DPIs, arithmetic and logical */\n"
23 gen "$OPCODES" dpi_macros
27 echo -e "\n/* DPIs, comparison */\n"
28 gen "$CMP_OPCODES" cmp_macros
30 echo -e "\n/* end generated */\n"