public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14996] New: ICE with Alpha builtin
@ 2004-04-17 18:08 falk at debian dot org
  2004-04-17 20:14 ` [Bug target/14996] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: falk at debian dot org @ 2004-04-17 18:08 UTC (permalink / raw)
  To: gcc-bugs

% cat test.c
unsigned long f (void) {
    return __builtin_alpha_inswl(0, 3);
}

% gcc -c test.c 
test.c: In function `f':
test.c:3: error: unrecognizable insn:
(insn 8 19 9 0 (set (reg:DI 69 [ T.0 ])
        (ashift:DI (zero_extend:DI (const_int 0 [0x0]))
            (ashift:DI (const_int 3 [0x3])
                (const_int 3 [0x3])))) -1 (nil)
    (nil))
test.c:3: internal compiler error: in extract_insn, at recog.c:2068
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This is not a regression, since the builtins are new in 3.4.

The problem is the illegal RTL of a zero extension of a constant. This is
exactly the same problem as in PR 10083. I'm not sure whether fixing it the
same way is a good idea since it would create lots of patterns, maybe somebody
has a better idea?

It would be nice if this could be fixed in a way that would completely fold the
constant, since this comes from code byte-swapping a constant magic value.

-- 
           Summary: ICE with Alpha builtin
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu


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


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

end of thread, other threads:[~2004-07-13 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-17 18:08 [Bug target/14996] New: ICE with Alpha builtin falk at debian dot org
2004-04-17 20:14 ` [Bug target/14996] " pinskia at gcc dot gnu dot org
2004-04-17 20:15 ` falk at debian dot org
2004-04-24 12:19 ` falk at debian dot org
2004-05-05 18:21 ` falk at debian dot org
2004-07-13 16:45 ` reichelt at gcc dot gnu dot org

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