Commit 9012c2bf32aaf34a5ee12c3d9c8718af1530eeec

Authored by edgar_igl
1 parent 54f25d0a

Add a testcase for broken x arithmetic sequences.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4681 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 26 additions and 0 deletions
tests/cris/check_xarith.s
... ... @@ -42,5 +42,31 @@
42 42 nop
43 43 fail
44 44 1:
  45 +
  46 + ;; test for broken X sequence, run it several times.
  47 + moveq 8, $r0
  48 +1:
  49 + moveq 0, $r3
  50 + move.d $r0, $r1
  51 + andq 1, $r1
  52 + lslq 4, $r1
  53 + moveq 1, $r2
  54 + or.d $r1, $r2
  55 + ba 2f
  56 + move $r2, $ccs
  57 +2:
  58 + addq 0, $r3
  59 + move.d $r0, $r4
  60 + move.d $r1, $r5
  61 + move.d $r2, $r6
  62 + move.d $r3, $r7
  63 + lsrq 4, $r1
  64 + move.d $r1, $r8
  65 + xor $r1, $r3
  66 + checkr3 0
  67 + subq 1, $r0
  68 + bne 1b
  69 + nop
  70 +
45 71 pass
46 72 quit
... ...