packuswb.asm 700 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. global _start
  2. section .data
  3. align 16
  4. quad1:
  5. dq 0xad0000ceadad00ff
  6. quad2:
  7. dq 0xffffffffffffffff
  8. quad3:
  9. dq 0x0000000000000000
  10. quad4:
  11. dq 0x7fff8000ffff0808
  12. myquad:
  13. dq 0x00ad00adad007fff
  14. mydword:
  15. dd 0xcafebabe
  16. myaddress:
  17. dq 0x00adbeefc0de00ce
  18. %include "header.inc"
  19. movq mm0, [quad1]
  20. movq mm1, [quad2]
  21. movq mm2, [quad3]
  22. movq mm3, [quad4]
  23. movq mm4, [quad1]
  24. movq mm5, [quad2]
  25. movq mm6, [quad3]
  26. movq mm7, [quad4]
  27. packuswb mm4, mm0
  28. packuswb mm5, mm1
  29. packuswb mm6, mm2
  30. packuswb mm7, mm3
  31. packuswb mm0, [quad2]
  32. packuswb mm1, [quad3]
  33. packuswb mm2, [quad4]
  34. packuswb mm3, [quad1]
  35. packuswb mm0, mm5
  36. packuswb mm1, mm6
  37. packuswb mm2, mm7
  38. packuswb mm3, mm4
  39. %include "footer.inc"