]> git.proxmox.com Git - qemu.git/commitdiff
Add test-case for btst CCS flags updates.
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 1 Mar 2008 18:50:54 +0000 (18:50 +0000)
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 1 Mar 2008 18:50:54 +0000 (18:50 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4005 c046a42c-6fe2-441c-8c8c-71466251a162

tests/cris/check_btst.s

index 7418177315e05f88cc14bd6029e924606a8be91a..1c10cf309f86542845d1cbe3969b4eed0ba4b100 100644 (file)
  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