public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/49411] New: [4.6/4.7] ICE: unrecognizable insn with -mxop in _mm_roti_epi8 with negative number
@ 2011-06-14 22:43 qneill at gcc dot gnu.org
  2011-06-14 23:22 ` [Bug target/49411] " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: qneill at gcc dot gnu.org @ 2011-06-14 22:43 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6/4.7] ICE: unrecognizable insn with -mxop in
                    _mm_roti_epi8 with negative number
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: qneill@gcc.gnu.org


Using _mm_roti_epi8 in xopintrin.h with a negative number produces an ICE in
4.6/4.7; the negative number is how you use VPROT[BWDQ] to rotate right, see 
http://support.amd.com/us/Processor_TechDocs/26568.pdf

------ testcase.c ------
#include <x86intrin.h>
void f(void)
{
        __m128 s;
        __m128i d;
        return _mm_roti_epi8(s, -1);
}
------ output ------
$ gcc -mxop -c vprotbi1.c
vprotbi1.c: In function ‘f’:
vprotbi1.c:6:2: warning: ‘return’ with a value, in function returning void
[enabled by default]
vprotbi1.c:7:1: error: unrecognizable insn:
(insn 6 5 7 3 (set (reg:V16QI 60 [ D.8650 ])
        (rotate:V16QI (reg:V16QI 59 [ D.8648 ])
            (const_int -1 [0xffffffffffffffff]))) vprotbi1.c:6 -1
     (nil))
vprotbi1.c:7:1: internal compiler error: in extract_insn, at recog.c:2113
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2011-06-18  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14 22:43 [Bug target/49411] New: [4.6/4.7] ICE: unrecognizable insn with -mxop in _mm_roti_epi8 with negative number qneill at gcc dot gnu.org
2011-06-14 23:22 ` [Bug target/49411] " jakub at gcc dot gnu.org
2011-06-15  5:48 ` jakub at gcc dot gnu.org
2011-06-15  6:33 ` jakub at gcc dot gnu.org
2011-06-15 15:38 ` qneill at gcc dot gnu.org
2011-06-15 15:57 ` jakub at gcc dot gnu.org
2011-06-15 16:40 ` qneill at gcc dot gnu.org
2011-06-18  6:43 ` jakub at gcc dot gnu.org
2011-06-18  9:08 ` jakub at gcc dot gnu.org
2011-06-18  9:19 ` jakub at gcc dot gnu.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).