Date: Sat, 16 May 1998 23:20:31 +0800 From: Peter Wemm <peter@netplex.com.au> To: Luoqi Chen <luoqi@watermarkgroup.com> Cc: alk@pobox.com, current@FreeBSD.ORG Subject: Re: as chokes on cc output Message-ID: <199805161520.XAA04364@spinner.netplex.com.au> In-Reply-To: Your message of "Sat, 16 May 1998 10:53:44 -0400." <199805161453.KAA02606@lor.watermarkgroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Luoqi Chen wrote:
> > I'm getting messages like so:
> > /var/tmp/ccro2473.s:26621: Error: operands given don't match any known 386
instruction
> > from asm lines like so:
> > #APP
> > fldln2; fxch; fyl2x
> > #NO_APP
> > in gcc-generated code. I'm clueless w.r.t. intel asm code and binutils. W
hat's
> > the deal? It's a bug, anyhow.
>
> These are i387 instructions. The problem is that gas doesn't know fxch is
> a shorthand for fxch %st(1). Just add the parameter %st(1), like
> __asm__("fldln2; fxch %st(1); fyl2x");
Is the original line gcc generated code or an inline asm statement? If gcc
generated it, it should be a simple fix..
> -lq
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
>
Cheers,
-Peter
--
Peter Wemm <peter@netplex.com.au> Netplex Consulting
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805161520.XAA04364>
