mia.cgs 589 B

1234567891011121314151617181920212223242526272829303132333435
  1. # XSCALE testcase for MIA
  2. # mach: xscale
  3. # as: -mcpu=xscale
  4. .include "testutils.inc"
  5. start
  6. .global mia
  7. mia:
  8. # Enable access to CoProcessors 0 & 1 before
  9. # we attempt these instructions.
  10. mvi_h_gr r1, 3
  11. mcr p15, 0, r1, cr15, cr1, 0
  12. # Test Multilply Accumulate
  13. mvi_h_gr r0, 0x11223344
  14. mvi_h_gr r1, 0x55667788
  15. mvi_h_gr r2, 0x12345678
  16. mvi_h_gr r3, 0x9abcdef0
  17. mar acc0, r0, r1
  18. mia acc0, r2, r3
  19. mra r0, r1, acc0
  20. test_h_gr r0, 0x354f53c4
  21. test_h_gr r1, 0x4e330b5e
  22. test_h_gr r2, 0x12345678
  23. test_h_gr r3, 0x9abcdef0
  24. pass