VirtualBox

Changeset 47139 in vbox for trunk/src/VBox/VMM/testcase


Ignore:
Timestamp:
Jul 14, 2013 7:54:23 PM (11 years ago)
Author:
vboxsync
Message:

iem: Fixed negation of number in two registers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/Instructions/InstructionTestGen.py

    r47138 r47139  
    10381038        return auRet;
    10391039
    1040 
    10411040    def generateOneStdTestGreg(self, oGen, cbEffOp, iOp2, iDividend, iDivisor):
    10421041        """ Generate code of one '[I]DIV rDX:rAX,<GREG>' test. """
     
    10811080        oGen.pushConst(uAXResult);
    10821081
    1083         oGen.write('        %-4s    %s\n' % (self.sInstr, gregName(iOp2, cbEffOp * 8),));
     1082        oGen.write('        %-4s    %s\n' % (self.sInstr, oGen.gregNameBytes(iOp2, cbEffOp),));
    10841083        oGen.write('        call VBINSTST_NAME(%s)\n' % (oGen.needGRegChecker(X86_GREG_xAX, X86_GREG_xDX, iOp2),));
    10851084        return True;
     
    11181117        oGen.pushConst(uAXResult);
    11191118
    1120         oGen.write('        %-4s    %s\n' % (self.sInstr, gregName(iOp2, cbEffOp * 8),));
     1119        oGen.write('        %-4s    %s\n' % (self.sInstr, oGen.gregNameBytes(iOp2, cbEffOp),));
    11211120        oGen.write('        call VBINSTST_NAME(%s)\n' % (oGen.needGRegChecker(X86_GREG_xAX, iOp2X),));
    11221121        return;
     
    13121311        #oGen.write('        int3\n');
    13131312
    1314         #self.generateStandardTests(oGen);
     1313        self.generateStandardTests(oGen);
    13151314        self.generateDivideErrorTests(oGen);
    13161315
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette