public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/49621] New: [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at explow.c:57
@ 2011-07-03 19:51 doko at ubuntu dot com
  2011-07-04  9:35 ` [Bug target/49621] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2011-07-03 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at
                    explow.c:57
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: doko@ubuntu.com


[forwarded from http://bugs.debian.org/632510]

works with 4.4.6, fails with recent 4.5 and 4.6 branches and trunk
(powerpc-linux)



$ gcc -c -O -maltivec -g foo.i 
foo.i: In function 'foo':
foo.i:17:1: internal compiler error: in trunc_int_for_mode, at explow.c:56
Please submit a full bug report,
with preprocessed source if appropriate.

int foo(void)
{
  __attribute__((altivec(vector__))) unsigned a, b, c;
  unsigned k = 1;

  a = (__attribute__((altivec(vector__))) unsigned) { 0, 0, 0, 1 };
  b = c = (__attribute__((altivec(vector__))) unsigned) { 0, 0, 0, 0 };

  a = __builtin_vec_add(a, __builtin_vec_splats(k));
  b = __builtin_vec_add(b, a);
  c = __builtin_vec_sel(c, a, b);

  if (__builtin_vec_vcmpeq_p(1, b, c))
    return 1;

  return 0;
}


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

end of thread, other threads:[~2011-07-19 13:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-03 19:51 [Bug target/49621] New: [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at explow.c:57 doko at ubuntu dot com
2011-07-04  9:35 ` [Bug target/49621] " rguenth at gcc dot gnu.org
2011-07-07 12:05 ` jakub at gcc dot gnu.org
2011-07-07 12:08 ` jakub at gcc dot gnu.org
2011-07-08 20:12 ` jakub at gcc dot gnu.org
2011-07-08 20:17 ` jakub at gcc dot gnu.org
2011-07-08 20:19 ` [Bug target/49621] [4.5 " jakub at gcc dot gnu.org
2011-07-19 13:13 ` jakub at gcc dot gnu.org
2011-07-19 13:50 ` 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).