From 61eb865acf29cc29043ca6d3ed4770dddd2b9774 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 29 Jul 2010 15:42:06 +0200 Subject: [PATCH] cris: Correct ADDO and ADDOQ testcases. Verified on real HW. Signed-off-by: Edgar E. Iglesias --- tests/cris/check_addo.c | 4 ++-- tests/cris/check_addoq.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cris/check_addo.c b/tests/cris/check_addo.c index 8a0565a1a9..3d8e789f5a 100644 --- a/tests/cris/check_addo.c +++ b/tests/cris/check_addo.c @@ -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) diff --git a/tests/cris/check_addoq.c b/tests/cris/check_addoq.c index b8b15c3090..ed509e27e0 100644 --- a/tests/cris/check_addoq.c +++ b/tests/cris/check_addoq.c @@ -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();