summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2010-07-29 15:42:06 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-07-29 15:42:06 +0200
commit039170911d6b8d7ad692ad80675bd35d75473672 (patch)
tree7e6c2ca86ed4d28eb2bbcd6ff0aad7c1c6ca7f39
parentf941d506e323aef33a711477ed347bf0dcce9896 (diff)
downloadqemu-039170911d6b8d7ad692ad80675bd35d75473672.tar.gz
qemu-039170911d6b8d7ad692ad80675bd35d75473672.tar.bz2
qemu-039170911d6b8d7ad692ad80675bd35d75473672.zip
cris: Correct ADDO and ADDOQ testcases.
Verified on real HW. Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
-rw-r--r--tests/cris/check_addo.c4
-rw-r--r--tests/cris/check_addoq.c2
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();