Changeset 40057 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Feb 10, 2012 12:21:23 AM (13 years ago)
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstX86-1.cpp
r40024 r40057 71 71 DECLASM(int32_t) x861_Test4(void); 72 72 DECLASM(int32_t) x861_Test5(void); 73 DECLASM(int32_t) x861_Test6(void); 73 74 74 75 … … 233 234 if (rc != 0) 234 235 RTTestFailed(hTest, "x861_Test3 -> %d", rc); 236 235 237 RTTestSub(hTest, "Multibyte NOPs"); 236 238 rc = x861_Test4(); 237 239 if (rc != 0) 238 240 RTTestFailed(hTest, "x861_Test4 -> %d", rc); 241 239 242 RTTestSub(hTest, "Odd floating point encodings"); 240 #endif241 243 rc = x861_Test5(); 242 244 if (rc != 0) 243 245 RTTestFailed(hTest, "x861_Test5 -> %d", rc); 246 #endif 247 248 RTTestSub(hTest, "Floating point exceptions ++"); 249 rc = x861_Test6(); 250 if (rc != 0) 251 RTTestFailed(hTest, "x861_Test6 -> %d", rc); 244 252 } 245 253 -
trunk/src/VBox/VMM/testcase/tstX86-1A.asm
r40037 r40057 57 57 %define X86_XCPT_GP 13 58 58 %define X86_XCPT_PF 14 59 %define X86_XCPT_MF 16 59 60 60 61 %define PAGE_SIZE 0x1000 … … 1335 1336 1336 1337 ;; 1338 ; Tests some floating point exceptions and such. 1339 ; 1340 BEGINPROC x861_Test6 1341 SAVE_ALL_PROLOGUE 1342 sub xSP, 1024 1343 1344 ; stack overflow 1345 fninit 1346 ;mov dword [xSP], 037fh 1347 mov dword [xSP], 0300h 1348 fldcw [xSP] 1349 fld dword REF(.r32V1) 1350 fld dword REF(.r32V1) 1351 fld dword REF(.r32V1) 1352 fld dword REF(.r32V1) 1353 fld dword REF(.r32V1) 1354 fld dword REF(.r32V1) 1355 fld dword REF(.r32V1) 1356 fld dword REF(.r32V1) 1357 fwait 1358 1359 fld dword REF(.r32V1) 1360 ShouldTrap X86_XCPT_MF, fwait 1361 fnstenv [xSP] 1362 and word [xSP + 4], ~07fh 1363 fldenv [xSP] 1364 1365 fld dword REF(.r32V1) 1366 ShouldTrap X86_XCPT_MF, fwait 1367 1368 1369 .success: 1370 xor eax, eax 1371 .return: 1372 add xSP, 1024 1373 SAVE_ALL_EPILOGUE 1374 ret 1375 1376 .r32V1: dd 3.2 1377 .r64V1: dq 6.4 1378 .r80V1: dt 8.0 1379 1380 ENDPROC x861_Test6 1381 1382 1383 ;; 1337 1384 ; Terminate the trap info array with a NIL entry. 1338 1385 BEGINDATA
Note:
See TracChangeset
for help on using the changeset viewer.