shi.cgs 206 B

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