ldh-d.cgs 269 B

123456789101112131415161718192021
  1. # m32r testcase for ldh $dr,@($slo16,$sr)
  2. # mach(): m32r m32rx
  3. .include "testutils.inc"
  4. start
  5. .global ldh_d
  6. ldh_d:
  7. mvaddr_h_gr r4, data_loc
  8. mvi_h_gr r5, 0
  9. ldh r5, @(#2, r4)
  10. test_h_gr r5, 0x5678 ; big endian processor
  11. pass
  12. data_loc:
  13. .word 0x12345678