Commit bebb39d461c137617556b65ced2db3d5bc33b4f6
1 parent
bbaf29c7
Add test-case for btst CCS flags updates.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4005 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
0 deletions
tests/cris/check_btst.s
| @@ -84,4 +84,12 @@ | @@ -84,4 +84,12 @@ | ||
| 84 | move.d 0x1111,r3 | 84 | move.d 0x1111,r3 |
| 85 | checkr3 1111 | 85 | checkr3 1111 |
| 86 | 86 | ||
| 87 | + ; check that X gets cleared and that only the NZ flags are touched. | ||
| 88 | + move.d 0xff, $r0 | ||
| 89 | + move $r0, $ccs | ||
| 90 | + btst r3,r3 | ||
| 91 | + move $ccs, $r0 | ||
| 92 | + cmp.d 0xe3, $r0 | ||
| 93 | + test_cc 0 1 0 0 | ||
| 94 | + | ||
| 87 | quit | 95 | quit |