blob: c4d4b1e7fb63cb20998c5a51f72dc5468cc7cbea [file] [log] [blame]
%default {"result":"%eax","tmp":"%ecx"}
/*
* Generic 32-bit binary operation in which both operands loaded to
* registers (op0 in eax, op1 in ecx).
*/
/* binop vAA, vBB, vCC */
movzbl 2(rPC),%eax # eax<- BB
movzbl 3(rPC),%ecx # ecx<- CC
GET_VREG_R %eax %eax # eax<- vBB
GET_VREG_R %ecx %ecx # eax<- vBB
$instr # ex: addl %ecx,%eax
FETCH_INST_OPCODE 2 %edx
ADVANCE_PC 2
SET_VREG $result rINST
GOTO_NEXT_R %edx