113840Swosch//Original:/testcases/core/c_dsp32mac_dr_a0_u/c_dsp32mac_dr_a0_u.dsp 213840Swosch// Spec Reference: dsp32mac dr a0 u (unsigned fraction and unsigned int) 313840Swosch# mach: bfin 413840Swosch 513840Swosch.include "testutils.inc" 613840Swosch start 713840Swosch 813840Swosch 913840Swosch 1013840Swosch 1113840SwoschA1 = A0 = 0; 1213840Swosch 1313840Swosch// The result accumulated in A , and stored to a reg half 1413840Swoschimm32 r0, 0xa3545abd; 1513840Swoschimm32 r1, 0x9abcfec7; 1613840Swoschimm32 r2, 0xc9a48679; 1713840Swoschimm32 r3, 0xd09a9007; 1813840Swoschimm32 r4, 0xefb9a569; 1913840Swoschimm32 r5, 0xcd359a0b; 2013840Swoschimm32 r6, 0xe00c89ad; 2113840Swoschimm32 r7, 0xf78e909a; 2213840SwoschA1 = R1.L * R0.L, R0.L = ( A0 = R1.L * R0.L ) (FU); 2313840SwoschR1 = A0.w; 2413840SwoschA1 = R2.L * R3.H, R2.L = ( A0 -= R2.H * R3.L ) (FU); 2513840SwoschR3 = A0.w; 2613840SwoschA1 -= R4.H * R5.L, R4.L = ( A0 += R4.H * R5.H ) (FU); 2713840SwoschR5 = A0.w; 2813840SwoschA1 = R6.H * R7.H, R6.L = ( A0 += R6.L * R7.H ) (FU); 2913840SwoschR7 = A0.w; 3013840SwoschCHECKREG r0, 0xA3545A4E; 3113840SwoschCHECKREG r1, 0x5A4E0EEB; 3213840SwoschCHECKREG r2, 0xC9A40000; 3313840SwoschCHECKREG r3, 0x00000000; 3413840SwoschCHECKREG r4, 0xEFB9C029; 3513840SwoschCHECKREG r5, 0xC028C64D; 3613840SwoschCHECKREG r6, 0xE00CFFFF; 3713840SwoschCHECKREG r7, 0x454B0F43; 3813840Swosch 3913840Swosch// The result accumulated in A , and stored to a reg half (MNOP) 4013840Swoschimm32 r0, 0xb8548abd; 4113840Swoschimm32 r1, 0x7b8cfec7; 4213840Swoschimm32 r2, 0xa1b85679; 4313840Swoschimm32 r3, 0xb00b8007; 4413840Swoschimm32 r4, 0xcfbcb869; 4513840Swoschimm32 r5, 0xd235cb8b; 4613840Swoschimm32 r6, 0xe00ca0b8; 4713840Swoschimm32 r7, 0x678e700b; 4813840SwoschR0.L = ( A0 = R1.L * R0.L ) (FU); 4913840SwoschR1 = A0.w; 5013840SwoschR2.L = ( A0 += R2.L * R3.H ) (FU); 5113840SwoschR3 = A0.w; 5213840SwoschR4.L = ( A0 -= R4.H * R5.L ) (FU); 5313840SwoschR5 = A0.w; 5413840SwoschR6.L = ( A0 = R6.H * R7.H ) (FU); 5513840SwoschR7 = A0.w; 5613840SwoschCHECKREG r0, 0xB8548A13; 5713840SwoschCHECKREG r1, 0x8A135EEB; 5813840SwoschCHECKREG r2, 0xA1B8C58A; 5913840SwoschCHECKREG r3, 0xC58A461E; 6013840SwoschCHECKREG r4, 0xCFBC205F; 6113840SwoschCHECKREG r5, 0x205F670A; 6213840SwoschCHECKREG r6, 0xE00C5AA1; 6313840SwoschCHECKREG r7, 0x5AA11AA8; 6413840Swosch 6513840Swosch// The result accumulated in A , and stored to a reg half (MNOP) 6613840Swoschimm32 r0, 0x7b54babd; 6713840Swoschimm32 r1, 0xb7bcdec7; 6813840Swoschimm32 r2, 0xab7be679; 6913840Swoschimm32 r3, 0x8ab7b007; 7013840Swoschimm32 r4, 0x9fab7b69; 7113840Swoschimm32 r5, 0xa23ab7bb; 7213840Swoschimm32 r6, 0xb00cab7b; 7313840Swoschimm32 r7, 0xc78eaab7; 7413840SwoschR0.L = ( A0 = R1.L * R0.L ) (FU); 7513840SwoschR1 = A0.w; 7613840SwoschR2.L = ( A0 -= R2.H * R3.L ) (FU); 7713840SwoschR3 = A0.w; 7813840SwoschR4.L = ( A0 = R4.H * R5.H ) (FU); 7913840SwoschR5 = A0.w; 8013840SwoschR6.L = ( A0 += R6.L * R7.H ) (FU); 8113840SwoschR7 = A0.w; 8213840SwoschCHECKREG r0, 0x7B54A281; 8313840SwoschCHECKREG r1, 0xA2810EEB; 8413840SwoschCHECKREG r2, 0xAB7B2C98; 8513840SwoschCHECKREG r3, 0x2C97CE8E; 8613840SwoschCHECKREG r4, 0x9FAB652E; 8713840SwoschCHECKREG r5, 0x652E62BE; 8813840SwoschCHECKREG r6, 0xB00CEADA; 8913840SwoschCHECKREG r7, 0xEADA1DF8; 9013840Swosch 9113840Swosch// The result accumulated in A , and stored to a reg half 9213840Swoschimm32 r0, 0xea545abd; 9313840Swoschimm32 r1, 0x5eacfec7; 9413840Swoschimm32 r2, 0xc1ea5679; 95imm32 r3, 0x9c0ea007; 96imm32 r4, 0xafccea69; 97imm32 r5, 0xd23c9eab; 98imm32 r6, 0xc00cc0ea; 99imm32 r7, 0x678edc0e; 100A1 = R1.L * R0.L (M), R2.L = ( A0 += R1.L * R0.L ) (FU); 101R3 = A0.w; 102A1 += R2.L * R3.H (M), R6.L = ( A0 = R2.H * R3.L ) (FU); 103R7 = A0.w; 104A1 += R4.H * R5.L (M), R4.L = ( A0 -= R4.H * R5.H ) (FU); 105R5 = A0.w; 106A1 = R6.H * R7.H (M), R0.L = ( A0 += R6.L * R7.H ) (FU); 107R1 = A0.w; 108CHECKREG r0, 0xEA540484; 109CHECKREG r1, 0x04840000; 110CHECKREG r2, 0xC1EAFFFF; 111CHECKREG r3, 0x45282CE3; 112CHECKREG r4, 0xAFCC0000; 113CHECKREG r5, 0x00000000; 114CHECKREG r6, 0xC00C2200; 115CHECKREG r7, 0x22002A7E; 116 117 118 119pass 120