From owner-freebsd-current Sat May 16 08:35:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA28220 for freebsd-current-outgoing; Sat, 16 May 1998 08:35:29 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA28213 for ; Sat, 16 May 1998 08:35:26 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id BAA28755; Sun, 17 May 1998 01:32:15 +1000 Date: Sun, 17 May 1998 01:32:15 +1000 From: Bruce Evans Message-Id: <199805161532.BAA28755@godzilla.zeta.org.au> To: alk@pobox.com, current@FreeBSD.ORG, luoqi@watermarkgroup.com Subject: Re: as chokes on cc output Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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. What'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"); I think I understand why gcc is generating this. #APP is generated for inline asm, and someone who doesn't know gas syntax wrote the asm :-). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message