skip invalid instructions

This commit is contained in:
Folkert van Heusden 2025-04-03 09:24:13 +02:00
parent 1fecfed1f2
commit 51b18a7956
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -22,7 +22,26 @@ void produce_validation_tests()
{ {
json_t *out = json_array(); json_t *out = json_array();
uint32_t invalid[][2] = {
{ 0000007, 0000077 },
{ 0000210, 0000227 },
{ 0007000, 0007777 },
{ 0075040, 0076777 },
{ 0106400, 0106477 },
{ 0106700, 0107777 },
};
for(int i=0; i<65536; i++) { for(int i=0; i<65536; i++) {
int skip = 0;
for(int test=0; test<6; test++) {
if (i >= invalid[test][0] && i <= invalid[test][1]) {
skip = 1;
break;
}
}
if (skip)
continue;
json_t *before = json_object(); json_t *before = json_object();
cpu_reset(&cpu_dev); cpu_reset(&cpu_dev);