subx.cgs 322 B

1234567891011121314151617181920212223242526
  1. # m32r testcase for subx $dr,$sr
  2. # mach(): m32r m32rx
  3. .include "testutils.inc"
  4. start
  5. .global subx
  6. subx:
  7. mvi_h_condbit 1
  8. mvi_h_gr r4, 6
  9. mvi_h_gr r5, 4
  10. subx r4, r5
  11. bc not_ok
  12. test_h_gr r4, 1
  13. mvi_h_condbit 1
  14. mvi_h_gr r4, 4
  15. mvi_h_gr r5, 4
  16. subx r4, r5
  17. bnc not_ok
  18. test_h_gr r4, 0xffffffff
  19. pass
  20. not_ok:
  21. fail