improved integration test for 74181/74182

This commit is contained in:
hneemann 2018-09-17 08:45:12 +02:00
parent 1bb29f0700
commit d0588c44fb

View File

@ -364,14 +364,54 @@
<entry>
<string>Testdata</string>
<testData>
<dataString>A B S M F
<dataString>S M C A B F
0xffff 1 9 0 0x10000
9 0 0 0x0000 0x0000 0x00000
9 0 0 0x000f 0x0001 0x00010
9 0 0 0x00f0 0x0010 0x00100
9 0 0 0x00ff 0x0001 0x00100
9 0 0 0x0f00 0x0100 0x01000
9 0 0 0x0f0f 0x0101 0x01010
9 0 0 0x0ff0 0x0010 0x01000
9 0 0 0x0fff 0x0001 0x01000
9 0 0 0xf000 0x1000 0x10000
9 0 0 0xf00f 0x1001 0x10010
9 0 0 0xf0f0 0x1010 0x10100
9 0 0 0xf0ff 0x1011 0x10110
9 0 0 0xff00 0x1100 0x11000
9 0 0 0xff0f 0x1101 0x11010
9 0 0 0xfff0 0x1110 0x11100
9 0 0 0xffff 0x1111 0x11110
loop (n,1&lt;&lt;16)
let a = random(1&lt;&lt;16);
let b = random(1&lt;&lt;16);
(a) (b) 9 0 (a+b)
9 0 1 0x0000 0x0000 0x00001
9 0 1 0x000f 0x0001 0x00011
9 0 1 0x00f0 0x0010 0x00101
9 0 1 0x00ff 0x0001 0x00101
9 0 1 0x0f00 0x0100 0x01001
9 0 1 0x0f0f 0x0101 0x01011
9 0 1 0x0ff0 0x0010 0x01001
9 0 1 0x0fff 0x0001 0x01001
9 0 1 0xf000 0x1000 0x10001
9 0 1 0xf00f 0x1001 0x10011
9 0 1 0xf0f0 0x1010 0x10101
9 0 1 0xf0ff 0x1011 0x10111
9 0 1 0xff00 0x1100 0x11001
9 0 1 0xff0f 0x1101 0x11011
9 0 1 0xfff0 0x1110 0x11101
9 0 1 0xffff 0x1111 0x11111
loop (n,1&lt;&lt;12)
let a=random(1&lt;&lt;16);
let b=random(1&lt;&lt;16);
9 0 0 (a) (b) (a+b)
end loop
loop (n,1&lt;&lt;12)
let a=random(1&lt;&lt;16);
let b=random(1&lt;&lt;16);
9 0 1 (a) (b) (a+b+1)
end loop</dataString>
</testData>
</entry>