1//Original:/testcases/core/c_dsp32alu_a0a1s/c_dsp32alu_a0a1s.dsp 2// Spec Reference: dsp32alu a0a1s 3# mach: bfin 4 5.include "testutils.inc" 6 start 7 8 9 10A1 = A0 = 0; 11 12imm32 r0, 0x15678911; 13imm32 r1, 0xa789ab1d; 14imm32 r2, 0xd4445515; 15imm32 r3, 0xf6667717; 16imm32 r4, 0xe567891b; 17imm32 r5, 0x6789ab1d; 18imm32 r6, 0xb4445515; 19imm32 r7, 0x86667777; 20// A0 & A1 types 21A0 = R0; 22A1 = R1; 23 R6 = A0.w; 24 R7 = A1.w; 25A0 = 0; 26A1 = 0; 27 R0 = A0.w; 28 R1 = A1.w; 29A0 = R2; 30A1 = R3; 31A0 = A0 (S); 32A1 = A1 (S); 33 R4 = A0.w; 34 R5 = A1.w; 35A0 = A1; 36 R2 = A0.w; 37A0 = R3; 38A1 = A0; 39 R3 = A1.w; 40CHECKREG r0, 0x00000000; 41CHECKREG r1, 0x00000000; 42CHECKREG r2, 0xF6667717; 43CHECKREG r3, 0xF6667717; 44CHECKREG r4, 0xD4445515; 45CHECKREG r5, 0xF6667717; 46CHECKREG r6, 0x15678911; 47CHECKREG r7, 0xA789AB1D; 48 49A1 = A0 = 0; 50 R0 = A0.w; 51 R1 = A1.w; 52CHECKREG r0, 0x00000000; 53CHECKREG r1, 0x00000000; 54 55imm32 r0, 0xa1567891; 56imm32 r1, 0xba789abd; 57imm32 r2, 0xcd412355; 58imm32 r3, 0xdf646777; 59imm32 r4, 0xe567891b; 60imm32 r5, 0x6789ab1d; 61imm32 r6, 0xb4445515; 62imm32 r7, 0xf666aeb7; 63 64A0 = R4; 65A1 = R5; 66 R0 = A0.w; 67 R1 = A1.w; 68A0 = R6; 69A1 = R7; 70 R2 = A0.w; 71 R3 = A1.w; 72CHECKREG r0, 0xE567891B; 73CHECKREG r1, 0x6789AB1D; 74CHECKREG r2, 0xB4445515; 75CHECKREG r3, 0xF666AEB7; 76CHECKREG r4, 0xE567891B; 77CHECKREG r5, 0x6789AB1D; 78CHECKREG r6, 0xB4445515; 79CHECKREG r7, 0xF666AEB7; 80 81 82pass 83