mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
no message
This commit is contained in:
parent
b3c9baef95
commit
addb969355
22
tests/webtbs/tw2998.pp
Normal file
22
tests/webtbs/tw2998.pp
Normal file
@ -0,0 +1,22 @@
|
||||
{ %cpu=i386 }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 2998 }
|
||||
{ Submitted by "bartek" on 2004-03-02 }
|
||||
{ e-mail: bbartek@gmx.net }
|
||||
|
||||
{$asmmode intel}
|
||||
program SSE_test;
|
||||
uses
|
||||
mmx;
|
||||
type
|
||||
vector4 = array[0..3] of single;
|
||||
var
|
||||
a,b,c :vector4;
|
||||
begin
|
||||
if is_sse_cpu then
|
||||
asm
|
||||
movups xmm0, [a]
|
||||
addps xmm0,[b]
|
||||
movups [c], xmm0
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user