shs.cgs 207 B

123456789101112131415161718192021
  1. # cr16 testcase for shs reg
  2. # mach(): cr16
  3. .include "testutils.inc"
  4. start
  5. .global shs
  6. shs:
  7. mvi_h_condbit 0
  8. movw $1, r4
  9. movw $2, r5
  10. subw r4, r5
  11. shs r3
  12. cmpw $1, r3
  13. beq ok
  14. not_ok:
  15. fail
  16. ok:
  17. pass