push3.cgs 247 B

123456789101112131415161718192021222324
  1. # cr16 testcase for push RA insns.
  2. # mach: cr16
  3. .include "testutils.inc"
  4. start
  5. .global push1
  6. push1:
  7. movd $0x1006, (sp)
  8. movd $0xabcd, (ra)
  9. push RA
  10. loadd 0x1002, (r3,r2)
  11. cmpd (r3,r2), (ra)
  12. beq ok
  13. br not_ok
  14. not_ok:
  15. fail
  16. ok:
  17. pass