pmuludq.asm 650 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. global _start
  2. section .data
  3. align 16
  4. dword1:
  5. dd 0x00000002
  6. dword2:
  7. dd 0xFFFFFF11
  8. dword3:
  9. dd 0xFFF00000
  10. dword4:
  11. dd 0x0000FFFF
  12. dword5:
  13. dd 0xFFFFFFFF
  14. mydword:
  15. dd 0xcafebabe
  16. myaddress:
  17. dq 0x00adbeefc0de00ce
  18. qword1:
  19. dq 0xffffffff00000001
  20. %include "header.inc"
  21. movd mm0, [dword1]
  22. movd mm1, [dword2]
  23. movd mm2, [dword1]
  24. movd mm3, [dword2]
  25. movd mm4, [dword4]
  26. movd mm5, [dword5]
  27. pmuludq mm0, [mydword]
  28. pmuludq mm2, mm1
  29. pmuludq mm3, [dword3]
  30. pmuludq mm4, [dword3]
  31. pmuludq mm5, [dword5]
  32. movd xmm1, [dword5]
  33. pshufd xmm1, xmm1, 0
  34. pmuludq xmm1, xmm1
  35. movd xmm2, [dword4]
  36. pmuludq xmm2, xmm1
  37. %include "footer.inc"