This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14996] New: ICE with Alpha builtin
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Apr 2004 17:48:07 -0000
- Subject: [Bug target/14996] New: ICE with Alpha builtin
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
% 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