ashud.cgs 321 B

1234567891011121314151617181920212223242526
  1. # cr16 testcase for ashud $sr,$dr
  2. # mach(): cr16
  3. .include "testutils.inc"
  4. start
  5. .global ashud
  6. ashud:
  7. movd $0xf1234567, (r4,r3)
  8. movw $20,r5
  9. ashud r5, (r4,r3)
  10. cmpd $0x56700000, (r4,r3)
  11. beq ok
  12. not_ok:
  13. fail
  14. ok:
  15. movd $0xf1234567, (r4,r3)
  16. movw $-20,r5
  17. ashud r5, (r4,r3)
  18. test_h_grp "(r4,r3)", -238
  19. pass