1 %default {"instr":""} 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 %eax, rINST # eax <- vB 10 andb $$0xf,%cl # ecx <- A 11 $instr 12 SET_VREG %eax, %ecx 13 ADVANCE_PC_FETCH_AND_GOTO_NEXT 1 14