1 %default {"pre0":"","pre1":""} 2 /* 3 * Generic 32-bit unary operation. Provide an "instr" line that 4 * specifies an instruction that performs "result = op eax". 5 */ 6 /* unop vA, vB */ 7 movzbl rINSTbl,%ecx # ecx<- A+ 8 sarl $$4,rINST # rINST<- B 9 GET_VREG_R %eax rINST # eax<- vB 10 andb $$0xf,%cl # ecx<- A 11 $pre0 12 $pre1 13 $instr 14 SET_VREG %eax %ecx 15 FETCH_INST_OPCODE 1 %ecx 16 ADVANCE_PC 1 17 GOTO_NEXT_R %ecx 18