Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 1998 01:32:15 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        alk@pobox.com, current@FreeBSD.ORG, luoqi@watermarkgroup.com
Subject:   Re:  as chokes on cc output
Message-ID:  <199805161532.BAA28755@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805161532.BAA28755>