public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/54193] New: dump_gimple_assign raw can't handle 4 operands
@ 2012-08-07 13:33 glisse at gcc dot gnu.org
  2012-08-07 15:13 ` [Bug middle-end/54193] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: glisse at gcc dot gnu.org @ 2012-08-07 13:33 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54193
           Summary: dump_gimple_assign raw can't handle 4 operands
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: glisse@gcc.gnu.org


#include <x86intrin.h>

__m128d
f (__m128d x)
{
  __m128i m = {0, 1};
  return __builtin_shuffle (x, m);
}

$ gcc sh.c -c -fdump-tree-optimized-raw
sh.c: In function 'f':
sh.c:4:1: internal compiler error: in dump_gimple_assign, at
gimple-pretty-print.c:485
 f (__m128d x)
 ^
Please submit a full bug report,

which is fairly natural with code like:

      if (gimple_num_ops (gs) == 2)
        last = NULL_TREE;
      else if (gimple_num_ops (gs) == 3)
        last = gimple_assign_rhs2 (gs);
      else
        gcc_unreachable ();

(the non-raw version below goes up to 4)

I guess the -raw option doesn't see much use these days. I was trying it
because sometimes it isn't obvious what tree code is meant by the C-like
representation.


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

end of thread, other threads:[~2012-08-12 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07 13:33 [Bug middle-end/54193] New: dump_gimple_assign raw can't handle 4 operands glisse at gcc dot gnu.org
2012-08-07 15:13 ` [Bug middle-end/54193] " rguenth at gcc dot gnu.org
2012-08-12 16:21 ` glisse at gcc dot gnu.org
2012-08-12 16:26 ` glisse 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).