Changeset 64 in dev for BasicCompiler64/NumOpe_Arithmetic.cpp
- Timestamp:
- Mar 8, 2007, 2:49:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/NumOpe_Arithmetic.cpp
r56 r64 108 108 else if(idCalc==CALC_PRODUCT){ 109 109 //mul reg1,reg2 110 op_imul_ reg(sizeof(_int64),reg1,reg2);110 op_imul_RR(sizeof(_int64),reg1,reg2); 111 111 } 112 112 … … 131 131 else if(idCalc==CALC_PRODUCT){ 132 132 //mul reg1,reg2 133 op_imul_ reg(sizeof(long),reg1,reg2);133 op_imul_RR(sizeof(long),reg1,reg2); 134 134 } 135 135 … … 177 177 if(reg2==REG_RAX||reg2==REG_RDX){ 178 178 //mov r15,reg2 179 op_mov 64_ToReg_FromReg(REG_R15,reg2);179 op_mov_RR(REG_R15,reg2); 180 180 181 181 reg2=REG_R15; … … 203 203 204 204 //mov rax,reg1 205 op_mov 64_ToReg_FromReg(REG_RAX,reg1);205 op_mov_RR(REG_RAX,reg1); 206 206 207 207 if(IsSignedType(type[sp-2])){ … … 231 231 232 232 //mov reg1,rdx 233 op_mov 64_ToReg_FromReg(reg1,REG_RDX);233 op_mov_RR(reg1,REG_RDX); 234 234 235 235 } … … 353 353 if(reg2==REG_RAX||reg2==REG_RDX){ 354 354 //mov r15,reg2 355 op_mov 64_ToReg_FromReg(REG_R15,reg2);355 op_mov_RR(REG_R15,reg2); 356 356 357 357 reg2=REG_R15; … … 379 379 380 380 //mov rax,reg1 381 op_mov 64_ToReg_FromReg(REG_RAX,reg1);381 op_mov_RR(REG_RAX,reg1); 382 382 383 383 if(IsSignedType(type[sp-2])){ … … 407 407 408 408 //mov reg1,rax 409 op_mov 64_ToReg_FromReg(reg1,REG_RAX);409 op_mov_RR(reg1,REG_RAX); 410 410 411 411 } … … 495 495 496 496 //imul reg,-1 497 op_imul_ value(sizeof(_int64),reg,-1);497 op_imul_RV(sizeof(_int64),reg,-1); 498 498 499 499 if(reg==REG_R14){ … … 508 508 509 509 //imul reg,-1 510 op_imul_ value(sizeof(long),reg,-1);510 op_imul_RV(sizeof(long),reg,-1); 511 511 512 512 if(reg==REG_R14){ … … 617 617 if(reg1==REG_RCX){ 618 618 //mov r15,rcx 619 op_mov 64_ToReg_FromReg(REG_R15,REG_RCX);619 op_mov_RR(REG_R15,REG_RCX); 620 620 621 621 reg1=REG_R15; … … 629 629 630 630 //mov rcx,reg2 631 op_mov 64_ToReg_FromReg(REG_RCX,reg2);631 op_mov_RR(REG_RCX,reg2); 632 632 633 633 if(idCalc==CALC_SHL){ … … 662 662 if(sw==0){ 663 663 //mov rcx,r15 664 op_mov 64_ToReg_FromReg(REG_RCX,REG_R15);664 op_mov_RR(REG_RCX,REG_R15); 665 665 } 666 666 else{
Note:
See TracChangeset
for help on using the changeset viewer.