testsse2.pp 321 B

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