From: edgar_igl Date: Sat, 1 Mar 2008 18:50:54 +0000 (+0000) Subject: Add test-case for btst CCS flags updates. X-Git-Tag: xen-3.3.0-rc1~355 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bebb39d461c137617556b65ced2db3d5bc33b4f6;p=qemu-xen-4.1-testing.git Add test-case for btst CCS flags updates. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4005 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/tests/cris/check_btst.s b/tests/cris/check_btst.s index 741817731..1c10cf309 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