ld-plus.cgs 330 B

12345678910111213141516171819202122232425262728
  1. # m32r testcase for ld $dr,@$sr+
  2. # mach(): m32r m32rx
  3. .include "testutils.inc"
  4. start
  5. .global ld_plus
  6. ld_plus:
  7. mvaddr_h_gr r4, data_loc
  8. mvi_h_gr r5, 0
  9. ld r5, @r4+
  10. test_h_gr r5, 0x12345678
  11. mvaddr_h_gr r5, data_loc2
  12. bne r4, r5, not_ok
  13. pass
  14. not_ok:
  15. fail
  16. data_loc:
  17. .word 0x12345678
  18. data_loc2:
  19. .word 0x11223344