Commit ff56ff7a07fe8fbcc4e9f74972d8399ca1ab8051

Authored by edgar_igl
1 parent 31d731ab

CRIS: Make CCS related tests pass in system simulation by masking off flags not …

…related to the tests.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4298 c046a42c-6fe2-441c-8c8c-71466251a162
tests/cris/check_btst.s
... ... @@ -89,6 +89,7 @@
89 89 move $r0, $ccs
90 90 btst r3,r3
91 91 move $ccs, $r0
  92 + and.d 0xff, $r0
92 93 cmp.d 0xe3, $r0
93 94 test_cc 0 1 0 0
94 95  
... ...
tests/cris/check_clearfv32.s
... ... @@ -8,10 +8,12 @@
8 8 setf puixnzvc
9 9 clearf x ; Actually, x would be cleared by almost-all other insns.
10 10 move ccs,r3
  11 + and.d 0xff, $r3
11 12 checkr3 ef
12 13  
13 14 setf puixnzvc
14 15 moveq 0, $r3 ; moveq should only clear the xflag.
15 16 move ccs,r3
  17 + and.d 0xff, $r3
16 18 checkr3 ef
17 19 quit
... ...