aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-01 18:50:54 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-01 18:50:54 +0000
commitbebb39d461c137617556b65ced2db3d5bc33b4f6 (patch)
tree50e0f17638917391c9f05f8f3b61c493669ddf8f /tests
parentbbaf29c76994ef762523bc8893a88cac701c87e7 (diff)
Add test-case for btst CCS flags updates.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4005 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests')
-rw-r--r--tests/cris/check_btst.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cris/check_btst.s b/tests/cris/check_btst.s
index 7418177315..1c10cf309f 100644
--- a/tests/cris/check_btst.s
+++ b/tests/cris/check_btst.s
@@ -84,4 +84,12 @@
move.d 0x1111,r3
checkr3 1111
+ ; check that X gets cleared and that only the NZ flags are touched.
+ move.d 0xff, $r0
+ move $r0, $ccs
+ btst r3,r3
+ move $ccs, $r0
+ cmp.d 0xe3, $r0
+ test_cc 0 1 0 0
+
quit