1//Original:/testcases/core/c_dsp32mult_pair_u/c_dsp32mult_pair_u.dsp 2// Spec Reference: dsp32mult pair u 3# mach: bfin 4 5.include "testutils.inc" 6 start 7 8imm32 r0, 0x8b235625; 9imm32 r1, 0x93ba5127; 10imm32 r2, 0xa3446725; 11imm32 r3, 0x00050027; 12imm32 r4, 0xb0ab6d29; 13imm32 r5, 0x10ace72b; 14imm32 r6, 0xc00c008d; 15imm32 r7, 0xd2467029; 16R1 = R0.L * R0.L, R0 = R0.L * R0.L (FU); 17R3 = R0.L * R1.L, R2 = R0.L * R1.H (FU); 18R5 = R1.L * R0.L, R4 = R1.H * R0.L (FU); 19R7 = R1.L * R1.L, R6 = R1.H * R1.H (FU); 20CHECKREG r0, 0x1CFCE159; 21CHECKREG r1, 0x1CFCE159; 22CHECKREG r2, 0x19838F9C; 23CHECKREG r3, 0xC65D90F1; 24CHECKREG r4, 0x19838F9C; 25CHECKREG r5, 0xC65D90F1; 26CHECKREG r6, 0x03481810; 27CHECKREG r7, 0xC65D90F1; 28 29imm32 r0, 0x5b33a635; 30imm32 r1, 0x6fbe5137; 31imm32 r2, 0x1324b735; 32imm32 r3, 0x9006d037; 33imm32 r4, 0x80abcb39; 34imm32 r5, 0xb0acef3b; 35imm32 r6, 0xa00c00dd; 36imm32 r7, 0x12469003; 37R1 = R2.L * R2.L, R0 = R2.L * R2.L (FU); 38R3 = R2.L * R3.L, R2 = R2.L * R3.H (FU); 39R5 = R3.L * R2.L, R4 = R3.H * R2.L (FU); 40R7 = R3.L * R3.L, R6 = R3.H * R3.H (FU); 41CHECKREG r0, 0x831CD0F9; 42CHECKREG r1, 0x831CD0F9; 43CHECKREG r2, 0x67121B3E; 44CHECKREG r3, 0x95026C63; 45CHECKREG r4, 0x0FDB4C7C; 46CHECKREG r5, 0x0B88B0FA; 47CHECKREG r6, 0x56BB5404; 48CHECKREG r7, 0x2DE3AE49; 49 50imm32 r0, 0x1b235655; 51imm32 r1, 0xc4ba5157; 52imm32 r2, 0x63246755; 53imm32 r3, 0x00060055; 54imm32 r4, 0x90abc509; 55imm32 r5, 0x10acef5b; 56imm32 r6, 0xb00c005d; 57imm32 r7, 0x1246705f; 58R1 = R4.L * R4.L, R0 = R4.L * R4.L (FU); 59R3 = R4.L * R5.L, R2 = R4.L * R5.H (FU); 60R5 = R5.L * R4.L, R4 = R5.H * R4.L (FU); 61R7 = R5.L * R5.L, R6 = R5.H * R5.H (FU); 62CHECKREG r0, 0x97A6DA51; 63CHECKREG r1, 0x97A6DA51; 64CHECKREG r2, 0x0CD4F20C; 65CHECKREG r3, 0xB8397133; 66CHECKREG r4, 0x0CD4F20C; 67CHECKREG r5, 0xB8397133; 68CHECKREG r6, 0x8491FCB1; 69CHECKREG r7, 0x320E1029; 70 71imm32 r0, 0xab235666; 72imm32 r1, 0xeaba5166; 73imm32 r2, 0x13d48766; 74imm32 r3, 0xf00b0066; 75imm32 r4, 0x90ab9d69; 76imm32 r5, 0x10ac5f6b; 77imm32 r6, 0x800cb66d; 78imm32 r7, 0x1246707f; 79R1 = R6.L * R6.L, R0 = R6.L * R6.L (FU); 80R3 = R6.L * R7.L, R2 = R6.L * R7.H (FU); 81R5 = R7.L * R6.L, R4 = R7.H * R6.L (FU); 82R7 = R7.L * R7.L, R6 = R7.H * R7.H (FU); 83CHECKREG r0, 0x81FF2A69; 84CHECKREG r1, 0x81FF2A69; 85CHECKREG r2, 0x0D058BCE; 86CHECKREG r3, 0x502A3013; 87CHECKREG r4, 0x0D058BCE; 88CHECKREG r5, 0x502A3013; 89CHECKREG r6, 0x014DEB24; 90CHECKREG r7, 0x316F5F01; 91 92// mix order 93imm32 r0, 0xab23a675; 94imm32 r1, 0xcfba5127; 95imm32 r2, 0x13246705; 96imm32 r3, 0x00060007; 97imm32 r4, 0x90abcd09; 98imm32 r5, 0x10acdfdb; 99imm32 r6, 0x000c000d; 100imm32 r7, 0x1246f00f; 101R1 = R3.L * R2.L (M), R0 = R3.L * R2.H (FU); 102R3 = R1.L * R0.H, R2 = R1.H * R0.L (FU); 103R5 = R7.H * R4.L, R4 = R7.H * R4.L (FU); 104R7 = R5.L * R6.L (M), R6 = R5.H * R6.L (FU); 105CHECKREG r0, 0x000085FC; 106CHECKREG r1, 0x0002D123; 107CHECKREG r2, 0x00010BF8; 108CHECKREG r3, 0x00000000; 109CHECKREG r4, 0x0EA2B276; 110CHECKREG r5, 0x0EA2B276; 111CHECKREG r6, 0x0000BE3A; 112CHECKREG r7, 0xFFFC0FFE; 113 114imm32 r0, 0x9b235a75; 115imm32 r1, 0xc9ba5127; 116imm32 r2, 0x13946905; 117imm32 r3, 0x00090007; 118imm32 r4, 0x90ab9d09; 119imm32 r5, 0x10ace9db; 120imm32 r6, 0x000c0d9d; 121imm32 r7, 0x12467009; 122R3 = R6.L * R5.L, R2 = R6.L * R5.H (FU); 123R1 = R3.L * R0.H (M), R0 = R3.H * R0.L (FU); 124R5 = R1.L * R4.L (M), R4 = R1.H * R4.L (FU); 125R7 = R2.H * R7.L, R6 = R2.H * R7.L (FU); 126CHECKREG r0, 0x0464B4BB; 127CHECKREG r1, 0xB8ADBDCD; 128CHECKREG r2, 0x00E2F57C; 129CHECKREG r3, 0x0C6F8A4F; 130CHECKREG r4, 0x71489715; 131CHECKREG r5, 0xD7646535; 132CHECKREG r6, 0x0062E7F2; 133CHECKREG r7, 0x0062E7F2; 134 135imm32 r0, 0x8b235675; 136imm32 r1, 0xc8ba5127; 137imm32 r2, 0x13846705; 138imm32 r3, 0x00080007; 139imm32 r4, 0x90ab8d09; 140imm32 r5, 0x10ace8db; 141imm32 r6, 0x000c008d; 142imm32 r7, 0x12467008; 143R3 = R6.H * R5.L, R2 = R6.L * R5.H (FU); 144R7 = R2.L * R0.H (M), R6 = R2.H * R0.L (FU); 145R5 = R1.L * R3.L (M), R4 = R1.H * R3.L (FU); 146R1 = R2.H * R7.L, R0 = R2.L * R7.H (FU); 147CHECKREG r0, 0x04A2FAE8; 148CHECKREG r1, 0x00043554; 149CHECKREG r2, 0x00092EBC; 150CHECKREG r3, 0x000AEA44; 151CHECKREG r4, 0xB7AF5568; 152CHECKREG r5, 0x4A43345C; 153CHECKREG r6, 0x00030A1D; 154CHECKREG r7, 0x196677B4; 155 156imm32 r0, 0xeb235675; 157imm32 r1, 0xceba5127; 158imm32 r2, 0x13e46705; 159imm32 r3, 0x000e0007; 160imm32 r4, 0x90abed09; 161imm32 r5, 0x10aceedb; 162imm32 r6, 0x000c00ed; 163imm32 r7, 0x1246700e; 164R1 = R1.H * R4.L, R0 = R1.H * R4.L (FU); 165R3 = R2.L * R5.L, R2 = R2.L * R5.H (FU); 166R5 = R3.H * R6.L, R4 = R3.L * R6.L (FU); 167R7 = R4.L * R0.H, R6 = R4.H * R0.L (FU); 168CHECKREG r0, 0xBF69768A; 169CHECKREG r1, 0xBF69768A; 170CHECKREG r2, 0x06B5875C; 171CHECKREG r3, 0x601EC747; 172CHECKREG r4, 0x00B87CBB; 173CHECKREG r5, 0x0058FBC6; 174CHECKREG r6, 0x00553330; 175CHECKREG r7, 0x5D42ADB3; 176 177 178 179pass 180