x9-v10.ms 483 B

1234567891011121314151617181920212223
  1. #mach: crisv10
  2. #ld: --section-start=.text=0
  3. #output: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 * ixnzvc 0\n
  4. #output: 4 0 0 0 0 0 0 0 0 0 1 0 0 0 0 * ixnzvc 1\n
  5. #output: 10 0 0 0 0 0 0 0 0 0 1 0 0 0 0 * ixnzvc 4\n
  6. #output: 12 0 0 0 0 0 0 0 0 0 1 0 0 0 0 * ixnzvc 1\n
  7. #sim: --cris-trace=basic
  8. ; Check that "adds.w [$pc+$r9.w],$pc" gets 4 cycles.
  9. .include "testutils.inc"
  10. startnostack
  11. moveq 1,r9
  12. adds.w [$pc+$r9.w],$pc
  13. 0:
  14. .word 1f-0b
  15. .word 2f-0b
  16. .word 1f-0b
  17. 1:
  18. break 15
  19. 2:
  20. nop
  21. break 15