1//Original:/proj/frio/dv/testcases/core/c_dsp32alu_byteop2/c_dsp32alu_byteop2.dsp 2// Spec Reference: dsp32alu byteop2 3# mach: bfin 4 5.include "testutils.inc" 6 start 7 8 imm32 r0, 0x15678911; 9 imm32 r1, 0x2789ab1d; 10 imm32 r2, 0x34445515; 11 imm32 r3, 0x46667717; 12 imm32 r4, 0x5567891b; 13 imm32 r5, 0x6789ab1d; 14 imm32 r6, 0x74445515; 15 imm32 r7, 0x86667777; 16 R4 = BYTEOP2P ( R1:0 , R3:2 ) (RNDL); 17 R5 = BYTEOP2P ( R1:0 , R3:2 ) (RNDL , R); 18 R6 = BYTEOP2P ( R1:0 , R3:2 ) (RNDH); 19 R7 = BYTEOP2P ( R1:0 , R3:2 ) (RNDH , R); 20 CHECKREG r4, 0x003D0041; 21 CHECKREG r5, 0x00570056; 22 CHECKREG r6, 0x3D004100; 23 CHECKREG r7, 0x57005600; 24 25 imm32 r0, 0x1567892b; 26 imm32 r1, 0x2789ab2d; 27 imm32 r2, 0x34445525; 28 imm32 r3, 0x46667727; 29 imm32 r4, 0x58889929; 30 imm32 r5, 0x6aaabb2b; 31 imm32 r6, 0x7cccdd2d; 32 imm32 r7, 0x8eeeffff; 33 R0 = BYTEOP2P ( R3:2 , R1:0 ) (RNDL); 34 R1 = BYTEOP2P ( R3:2 , R1:0 ) (RNDL , R); 35 R2 = BYTEOP2P ( R3:2 , R1:0 ) (RNDH); 36 R3 = BYTEOP2P ( R3:2 , R1:0 ) (RNDH , R); 37 CHECKREG r0, 0x003D004C; 38 CHECKREG r1, 0x0057005E; 39 CHECKREG r2, 0x2D003200; 40 CHECKREG r3, 0x41003F00; 41 42 imm32 r0, 0x716789ab; 43 imm32 r1, 0x8289abcd; 44 imm32 r2, 0x93445555; 45 imm32 r3, 0xa4667777; 46 imm32 r4, 0xb56789ab; 47 imm32 r5, 0xd689abcd; 48 imm32 r6, 0xe7445555; 49 imm32 r7, 0x6f661235; 50 R4 = BYTEOP2P ( R1:0 , R3:2 ) (TL); 51 R5 = BYTEOP2P ( R1:0 , R3:2 ) (TL , R); 52 R6 = BYTEOP2P ( R1:0 , R3:2 ) (TH); 53 R7 = BYTEOP2P ( R1:0 , R3:2 ) (TH , R); 54 CHECKREG r4, 0x006B0077; 55 CHECKREG r5, 0x00850099; 56 CHECKREG r6, 0x6B007700; 57 CHECKREG r7, 0x85009900; 58 59 imm32 r0, 0x416789ab; 60 imm32 r1, 0x6289abcd; 61 imm32 r2, 0x43445555; 62 imm32 r3, 0x64667777; 63 imm32 r4, 0x456789ab; 64 imm32 r5, 0x6689abcd; 65 imm32 r6, 0x47445555; 66 imm32 r7, 0x68667777; 67 R0 = BYTEOP2P ( R3:2 , R1:0 ) (TL); 68 R1 = BYTEOP2P ( R3:2 , R1:0 ) (TL , R); 69 R2 = BYTEOP2P ( R3:2 , R1:0 ) (TH); 70 R3 = BYTEOP2P ( R3:2 , R1:0 ) (TH , R); 71 CHECKREG r0, 0x004B0077; 72 CHECKREG r1, 0x006D0099; 73 CHECKREG r2, 0x34004800; 74 CHECKREG r3, 0x4D006100; 75 76 pass 77