5 long long dsp_i
, dsp_o
;
6 long long ccond_i
, outflag_i
, efi_i
, c_i
, scount_i
, pos_i
;
7 long long ccond_o
, outflag_o
, efi_o
, c_o
, scount_o
, pos_o
;
8 long long ccond_r
, outflag_r
, efi_r
, c_r
, scount_r
, pos_r
;
10 ccond_i
= 0x000000BC;/* 4 */
11 outflag_i
= 0x0000001B;/* 3 */
12 efi_i
= 0x00000001;/* 5 */
13 c_i
= 0x00000001;/* 2 */
14 scount_i
= 0x0000000F;/* 1 */
15 pos_i
= 0x0000000C;/* 0 */
17 dsp_i
= (ccond_i
<< 24) | \
25 outflag_r
= outflag_i
;
38 ccond_o
= (dsp_o
>> 24) & 0xFF;
39 outflag_o
= (dsp_o
>> 16) & 0xFF;
40 efi_o
= (dsp_o
>> 14) & 0x01;
41 c_o
= (dsp_o
>> 14) & 0x01;
42 scount_o
= (dsp_o
>> 7) & 0x3F;
45 if ((ccond_o
!= ccond_r
) || (outflag_o
!= outflag_r
) || (efi_o
!= efi_r
) \
46 || (c_o
!= c_r
) || (scount_o
!= scount_r
) || (pos_o
!= pos_r
)) {
47 printf("rddsp wrong\n");