testsse2.pp 291 B

12345678910111213141516171819
  1. { %CPU=i386 }
  2. { %version=1.1}
  3. uses
  4. mmx;
  5. { only a small test to see if it works in principal }
  6. var
  7. q : array[0..15] of byte;
  8. begin
  9. if is_sse2_cpu then
  10. asm
  11. movdqa %xmm1,%xmm2
  12. movdqa q,%xmm4
  13. psubq %xmm1,%xmm2
  14. psubq q,%xmm4
  15. end;
  16. end.