5 long long rd
, rs
, rt
, result
, dspreg
, dspresult
;
6 rt
= 0x9FFFFFFD9FFFFFFD;
7 rs
= 0x4000000080000000;
8 result
= 0x7fffffffe0000003;
12 ("subq_s.pw %0, %2, %3\n\t"
14 : "=r"(rd
), "=r"(dspreg
)
17 dspreg
= (dspreg
>> 20) & 0x1;
18 if ((rd
!= result
) || (dspreg
!= dspresult
)) {
19 printf("subq_s.pw error1\n");
24 rt
= 0x123456789ABCDEF1;
25 rs
= 0x123456789ABCDEF2;
26 result
= 0x0000000000000001;
27 /* This time we do not set dspctrl, but it setted in pre-action. */
31 ("subq_s.pw %0, %2, %3\n\t"
33 : "=r"(rd
), "=r"(dspreg
)
36 dspreg
= (dspreg
>> 20) & 0x1;
37 if ((rd
!= result
) || (dspreg
!= dspresult
)) {
38 printf("subq_s.pw error2\n");
43 rt
= 0x8000000080000000;
44 rs
= 0x7000000070000000;
48 ("subq_s.pw %0, %2, %3\n\t"
50 : "=r"(rd
), "=r"(dspreg
)
54 dspreg
= (dspreg
>> 20) & 0x1;
55 if ((dspreg
!= dspresult
)) {
56 printf("subq_s.pw error3\n");