mulw.cgs 247 B

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