psllq.asm 719 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. global _start
  2. section .data
  3. align 16
  4. dq0:
  5. dq 0x0102030405060708
  6. dq 0xffffaaaabbbbcccc
  7. dq1:
  8. dq 0x8d0000ceadad00ff
  9. dq 0x0123456789abcdef
  10. mydword:
  11. dd 0xcafebac0
  12. align 16
  13. shift1:
  14. dq 0x07
  15. dq 0
  16. shift2:
  17. dq -0x22
  18. dq 0
  19. %include "header.inc"
  20. movq mm0, [dq0]
  21. movq mm1, [dq0]
  22. movq mm2, [dq0]
  23. movq mm3, [dq1]
  24. movq mm4, [dq1]
  25. movq mm6, [dq1]
  26. movq xmm0, [dq0]
  27. movq xmm1, [dq0]
  28. movq xmm2, [dq0]
  29. movq xmm3, [dq1]
  30. movq xmm4, [dq1]
  31. movq xmm6, [dq1]
  32. psllq mm0, [shift1]
  33. psllq mm1, [shift2]
  34. psllq mm2, 50
  35. psllq mm3, 28
  36. psllq mm4, 68
  37. psllq mm6, 0x5
  38. psllq xmm0, [shift1]
  39. psllq xmm1, [shift2]
  40. psllq xmm2, 50
  41. psllq xmm3, 28
  42. psllq xmm4, 68
  43. psllq xmm6, 0x5
  44. %include "footer.inc"