1//Original:/testcases/core/c_dsp32mac_dr_a1_t/c_dsp32mac_dr_a1_t.dsp 2// Spec Reference: dsp32mac dr a1 t (truncation) 3# mach: bfin 4 5.include "testutils.inc" 6 start 7 8 9 10 11A1 = A0 = 0; 12 13// The result accumulated in A , and stored to a reg half 14imm32 r0, 0xa3545abd; 15imm32 r1, 0xbdbcfec7; 16imm32 r2, 0xc1248679; 17imm32 r3, 0xd0069007; 18imm32 r4, 0xefbc4569; 19imm32 r5, 0xcd35500b; 20imm32 r6, 0xe00c800d; 21imm32 r7, 0xf78e900f; 22R0.H = ( A1 = R1.L * R0.L ), A0 = R1.L * R0.L (T); 23R1 = A1.w; 24R2.H = ( A1 = R2.L * R3.H ), A0 = R2.H * R3.L (T); 25R3 = A1.w; 26R4.H = ( A1 = R4.H * R5.L ), A0 += R4.H * R5.H (T); 27R5 = A1.w; 28R6.H = ( A1 = R6.H * R7.H ), A0 += R6.L * R7.H (T); 29R7 = A1.w; 30CHECKREG r0, 0xFF225ABD; 31CHECKREG r1, 0xFF221DD6; 32CHECKREG r2, 0x2D8C8679; 33CHECKREG r3, 0x2D8CEDAC; 34CHECKREG r4, 0xF5D44569; 35CHECKREG r5, 0xF5D41A28; 36CHECKREG r6, 0x021B800D; 37CHECKREG r7, 0x021BB550; 38 39// The result accumulated in A , and stored to a reg half (MNOP) 40imm32 r0, 0x63548abd; 41imm32 r1, 0x7dbcfec7; 42imm32 r2, 0xa1245679; 43imm32 r3, 0xb0069007; 44imm32 r4, 0xcfbc4569; 45imm32 r5, 0xd235c00b; 46imm32 r6, 0xe00ca00d; 47imm32 r7, 0x678e700f; 48R0.H = ( A1 = R1.L * R0.L ) (T); 49R1 = A1.w; 50R2.H = ( A1 += R2.L * R3.H ) (T); 51R3 = A1.w; 52R4.H = ( A1 = R4.H * R5.L ) (T); 53R5 = A1.w; 54R6.H = ( A1 = R6.H * R7.H ) (T); 55R7 = A1.w; 56CHECKREG r0, 0x011E8ABD; 57CHECKREG r1, 0x011EBDD6; 58CHECKREG r2, 0xCB175679; 59CHECKREG r3, 0xCB172B82; 60CHECKREG r4, 0x181D4569; 61CHECKREG r5, 0x181DDA28; 62CHECKREG r6, 0xE626A00D; 63CHECKREG r7, 0xE6263550; 64 65// The result accumulated in A , and stored to a reg half (MNOP) 66imm32 r0, 0x5354babd; 67imm32 r1, 0x6dbcdec7; 68imm32 r2, 0x7124e679; 69imm32 r3, 0x80067007; 70imm32 r4, 0x9fbc4569; 71imm32 r5, 0xa235900b; 72imm32 r6, 0xb00c300d; 73imm32 r7, 0xc78ea00f; 74 R0.H = A1 , A0 = R1.L * R0.L (T); 75R1 = A1.w; 76 R2.H = A1 , A0 = R2.H * R3.L (T); 77R3 = A1.w; 78 R4.H = A1 , A0 = R4.H * R5.H (T); 79R5 = A1.w; 80 R6.H = A1 , A0 += R6.L * R7.H (T); 81R7 = A1.w; 82CHECKREG r0, 0xE626BABD; 83CHECKREG r1, 0xE6263550; 84CHECKREG r2, 0xE626E679; 85CHECKREG r3, 0xE6263550; 86CHECKREG r4, 0xE6264569; 87CHECKREG r5, 0xE6263550; 88CHECKREG r6, 0xE626300D; 89CHECKREG r7, 0xE6263550; 90 91// The result accumulated in A , and stored to a reg half 92imm32 r0, 0x33545abd; 93imm32 r1, 0x5dbcfec7; 94imm32 r2, 0x71245679; 95imm32 r3, 0x90060007; 96imm32 r4, 0xafbc4569; 97imm32 r5, 0xd235900b; 98imm32 r6, 0xc00ca00d; 99imm32 r7, 0x678ed00f; 100R0.H = ( A1 = R1.L * R0.L ) (M), A0 += R1.L * R0.L (T); 101R1 = A1.w; 102R2.H = ( A1 += R2.L * R3.H ) (M), A0 = R2.H * R3.L (T); 103R3 = A0.w; 104R4.H = ( A1 += R4.H * R5.L ) (M), A0 = R4.H * R5.H (T); 105R5 = A1.w; 106R6.H = ( A1 = R6.H * R7.H ) (M), A0 += R6.L * R7.H (T); 107R7 = A0.w; 108CHECKREG r0, 0xFF915ABD; 109CHECKREG r1, 0xFF910EEB; 110CHECKREG r2, 0x30375679; 111CHECKREG r3, 0x00062FF8; 112CHECKREG r4, 0x030D4569; 113CHECKREG r5, 0x030D72D5; 114CHECKREG r6, 0xE621A00D; 115CHECKREG r7, 0xCF173844; 116 117// The result accumulated in A1 MM=0, and stored to a reg half (MNOP) 118imm32 r0, 0x83545abd; 119imm32 r1, 0xa8bcfec7; 120imm32 r2, 0xc1845679; 121imm32 r3, 0x1c080007; 122imm32 r4, 0xe1cc8569; 123imm32 r5, 0x921c080b; 124imm32 r6, 0x7901908d; 125imm32 r7, 0x679e9008; 126R0.H = ( A1 += R1.L * R0.L ) (M,T); 127R1 = A1.w; 128R2.H = ( A1 = R2.L * R3.H ) (M,T); 129R3 = A1.w; 130R4.H = ( A1 += R4.H * R5.L ) (M,T); 131R5 = A1.w; 132R6.H = ( A1 = R6.H * R7.H ) (M,T); 133R7 = A1.w; 134CHECKREG r0, 0xE5B25ABD; 135CHECKREG r1, 0xE5B26993; 136CHECKREG r2, 0x09775679; 137CHECKREG r3, 0x0977EFC8; 138CHECKREG r4, 0x08858569; 139CHECKREG r5, 0x0885038C; 140CHECKREG r6, 0x30FA908D; 141CHECKREG r7, 0x30FA159E; 142 143imm32 r0, 0x03545abd; 144imm32 r1, 0xb0bcfec7; 145imm32 r2, 0xc1048679; 146imm32 r3, 0xd0009007; 147imm32 r4, 0xefbc0569; 148imm32 r5, 0xcd35510b; 149imm32 r6, 0xe00c802d; 150imm32 r7, 0xf78e9003; 151R0.H = ( A1 -= R1.L * R0.L ), A0 = R1.L * R0.L (T); 152R1 = A1.w; 153R2.H = ( A1 = R2.L * R3.H ), A0 -= R2.H * R3.L (T); 154R3 = A1.w; 155R4.H = ( A1 -= R4.H * R5.L ), A0 += R4.H * R5.H (T); 156R5 = A1.w; 157R6.H = ( A1 += R6.H * R7.H ), A0 -= R6.L * R7.H (T); 158R7 = A1.w; 159CHECKREG r0, 0x31D75ABD; 160CHECKREG r1, 0x31D7F7C8; 161CHECKREG r2, 0x2D928679; 162CHECKREG r3, 0x2D92A000; 163CHECKREG r4, 0x37DF0569; 164CHECKREG r5, 0x37DF0DD8; 165CHECKREG r6, 0x39FA802D; 166CHECKREG r7, 0x39FAC328; 167 168// The result accumulated in A , and stored to a reg half (MNOP) 169imm32 r0, 0x63548abd; 170imm32 r1, 0x7dbcfec7; 171imm32 r2, 0xa1245679; 172imm32 r3, 0xb0069007; 173imm32 r4, 0xcfbc4569; 174imm32 r5, 0xd235c00b; 175imm32 r6, 0xe00ca00d; 176imm32 r7, 0x678e700f; 177R0.H = ( A1 -= R1.L * R0.L ) (T); 178R1 = A1.w; 179R2.H = ( A1 -= R2.L * R3.H ) (T); 180R3 = A1.w; 181R4.H = ( A1 -= R4.H * R5.L ) (T); 182R5 = A1.w; 183R6.H = ( A1 -= R6.H * R7.H ) (T); 184R7 = A1.w; 185CHECKREG r0, 0x38DC8ABD; 186CHECKREG r1, 0x38DC0552; 187CHECKREG r2, 0x6EE35679; 188CHECKREG r3, 0x6EE397A6; 189CHECKREG r4, 0x56C54569; 190CHECKREG r5, 0x56C5BD7E; 191CHECKREG r6, 0x709FA00D; 192CHECKREG r7, 0x709F882E; 193 194// The result accumulated in A , and stored to a reg half (MNOP) 195imm32 r0, 0x5354babd; 196imm32 r1, 0x6dbcdec7; 197imm32 r2, 0x7124e679; 198imm32 r3, 0x80067007; 199imm32 r4, 0x9fbc4569; 200imm32 r5, 0xa235900b; 201imm32 r6, 0xb00c300d; 202imm32 r7, 0xc78ea00f; 203 R0.H = A1 , A0 -= R1.L * R0.L (T); 204R1 = A1.w; 205 R2.H = A1 , A0 -= R2.H * R3.L (T); 206R3 = A1.w; 207 R4.H = A1 , A0 -= R4.H * R5.H (T); 208R5 = A1.w; 209 R6.H = A1 , A0 -= R6.L * R7.H (T); 210R7 = A1.w; 211CHECKREG r0, 0x709FBABD; 212CHECKREG r1, 0x709F882E; 213CHECKREG r2, 0x709FE679; 214CHECKREG r3, 0x709F882E; 215CHECKREG r4, 0x709F4569; 216CHECKREG r5, 0x709F882E; 217CHECKREG r6, 0x709F300D; 218CHECKREG r7, 0x709F882E; 219 220// The result accumulated in A , and stored to a reg half 221imm32 r0, 0x33545abd; 222imm32 r1, 0x5dbcfec7; 223imm32 r2, 0x71245679; 224imm32 r3, 0x90060007; 225imm32 r4, 0xafbc4569; 226imm32 r5, 0xd235900b; 227imm32 r6, 0xc00ca00d; 228imm32 r7, 0x678ed00f; 229R0.H = ( A1 -= R1.L * R0.L ) (M), A0 += R1.L * R0.L (T); 230R1 = A1.w; 231R2.H = ( A1 -= R2.L * R3.H ) (M), A0 -= R2.H * R3.L (T); 232R3 = A0.w; 233R4.H = ( A1 += R4.H * R5.L ) (M), A0 -= R4.H * R5.H (T); 234R5 = A1.w; 235R6.H = ( A1 += R6.H * R7.H ) (M), A0 -= R6.L * R7.H (T); 236R7 = A0.w; 237CHECKREG r0, 0x710E5ABD; 238CHECKREG r1, 0x710E7943; 239CHECKREG r2, 0x40685679; 240CHECKREG r3, 0x1ED0EB56; 241CHECKREG r4, 0x133E4569; 242CHECKREG r5, 0x133EAF81; 243CHECKREG r6, 0xF960A00D; 244CHECKREG r7, 0x4FB9B312; 245 246// The result accumulated in A1 MM=0, and stored to a reg half (MNOP) 247imm32 r0, 0x83545abd; 248imm32 r1, 0xa8bcfec7; 249imm32 r2, 0xc1845679; 250imm32 r3, 0x1c080007; 251imm32 r4, 0xe1cc8569; 252imm32 r5, 0x921c080b; 253imm32 r6, 0x7901908d; 254imm32 r7, 0x679e9008; 255R0.H = ( A1 -= R1.L * R0.L ) (M,T); 256R1 = A1.w; 257R2.H = ( A1 -= R2.L * R3.H ) (M,T); 258R3 = A1.w; 259R4.H = ( A1 -= R4.H * R5.L ) (M,T); 260R5 = A1.w; 261R6.H = ( A1 -= R6.H * R7.H ) (M,T); 262R7 = A1.w; 263CHECKREG r0, 0xF9CE5ABD; 264CHECKREG r1, 0xF9CEFB3E; 265CHECKREG r2, 0xF0575679; 266CHECKREG r3, 0xF0570B76; 267CHECKREG r4, 0xF1498569; 268CHECKREG r5, 0xF149F7B2; 269CHECKREG r6, 0xC04F908D; 270CHECKREG r7, 0xC04FE214; 271 272 273 274pass 275