cris: Correct ADDO and ADDOQ testcases.

Verified on real HW.

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
This commit is contained in:
Edgar E. Iglesias 2010-07-29 15:42:06 +02:00 committed by Edgar E. Iglesias
parent bf858897b7
commit 61eb865acf
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ int main(void)
cris_tst_cc_init();
asm volatile ("setf\tzvnc\n");
cris_addo_pi_b(p, t);
cris_tst_cc(1, 1, 1, 1);
cris_tst_cc(0, 0, 0, 0);
asm volatile ("move.d\t$acr, %0\n" : "=r" (r));
if (*(uint16_t*)r != 0xff22)
err();
@ -114,7 +114,7 @@ int main(void)
cris_tst_cc_init();
asm volatile ("setf\tzvnc\n");
cris_addo_pi_d(p, t);
cris_tst_cc(1, 1, 1, 1);
cris_tst_cc(0, 0, 0, 0);
asm volatile ("move.d\t$acr, %0\n" : "=r" (r));
r = (void*)(((char *)r) + 76789885);
if (*r != 0x55aa77ff)

View File

@ -27,7 +27,7 @@ int main(void)
cris_tst_cc_init();
asm volatile ("setf\tzvnc\n");
cris_addoq(4, t);
cris_tst_cc(1, 1, 1, 1);
cris_tst_cc(0, 0, 0, 0);
asm volatile ("move.d\t$acr, %0\n" : "=r" (p));
if (*p != 0x88ccee19)
err();