das.s 696 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Hitachi H8 testcase 'das'
  2. # mach(): all
  3. # as(h8300): --defsym sim_cpu=0
  4. # as(h8300h): --defsym sim_cpu=1
  5. # as(h8300s): --defsym sim_cpu=2
  6. # as(h8sx): --defsym sim_cpu=3
  7. # ld(h8300h): -m h8300helf
  8. # ld(h8300s): -m h8300self
  9. # ld(h8sx): -m h8300sxelf
  10. .include "testutils.inc"
  11. start
  12. das_8:
  13. set_grs_a5a5 ; Fill all general regs with a fixed pattern
  14. ;; fixme set ccr
  15. ;; das Rd
  16. das r0l ; register operand
  17. ;; fixme test ccr ; H=0 N=1 Z=0 V=0 C=0
  18. test_gr_a5a5 0 ; Make sure other general regs not disturbed
  19. test_gr_a5a5 1 ; Make sure other general regs not disturbed
  20. test_gr_a5a5 2
  21. test_gr_a5a5 3
  22. test_gr_a5a5 4
  23. test_gr_a5a5 5
  24. test_gr_a5a5 6
  25. test_gr_a5a5 7
  26. pass
  27. exit 0