• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1   /*
2    * File: OP_SUB_DOUBLE_2ADDR.S
3    */
4
5    movzx       rINSTbl,%ecx            # ecx<- A+
6    andb        $$0xf,%cl               # ecx<- A
7    sarl        $$4,rINST               # rINST<- B
8    # TODO: movsd?
9    movq        (rFP, rINST, 4), %xmm1  # %xmm1<- vB
10    movq        (rFP, %ecx, 4), %xmm0   # %xmm0<- vA
11    FETCH_INST_OPCODE 1 %eax
12    subsd       %xmm1, %xmm0            # %xmm0<- vA op vB
13    ADVANCE_PC 1
14    movq        %xmm0, (rFP, %ecx, 4)   # vA<- %xmm0; result
15    GOTO_NEXT_R %eax
16