public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-*
@ 2011-08-21 15:33 dominiq at lps dot ens.fr
  2011-08-21 19:48 ` [Bug middle-end/50145] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-21 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50145
           Summary: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on
                    powerpc*-*-*
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: rguenther@suse.de
              Host: powerpc*-*-*
            Target: powerpc*-*-*
             Build: powerpc*-*-*


gcc.dg/torture/pr50067-*.c aborts on powerpc*-*-* (see
http://gcc.gnu.org/ml/gcc-testresults/2011-08/msg02191.html and
http://gcc.gnu.org/ml/gcc-testresults/2011-08/msg02189.html). AFAICT this is
not a regression: they aborts also when compiled with gcc 4.4.6.


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

* [Bug middle-end/50145] FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-*
  2011-08-21 15:33 [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-* dominiq at lps dot ens.fr
@ 2011-08-21 19:48 ` rguenth at gcc dot gnu.org
  2011-08-21 20:32 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-21 19:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-21 19:37:26 UTC ---
Can you please check why?  I suppose it's a big/little-endian issue with the
testcase, so the expected array contents change?  Making the short input
array values duplicated in both bytes could fix the test (with adjusting
the expected output as well)


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

* [Bug middle-end/50145] FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-*
  2011-08-21 15:33 [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-* dominiq at lps dot ens.fr
  2011-08-21 19:48 ` [Bug middle-end/50145] " rguenth at gcc dot gnu.org
@ 2011-08-21 20:32 ` dominiq at lps dot ens.fr
  2011-08-22  9:30 ` mikpe at it dot uu.se
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-08-21 20:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-08-21 20:21:04 UTC ---
> Can you please check why?

Using (note that I am C illiterate;-)

  for (i = 0; i < 32; ++i)
    printf("%hd  ", * (&a[i]));
  printf("\n");

before and after

  for (i = 0; i < 32; ++i)
    (*((unsigned short(*)[32])&a[0]))[i] = (*((char(*)[32])&a[0]))[i+8];

I get on powerpc-apple-darwin9:

0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21 
22  23  24  25  26  27  28  29  30  31  
0  4  0  5  0  6  0  7  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
 0  0  0  0  0  

instead of

0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21 
22  23  24  25  26  27  28  29  30  31  
4  0  5  0  6  0  7  0  8  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
 0  0  0  0  0  

on x86_64-apple-darwin10.


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

* [Bug middle-end/50145] FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-*
  2011-08-21 15:33 [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-* dominiq at lps dot ens.fr
  2011-08-21 19:48 ` [Bug middle-end/50145] " rguenth at gcc dot gnu.org
  2011-08-21 20:32 ` dominiq at lps dot ens.fr
@ 2011-08-22  9:30 ` mikpe at it dot uu.se
  2011-08-22 10:29 ` rguenth at gcc dot gnu.org
  2011-08-22 10:43 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mikpe at it dot uu.se @ 2011-08-22  9:30 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2011-08-22 09:24:40 UTC ---
gcc.dg/torture/pr50067-*.c also aborts on sparc64-linux and m68k-linux. 
They're both big-endian platforms.


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

* [Bug middle-end/50145] FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-*
  2011-08-21 15:33 [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-* dominiq at lps dot ens.fr
                   ` (2 preceding siblings ...)
  2011-08-22  9:30 ` mikpe at it dot uu.se
@ 2011-08-22 10:29 ` rguenth at gcc dot gnu.org
  2011-08-22 10:43 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-22 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-22 10:28:00 UTC ---
Fixed.


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

* [Bug middle-end/50145] FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-*
  2011-08-21 15:33 [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-* dominiq at lps dot ens.fr
                   ` (3 preceding siblings ...)
  2011-08-22 10:29 ` rguenth at gcc dot gnu.org
@ 2011-08-22 10:43 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-22 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-08-22 10:27:46 UTC ---
Author: rguenth
Date: Mon Aug 22 10:27:42 2011
New Revision: 177952

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177952
Log:
2011-08-22  Richard Guenther  <rguenther@suse.de>

    PR testsuite/50145
    * gcc.dg/torture/pr50067-1.c: Run on little-endian systems only.
    * gcc.dg/torture/pr50067-2.c: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/pr50067-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr50067-2.c


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

end of thread, other threads:[~2011-08-22 10:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-21 15:33 [Bug middle-end/50145] New: FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerpc*-*-* dominiq at lps dot ens.fr
2011-08-21 19:48 ` [Bug middle-end/50145] " rguenth at gcc dot gnu.org
2011-08-21 20:32 ` dominiq at lps dot ens.fr
2011-08-22  9:30 ` mikpe at it dot uu.se
2011-08-22 10:29 ` rguenth at gcc dot gnu.org
2011-08-22 10:43 ` rguenth 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).