From bebb39d461c137617556b65ced2db3d5bc33b4f6 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Sat, 1 Mar 2008 18:50:54 +0000 Subject: Add test-case for btst CCS flags updates. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4005 c046a42c-6fe2-441c-8c8c-71466251a162 --- tests/cris/check_btst.s | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3-55-g7522