From owner-freebsd-current Sat May 16 08:21:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA25448 for freebsd-current-outgoing; Sat, 16 May 1998 08:21:00 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA25440 for ; Sat, 16 May 1998 08:20:56 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id XAA04364; Sat, 16 May 1998 23:20:32 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199805161520.XAA04364@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Luoqi Chen cc: alk@pobox.com, current@FreeBSD.ORG Subject: Re: as chokes on cc output In-reply-to: Your message of "Sat, 16 May 1998 10:53:44 -0400." <199805161453.KAA02606@lor.watermarkgroup.com> Date: Sat, 16 May 1998 23:20:31 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Netplex Consulting To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message