public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/57098] New: ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle()
@ 2013-04-28 7:08 zsojka at seznam dot cz
2013-04-29 13:13 ` [Bug target/57098] " mpolacek at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2013-04-28 7:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57098
Bug #: 57098
Summary: ICE: in extract_insn, at recog.c:2154 (unrecognizable
insn) with -mcmodel=large -msse4 and
__builtin_shuffle()
Classification: Unclassified
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 29957
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29957
reduced testcase
Compiler output:
$ gcc -mcmodel=large -msse4 testcase.c
testcase.c: In function 'foo':
testcase.c:6:1: error: unrecognizable insn:
}
^
(insn 19 18 20 2 (set (reg:V16QI 71)
(unspec:V16QI [
(reg:V16QI 71)
(mem/u/c:V16QI (symbol_ref/u:DI ("*.LC1") [flags 0x2]) [0 S16
A128])
] UNSPEC_PSHUFB)) testcase.c:5 -1
(nil))
testcase.c:6:1: internal compiler error: in extract_insn, at recog.c:2154
0x9b919a _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/mnt/svn/gcc-trunk/gcc/rtl-error.c:109
0x9b922a _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/mnt/svn/gcc-trunk/gcc/rtl-error.c:117
0x974fa1 extract_insn(rtx_def*)
/mnt/svn/gcc-trunk/gcc/recog.c:2154
0x811c67 instantiate_virtual_regs_in_insn
/mnt/svn/gcc-trunk/gcc/function.c:1561
0x811c67 instantiate_virtual_regs
/mnt/svn/gcc-trunk/gcc/function.c:1926
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ gcc -v
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-198362-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-198362-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 4.9.0 20130427 (experimental) (GCC)
Tested revisions:
r198362 - crash
4.8 r198018 - crash
4.7 r198018 - crash
4.6 r198018 - doesn't recognise __builtin_shuffle()
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/57098] ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle()
2013-04-28 7:08 [Bug target/57098] New: ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle() zsojka at seznam dot cz
@ 2013-04-29 13:13 ` mpolacek at gcc dot gnu.org
2013-04-29 15:26 ` ubizjak at gmail dot com
2013-04-30 5:35 ` ubizjak at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-04-29 13:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57098
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-04-29
CC| |mpolacek at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-04-29 13:13:19 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/57098] ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle()
2013-04-28 7:08 [Bug target/57098] New: ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle() zsojka at seznam dot cz
2013-04-29 13:13 ` [Bug target/57098] " mpolacek at gcc dot gnu.org
@ 2013-04-29 15:26 ` ubizjak at gmail dot com
2013-04-30 5:35 ` ubizjak at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-29 15:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57098
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |ubizjak at gmail dot com
|gnu.org |
Target Milestone|--- |4.7.4
--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-29 15:26:09 UTC ---
A bunch of validize_mem calls are missing. Patch in testing:
--cut here--
Index: i386.c
===================================================================
--- i386.c (revision 198401)
+++ i386.c (working copy)
@@ -20559,7 +20559,7 @@ ix86_expand_vec_perm (rtx operands[])
vec[i * 2 + 1] = const1_rtx;
}
vt = gen_rtx_CONST_VECTOR (maskmode, gen_rtvec_v (w, vec));
- vt = force_const_mem (maskmode, vt);
+ vt = validize_mem (force_const_mem (maskmode, vt));
t1 = expand_simple_binop (maskmode, PLUS, t1, vt, t1, 1,
OPTAB_DIRECT);
@@ -20756,7 +20756,7 @@ ix86_expand_vec_perm (rtx operands[])
for (i = 0; i < 16; ++i)
vec[i] = GEN_INT (i/e * e);
vt = gen_rtx_CONST_VECTOR (V16QImode, gen_rtvec_v (16, vec));
- vt = force_const_mem (V16QImode, vt);
+ vt = validize_mem (force_const_mem (V16QImode, vt));
if (TARGET_XOP)
emit_insn (gen_xop_pperm (mask, mask, mask, vt));
else
@@ -20767,7 +20767,7 @@ ix86_expand_vec_perm (rtx operands[])
for (i = 0; i < 16; ++i)
vec[i] = GEN_INT (i % e);
vt = gen_rtx_CONST_VECTOR (V16QImode, gen_rtvec_v (16, vec));
- vt = force_const_mem (V16QImode, vt);
+ vt = validize_mem (force_const_mem (V16QImode, vt));
emit_insn (gen_addv16qi3 (mask, mask, vt));
}
--cut here--
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/57098] ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle()
2013-04-28 7:08 [Bug target/57098] New: ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle() zsojka at seznam dot cz
2013-04-29 13:13 ` [Bug target/57098] " mpolacek at gcc dot gnu.org
2013-04-29 15:26 ` ubizjak at gmail dot com
@ 2013-04-30 5:35 ` ubizjak at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2013-04-30 5:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57098
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2013-04-30 05:35:34 UTC ---
Fixed everywhere.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-30 5:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-28 7:08 [Bug target/57098] New: ICE: in extract_insn, at recog.c:2154 (unrecognizable insn) with -mcmodel=large -msse4 and __builtin_shuffle() zsojka at seznam dot cz
2013-04-29 13:13 ` [Bug target/57098] " mpolacek at gcc dot gnu.org
2013-04-29 15:26 ` ubizjak at gmail dot com
2013-04-30 5:35 ` ubizjak at gmail dot com
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).