wandn.cgs 778 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Intel(r) Wireless MMX(tm) technology testcase for WANDN
  2. # mach: xscale
  3. # as: -mcpu=xscale+iwmmxt
  4. .include "testutils.inc"
  5. start
  6. .global wandn
  7. wandn:
  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. mvi_h_gr r0, 0x12345678
  13. mvi_h_gr r1, 0x9abcdef0
  14. mvi_h_gr r2, 0x11111111
  15. mvi_h_gr r3, 0x00000000
  16. mvi_h_gr r4, 0
  17. mvi_h_gr r5, 0
  18. tmcrr wr0, r0, r1
  19. tmcrr wr1, r2, r3
  20. tmcrr wr2, r4, r5
  21. wandn wr2, wr0, wr1
  22. tmrrc r0, r1, wr0
  23. tmrrc r2, r3, wr1
  24. tmrrc r4, r5, wr2
  25. test_h_gr r0, 0x12345678
  26. test_h_gr r1, 0x9abcdef0
  27. test_h_gr r2, 0x11111111
  28. test_h_gr r3, 0x00000000
  29. test_h_gr r4, 0x02244668
  30. test_h_gr r5, 0x9abcdef0
  31. pass