pcmpeqb.asm 544 B

12345678910111213141516171819202122232425262728293031323334353637
  1. global _start
  2. section .data
  3. align 16
  4. quad1:
  5. dq 0x00ad00adad007fff
  6. quad2:
  7. dq 0x7fff00428000ffff
  8. quad3:
  9. dq 0x01008080f0f0ff42
  10. quad4:
  11. dq 0x0000000000000000
  12. mydword:
  13. dd 0xcafebabe
  14. myaddress:
  15. dq 0x00adbeefc0de00ce
  16. %include "header.inc"
  17. movq mm0, [quad1]
  18. movq mm1, [quad2]
  19. movq mm2, [quad3]
  20. movq mm3, [quad4]
  21. movq mm4, [quad1]
  22. pcmpeqb mm1, [quad2]
  23. pcmpeqb mm1, mm2
  24. pcmpeqb mm2, [quad1]
  25. pcmpeqb mm2, mm3
  26. pcmpeqb mm3, [quad3]
  27. pcmpeqb mm3, mm4
  28. pcmpeqb mm4, [quad1]
  29. pcmpeqb mm4, mm1
  30. pcmpeqb mm4, mm3
  31. %include "footer.inc"