1 // Test result extraction of mac instructions.
2 // Test basic edge values
3 // SIGNED INTEGER mode into SINGLE destination register
7 .include "testutils.inc"
23 // integer extraction with no saturation
24 // 0x1 * 0x1 = 0x0000000001 -> 0x1
26 R5.H = (A1 += R0.L * R0.L), R5.L = (A0 += R0.L * R0.L) (IS);
30 // integer extraction with positive saturation
31 // 0x7fff * 0x7f -> 0x7fff
33 R5.H = (A1 += R1.L * R3.L), R5.L = (A0 += R1.L * R3.L) (IS);
34 DBGA ( R5.L , 0x7fff );
35 DBGA ( R5.H , 0x7fff );
37 // integer extraction with negative saturation
38 // 0x8000 * 0x7f -> 0x8000
40 R5.H = (A1 += R1.H * R3.L), R5.L = (A0 += R1.H * R3.L) (IS);
41 DBGA ( R5.L , 0x8000 );
42 DBGA ( R5.H , 0x8000 );