loadw.cgs 250 B

123456789101112131415161718192021
  1. # cr16 testcase for loadw 0(regp), (regp)
  2. # mach(): cr16
  3. .include "testutils.inc"
  4. start
  5. .global ldb
  6. ldb:
  7. movd $data_loc, (r4,r3)
  8. movw $0,r5
  9. loadw 0(r4,r3),r5
  10. test_h_gr r5, 0x5678 # little endian processor
  11. pass
  12. data_loc:
  13. .word 0x5678