cvttps2pi.asm 458 B

12345678910111213141516171819202122232425262728293031
  1. global _start
  2. section .data
  3. align 16
  4. float0low:
  5. dd 2147483647.0
  6. float0high:
  7. dd -2147483648.0
  8. float1low:
  9. dd 1235.678
  10. float1high:
  11. dd 1325400064
  12. float2low:
  13. dd -54.321
  14. float2high:
  15. dd -12345.6
  16. float3low:
  17. dd 123.456
  18. float3high:
  19. dd 1234.5678
  20. myaddress:
  21. dd 0xdeadbeef
  22. %include "header.inc"
  23. movaps xmm0, [float0low]
  24. cvttps2pi mm0, xmm0
  25. cvttps2pi mm1, [float1low]
  26. cvttps2pi mm2, [float2low]
  27. cvttps2pi mm3, [float3low]
  28. %include "footer.inc"