cris: Correct ADDO and ADDOQ testcases.
Verified on real HW. Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
This commit is contained in:
parent
bf858897b7
commit
61eb865acf
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user