From owner-freebsd-current Sat May 16 07:55:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA22763 for freebsd-current-outgoing; Sat, 16 May 1998 07:55:36 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA22747 for ; Sat, 16 May 1998 07:55:33 -0700 (PDT) (envelope-from luoqi@lor.watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id KAA02606; Sat, 16 May 1998 10:53:44 -0400 (EDT) (envelope-from luoqi) Date: Sat, 16 May 1998 10:53:44 -0400 (EDT) From: Luoqi Chen Message-Id: <199805161453.KAA02606@lor.watermarkgroup.com> To: alk@pobox.com, current@FreeBSD.ORG 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"); -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message