//Original:/testcases/core/c_dsp32shift_expexp_r/c_dsp32shift_expexp_r.dsp // Spec Reference: dsp32shift expadj / expadj r # mach: bfin .include "testutils.inc" start imm32 r0, 0x0800d001; imm32 r1, 0x08000001; imm32 r2, 0x0800d002; imm32 r3, 0x0800d003; imm32 r4, 0x0800d004; imm32 r5, 0x0800d005; imm32 r6, 0x0800d006; imm32 r7, 0x0800d007; R1.L = EXPADJ( R1 , R0.L ) (V); R2.L = EXPADJ( R2 , R0.L ) (V); R3.L = EXPADJ( R3 , R0.L ) (V); R4.L = EXPADJ( R4 , R0.L ) (V); R5.L = EXPADJ( R5 , R0.L ) (V); R6.L = EXPADJ( R6 , R0.L ) (V); R7.L = EXPADJ( R7 , R0.L ) (V); R0.L = EXPADJ( R0 , R0.L ) (V); CHECKREG r0, 0x0800D001; CHECKREG r1, 0x0800D001; CHECKREG r2, 0x0800D001; CHECKREG r3, 0x0800D001; CHECKREG r4, 0x0800D001; CHECKREG r5, 0x0800D001; CHECKREG r6, 0x0800D001; CHECKREG r7, 0x0800D001; imm32 r0, 0x0900d001; imm32 r1, 0x09000001; imm32 r2, 0x0900d002; imm32 r3, 0x0900d003; imm32 r4, 0x0900d004; imm32 r5, 0x0900d005; imm32 r6, 0x0900d006; imm32 r7, 0x0900d007; R0.L = EXPADJ( R0 , R1.L ) (V); R1.L = EXPADJ( R1 , R1.L ) (V); R2.L = EXPADJ( R2 , R1.L ) (V); R3.L = EXPADJ( R3 , R1.L ) (V); R4.L = EXPADJ( R4 , R1.L ) (V); R5.L = EXPADJ( R5 , R1.L ) (V); R6.L = EXPADJ( R6 , R1.L ) (V); R7.L = EXPADJ( R7 , R1.L ) (V); CHECKREG r0, 0x09000001; CHECKREG r1, 0x09000001; CHECKREG r2, 0x09000001; CHECKREG r3, 0x09000001; CHECKREG r4, 0x09000001; CHECKREG r5, 0x09000001; CHECKREG r6, 0x09000001; CHECKREG r7, 0x09000001; imm32 r0, 0x0a00e001; imm32 r1, 0x0a00e001; imm32 r2, 0x0a00000f; imm32 r3, 0x0a00e003; imm32 r4, 0x0a00e004; imm32 r5, 0x0a00e005; imm32 r6, 0x0a00e006; imm32 r7, 0x0a00e007; R0.L = EXPADJ( R0 , R2.L ) (V); R1.L = EXPADJ( R1 , R2.L ) (V); R3.L = EXPADJ( R3 , R2.L ) (V); R4.L = EXPADJ( R4 , R2.L ) (V); R5.L = EXPADJ( R5 , R2.L ) (V); R6.L = EXPADJ( R6 , R2.L ) (V); R7.L = EXPADJ( R7 , R2.L ) (V); R2.L = EXPADJ( R2 , R2.L ) (V); CHECKREG r0, 0x0A000002; CHECKREG r1, 0x0A000002; CHECKREG r2, 0x0A000003; CHECKREG r3, 0x0A000002; CHECKREG r4, 0x0A000002; CHECKREG r5, 0x0A000002; CHECKREG r6, 0x0A000002; CHECKREG r7, 0x0A000002; imm32 r0, 0x0b00f001; imm32 r1, 0x0b00f001; imm32 r2, 0x0b00f002; imm32 r3, 0x0b000010; imm32 r4, 0x0b00f004; imm32 r5, 0x0b00f005; imm32 r6, 0x0b00f006; imm32 r7, 0x0b00f007; R0.L = EXPADJ( R0 , R3.L ) (V); R1.L = EXPADJ( R1 , R3.L ) (V); R2.L = EXPADJ( R2 , R3.L ) (V); R3.L = EXPADJ( R3 , R3.L ) (V); R4.L = EXPADJ( R4 , R3.L ) (V); R5.L = EXPADJ( R5 , R3.L ) (V); R6.L = EXPADJ( R6 , R3.L ) (V); R7.L = EXPADJ( R7 , R3.L ) (V); CHECKREG r0, 0x0B000010; CHECKREG r1, 0x0B000010; CHECKREG r2, 0x0B000010; CHECKREG r3, 0x0B000010; CHECKREG r4, 0x0B000010; CHECKREG r5, 0x0B000010; CHECKREG r6, 0x0B000010; CHECKREG r7, 0x0B000010; imm32 r0, 0x0c0000c0; imm32 r1, 0x0c0100c0; imm32 r2, 0x0c0200c0; imm32 r3, 0x0c0300c0; imm32 r4, 0x0c0400c0; imm32 r5, 0x0c0500c0; imm32 r6, 0x0c0600c0; imm32 r7, 0x0c0700c0; R0.L = EXPADJ( R0 , R4.L ) (V); R1.L = EXPADJ( R1 , R4.L ) (V); R2.L = EXPADJ( R2 , R4.L ) (V); R3.L = EXPADJ( R3 , R4.L ) (V); R4.L = EXPADJ( R4 , R4.L ) (V); R5.L = EXPADJ( R5 , R4.L ) (V); R6.L = EXPADJ( R6 , R4.L ) (V); R7.L = EXPADJ( R7 , R4.L ) (V); CHECKREG r0, 0x0C0000C0; CHECKREG r1, 0x0C0100C0; CHECKREG r2, 0x0C0200C0; CHECKREG r3, 0x0C0300C0; CHECKREG r4, 0x0C0400C0; CHECKREG r5, 0x0C0500C0; CHECKREG r6, 0x0C0600C0; CHECKREG r7, 0x0C0700C0; imm32 r0, 0xa00100d0; imm32 r1, 0x000100d1; imm32 r2, 0xa00200d0; imm32 r3, 0xa00300d0; imm32 r4, 0xa00400d0; imm32 r5, 0xa00500d0; imm32 r6, 0xa00600d0; imm32 r7, 0xa00700d0; R0.L = EXPADJ( R0 , R5.L ) (V); R1.L = EXPADJ( R1 , R5.L ) (V); R2.L = EXPADJ( R2 , R5.L ) (V); R3.L = EXPADJ( R3 , R5.L ) (V); R4.L = EXPADJ( R4 , R5.L ) (V); R5.L = EXPADJ( R5 , R5.L ) (V); R6.L = EXPADJ( R6 , R5.L ) (V); R7.L = EXPADJ( R7 , R5.L ) (V); CHECKREG r0, 0xA00100D0; CHECKREG r1, 0x000100D0; CHECKREG r2, 0xA00200D0; CHECKREG r3, 0xA00300D0; CHECKREG r4, 0xA00400D0; CHECKREG r5, 0xA00500D0; CHECKREG r6, 0xA00600D0; CHECKREG r7, 0xA00700D0; imm32 r0, 0xb0010000; imm32 r1, 0xb0010000; imm32 r2, 0xb002000f; imm32 r3, 0xb0030000; imm32 r4, 0xb0040000; imm32 r5, 0xb0050000; imm32 r6, 0xb0060000; imm32 r7, 0xb0070000; R0.L = EXPADJ( R0 , R6.L ) (V); R1.L = EXPADJ( R1 , R6.L ) (V); R2.L = EXPADJ( R2 , R6.L ) (V); R3.L = EXPADJ( R3 , R6.L ) (V); R4.L = EXPADJ( R4 , R6.L ) (V); R5.L = EXPADJ( R5 , R6.L ) (V); R6.L = EXPADJ( R6 , R6.L ) (V); R7.L = EXPADJ( R7 , R6.L ) (V); CHECKREG r0, 0xB0010000; CHECKREG r1, 0xB0010000; CHECKREG r2, 0xB0020000; CHECKREG r3, 0xB0030000; CHECKREG r4, 0xB0040000; CHECKREG r5, 0xB0050000; CHECKREG r6, 0xB0060000; CHECKREG r7, 0xB0070000; imm32 r0, 0xd00102e7; imm32 r1, 0xd00104e7; imm32 r2, 0xd00206e7; imm32 r3, 0xd00308e7; imm32 r4, 0xd0040ae7; imm32 r5, 0xd0050ce7; imm32 r6, 0xd0060ee7; imm32 r7, 0xd00707e7; R0.L = EXPADJ( R0 , R7.L ) (V); R1.L = EXPADJ( R1 , R7.L ) (V); R2.L = EXPADJ( R2 , R7.L ) (V); R3.L = EXPADJ( R3 , R7.L ) (V); R4.L = EXPADJ( R4 , R7.L ) (V); R5.L = EXPADJ( R5 , R7.L ) (V); R6.L = EXPADJ( R6 , R7.L ) (V); R7.L = EXPADJ( R7 , R7.L ) (V); CHECKREG r0, 0xD0010001; CHECKREG r1, 0xD0010001; CHECKREG r2, 0xD0020001; CHECKREG r3, 0xD0030001; CHECKREG r4, 0xD0040001; CHECKREG r5, 0xD0050001; CHECKREG r6, 0xD0060001; CHECKREG r7, 0xD0070001; pass