• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1    /*
2     * Generic 64-bit binary operation.
3     */
4    /* binop/2addr vA, vB */
5    movzbl    rINST_HI,%ecx             # ecx<- BA
6    sarl      $$4,%ecx                  # ecx<- B
7    GET_VREG_WORD(%eax,%ecx,0)          # eax<- v[B+0]
8    GET_VREG_WORD(%ecx,%ecx,1)          # eax<- v[B+1]
9    movzbl    rINST_HI,rINST_FULL       # rINST_FULL<- BA
10    andb      $$0xF,rINST_LO            # rINST_FULL<- A
11    $instr1         # example: addl   %eax,(rFP,rINST_FULL,4)
12    $instr2         # example: adcl   %ecx,4(rFP,rINST_FULL,4)
13    FETCH_INST_WORD(1)
14    ADVANCE_PC(1)
15    GOTO_NEXT
16