public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/5760: -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code
@ 2002-02-25  8:59 jakub
  0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-02-25  8:59 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, kelleycook, nobody

Synopsis: -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code

State-Changed-From-To: open->analyzed
State-Changed-By: jakub
State-Changed-When: Mon Feb 25 08:57:56 2002
State-Changed-Why:
    You haven't attached any patch.
    Did you mean
    --- gcc/config/i386/i386.c.jj   Sun Feb 24 21:15:39 2002
    +++ gcc/config/i386/i386.c      Mon Feb 25 18:02:48 2002
    @@ -5732,7 +5732,7 @@ print_operand (file, x, code)
              /* 387 opcodes don't get size suffixes if the operands are
                 registers.  */
    
    -         if (STACK_REG_P (x))
    +         if (STACK_REG_P (x) || ASSEMBLER_DIALECT == ASM_INTEL)
                return;
    
              /* this is the size of op from size of operand */
    ?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5760


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: target/5760: -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code
@ 2002-03-07  3:55 jakub
  0 siblings, 0 replies; 3+ messages in thread
From: jakub @ 2002-03-07  3:55 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, kelleycook, nobody

Synopsis: -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code

State-Changed-From-To: analyzed->closed
State-Changed-By: jakub
State-Changed-When: Thu Mar  7 03:55:51 2002
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5760


^ permalink raw reply	[flat|nested] 3+ messages in thread

* target/5760: -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code
@ 2002-02-23 10:46 kelleycook
  0 siblings, 0 replies; 3+ messages in thread
From: kelleycook @ 2002-02-23 10:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5760
>Category:       target
>Synopsis:       -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 23 09:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     kelleycook@comcast.net
>Release:        gcc version 3.1 20020222 (experimental)
>Organization:
>Environment:
Any Intel x86 compatible platform with x87 support.
>Description:
When using -mintel-syntax (changed to -masm=intel for 3.1).  It generates x87 opcodes that are illegal by appending the att-style length suffix.  Some older versions of as included with GNU binutils accepted these illegal opcodes, but the current released and CVS versions of will not.

For example on one of my programs if outputs this:

rate.s.orig: Assembler messages:
rate.s.orig:1455: Error: no such instruction: `fldl QWORD PTR LC20'
rate.s.orig:1461: Error: no such instruction: `fstpl QWORD PTR[ebp-32]'
rate.s.orig:1472: Error: no such instruction: `fldl QWORD PTR[ebp-32]'
rate.s.orig:1475: Error: no such instruction: `fstpl QWORD PTR[ebp-32]'
...
>How-To-Repeat:
On an Intel platform with binutils 2.11.x run GCC's 
make check RUNTESTFLAGS="--tool_opts 'masm=intel'"

Illegal opcodes will occur during most of the floating point tests.
>Fix:
A one liner to i386.c  that I'll append to this in after a bootstrap with BOOT_CFLAGS="-masm=intel" completes.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-07 11:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-25  8:59 target/5760: -masm=intel [a.k.a. -mintel-syntax] generates incorrect x87 code jakub
  -- strict thread matches above, loose matches on Subject: below --
2002-03-07  3:55 jakub
2002-02-23 10:46 kelleycook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).