public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56890] New: Invalid fdtox %f8, %f9 on Sparc 64 Bits with -O2
@ 2013-04-09  8:36 rainer.jung at kippdata dot de
  2013-04-09  8:38 ` [Bug c/56890] " rainer.jung at kippdata dot de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rainer.jung at kippdata dot de @ 2013-04-09  8:36 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56890

             Bug #: 56890
           Summary: Invalid fdtox %f8, %f9 on Sparc 64 Bits with -O2
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rainer.jung@kippdata.de


Created attachment 29835
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29835
Minimal test case (only for -O2)

gcc 4.7.2

config.nice:

Will attach minimal C test case and assembler file.
GCC flags: gcc -m64 -O2

Error message:

/usr/ccs/bin/as: "test.s", line 29: error: invalid (misaligned) register

Problematic assembler line:

        fdtox   %f8, %f9

Sun assembler version:

/usr/ccs/bin/as: SunOS 5.10 118683-08 Patch 07/05/2012

It seems the second argument needs an even register number.

Another reporter also ran into the problem with GCC 4.6.3, but this works here,
so maybe a problem with one of the helper libraries mpc, gmp, mpfr?

Bug also reported for FreeBSD/sparc64.

A slightly bigger test case closer to the original code (also attached) also
gives an error when compiling only with "-O" or "-O1" instead of "-O2":

test.c: In function 'buggy':
test.c:13:1: error: insn does not satisfy its constraints:
(insn 103 38 39 3 (set (reg:HI 40 %f8 [151])
        (reg:HI 42 %f10)) test.c:6 58 {*movhi_insn}
     (nil))
test.c:13:1: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:403
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Original bug report was against the Apache Web Server:
https://issues.apache.org/bugzilla/show_bug.cgi?id=52900

Regards,

Rainer


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

end of thread, other threads:[~2013-04-15 15:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-09  8:36 [Bug c/56890] New: Invalid fdtox %f8, %f9 on Sparc 64 Bits with -O2 rainer.jung at kippdata dot de
2013-04-09  8:38 ` [Bug c/56890] " rainer.jung at kippdata dot de
2013-04-09  8:40 ` rainer.jung at kippdata dot de
2013-04-09  8:55 ` [Bug target/56890] " rainer.jung at kippdata dot de
2013-04-09 16:09 ` ebotcazou at gcc dot gnu.org
2013-04-11  9:21 ` [Bug target/56890] invalid fdtox instruction in 64-bit mode " windward at gmx dot com
2013-04-15  8:35 ` ebotcazou at gcc dot gnu.org
2013-04-15  8:36 ` ebotcazou at gcc dot gnu.org
2013-04-15  8:36 ` ebotcazou at gcc dot gnu.org
2013-04-15 15:34 ` rainer.jung at kippdata dot de

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).