--- qemu/tests/cris/check_btst.s 2018/04/24 16:48:00 1.1 +++ qemu/tests/cris/check_btst.s 2018/04/24 16:51:19 1.1.1.2 @@ -84,4 +84,13 @@ 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 + and.d 0xff, $r0 + cmp.d 0xe3, $r0 + test_cc 0 1 0 0 + quit