sth.cgs 267 B

123456789101112131415161718192021
  1. # m32r testcase for sth $src1,@$src2
  2. # mach(): m32r m32rx
  3. .include "testutils.inc"
  4. start
  5. .global sth
  6. sth:
  7. mvaddr_h_gr r4, data_loc
  8. mvi_h_gr r5, 0x123456
  9. sth r5, @r4
  10. ld r4, @r4
  11. test_h_gr r4, 0x34560000 ; big endian processor
  12. pass
  13. data_loc:
  14. .word 0