This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27968] gcc emits (undefined) ffreep opcode which is not understood by Solaris' /usr/ccs/bin/as when tuning for Athlon or Opteron CPUs
- From: "digitale at digitaleric dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2006 18:01:18 -0000
- Subject: [Bug target/27968] gcc emits (undefined) ffreep opcode which is not understood by Solaris' /usr/ccs/bin/as when tuning for Athlon or Opteron CPUs
- References: <bug-27968-12803@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from digitale at digitaleric dot net 2006-06-10 18:01 -------
Subject: Re: gcc emits (undefined) ffreep opcode which
is not understood by Solaris' /usr/ccs/bin/as when tuning for Athlon or
Opteron CPUs
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-06-09 00:05 -------
> One thing is to use GNU binutil's as instead. The other thing to do is to file
> a bug with Sun (which is better anyways).
I have filed a bug with Sun. But I think it would be good to fix gcc too.
Jan Hubicka's comment on the adding the ffreep support to gcc was:
"The instruction is not documented by IA-32 description, but all CPUs in
existence support it and majorty of assemblers seems to know it too. In case
we will hit assembler that don't I will add configure script code for that."
I also question if it is a mistake for gcc to emit this opcode so readily.
Quoting the Intel IA-32 manual: "all blanks in the opcode map are reserved and
should not be used. Do not depend on the operation on these undefined opcodes"
(this is below the opcode map, where the row for ffreep is blank).
-Eric
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27968