mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Add summary of accepted failures.
This commit is contained in:
parent
1cd1bbd26c
commit
444c5b94b9
@ -665,7 +665,15 @@ struct FailedExecution {
|
||||
}
|
||||
|
||||
// Lock in current failure rate.
|
||||
XCTAssertLessThanOrEqual(execution_failures.size(), 1654);
|
||||
XCTAssertLessThanOrEqual(execution_failures.size(), 4138);
|
||||
|
||||
// Current accepted failures:
|
||||
// * 68 instances of DAA with invalid BCD input, and 64 of DAS;
|
||||
// * 2484 instances of LEA from a register, which officially has undefined results;
|
||||
// * 42 instances of AAM 00h for which I can't figure out what to do with flags; and
|
||||
// * 1486 instances of IDIV, most either with a rep or repne that on the 8086 specifically negatives the result,
|
||||
// but some admittedly still unexplained (primarily setting overflow even though the result doesn't overflow;
|
||||
// a couple of online 8086 emulators also didn't throw so maybe this is an 8086 quirk?)
|
||||
|
||||
for(const auto &failure: execution_failures) {
|
||||
NSLog(@"Failed %s — %s", failure.test_name.c_str(), failure.reason.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user