This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
SSE on PIII - gcc or gas bug?
- To: bug-gnu-utils at gnu dot org, bug-gcc at gnu dot org
- Subject: SSE on PIII - gcc or gas bug?
- From: Ilan Finci <ifinci at mobileye dot com>
- Date: Tue, 18 Jan 2000 09:56:50 +0200
- Organization: MobilEye Vision Technologies LTD.
Hi,
I'm trying to use the new Pentium III extension (SSE - what came after
MMX) using inline assembly.
I managed to get the program to compile just fine (no warning or
errors), but when trying to run the program, I get an error "Illegal
instruction (core dumped)". I've tried it on more then one PIII.
I've checked that SSE is enabled (using CPUID, with ax=1 and checking
the 25th bit of dx) - it is enabled.
Does anyone managed to run programs with SSE?
here is a small example I've used.
------
int main()
{
asm ("xorps %%xmm0, %%xmm0"
:/* no output*/
:/* no input */
);
return 0;
}
--------
I get the error as soon as the xorps command is to be executed.
I'm using gcc version 2.95.2 (compiled from source).
I've tried if with binutils 2.9.1.0.23 (that comes with RH 6.x) and
2.9.5.0.22 (rpms)
Is this my error or a bug in gcc/as?
Thanks,
Ilan
--
MobilEye Vision Technologies LTD
24 Mishol Hadkalim st. Jerusalem, 97278, Israel
Tel: 972-2-5866989 Fax: 972-2-5867720 Personal Fax: 1-801-912-3251
Email: mailto:ifinci@mobileye.com http://www.mobileye.com