[4681] Add a testcase for broken x arithmetic sequences.
Revision: 4681
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4681 Author: edgar_igl Date: 2008-06-06 11:05:18 +0000 (Fri, 06 Jun 2008)
Log Message:
-----------
Add a testcase for broken x arithmetic sequences.
Modified Paths:
--------------
trunk/tests/cris/check_xarith.s
Modified: trunk/tests/cris/check_xarith.s
===================================================================
tests/cris/check_xarith.s +26 -0
@@ -42,5 +42,31 @@ nop fail 1: + + ;; test for broken X sequence, run it several times. + moveq 8, $r0 +1: + moveq 0, $r3 + move.d $r0, $r1 + andq 1, $r1 + lslq 4, $r1 + moveq 1, $r2 + or.d $r1, $r2 + ba 2f + move $r2, $ccs +2: + addq 0, $r3 + move.d $r0, $r4 + move.d $r1, $r5 + move.d $r2, $r6 + move.d $r3, $r7 + lsrq 4, $r1 + move.d $r1, $r8 + xor $r1, $r3 + checkr3 0 + subq 1, $r0 + bne 1b + nop + pass quit