Changeset 104269 in vbox for trunk/src/VBox/VMM/testcase/tstIEMAImpl.cpp
- Timestamp:
- Apr 10, 2024 9:42:20 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstIEMAImpl.cpp
r104238 r104269 9482 9482 TestData.InVal2.uXmm = iTest < cTests ? RandU128() : s_aSpecials[iTest - cTests].uSrc2; 9483 9483 9484 IEMPCMPISTRXSRC TestVal;9485 TestVal.uSrc1 = TestData.InVal1.uXmm;9486 TestVal.uSrc2 = TestData.InVal2.uXmm;9487 9488 9484 uint32_t const fEFlagsIn = RandEFlags(); 9489 9485 for (uint16_t u16Imm = 0; u16Imm < 256; u16Imm++) 9490 9486 { 9491 9487 uint32_t fEFlagsOut = fEFlagsIn; 9492 pfn(&TestData.u32EcxOut, &fEFlagsOut, &TestVal, (uint8_t)u16Imm);9488 TestData.u32EcxOut = pfn(&fEFlagsOut, &TestData.InVal1.uXmm, &TestData.InVal2.uXmm, (uint8_t)u16Imm); 9493 9489 TestData.fEFlagsIn = fEFlagsIn; 9494 9490 TestData.fEFlagsOut = fEFlagsOut; … … 9498 9494 9499 9495 /* Repeat the test with the input value being the same. */ 9500 TestData.InVal2.uXmm = TestData.InVal1.uXmm;9501 TestVal.uSrc1 = TestData.InVal1.uXmm;9502 TestVal.uSrc2 = TestData.InVal2.uXmm;9503 9504 9496 for (uint16_t u16Imm = 0; u16Imm < 256; u16Imm++) 9505 9497 { 9506 9498 uint32_t fEFlagsOut = fEFlagsIn; 9507 pfn(&TestData.u32EcxOut, &fEFlagsOut, &TestVal, (uint8_t)u16Imm);9499 TestData.u32EcxOut = pfn(&fEFlagsOut, &TestData.InVal1.uXmm, &TestData.InVal2.uXmm, (uint8_t)u16Imm); 9508 9500 TestData.fEFlagsIn = fEFlagsIn; 9509 9501 TestData.fEFlagsOut = fEFlagsOut; … … 9538 9530 for (uint32_t iTest = 0; iTest < cTests; iTest++) 9539 9531 { 9540 IEMPCMPISTRXSRC TestVal;9541 TestVal.uSrc1 = paTests[iTest].InVal1.uXmm;9542 TestVal.uSrc2 = paTests[iTest].InVal2.uXmm;9543 9544 9532 uint32_t fEFlags = paTests[iTest].fEFlagsIn; 9545 uint32_t u32EcxOut = 0; 9546 pfn(&u32EcxOut, &fEFlags, &TestVal, paTests[iTest].bImm); 9533 uint32_t u32EcxOut = pfn(&fEFlags, &paTests[iTest].InVal1.uXmm, &paTests[iTest].InVal2.uXmm, paTests[iTest].bImm); 9547 9534 if ( fEFlags != paTests[iTest].fEFlagsOut 9548 9535 || u32EcxOut != paTests[iTest].u32EcxOut)
Note:
See TracChangeset
for help on using the changeset viewer.