public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
       [not found] <bug-33671-4@http.gcc.gnu.org/bugzilla/>
@ 2024-03-12 21:44 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-12 21:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33671

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janis at gcc dot gnu.org

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 34038 has been marked as a duplicate of this bug. ***

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

* [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
  2007-10-05 21:42 [Bug target/33671] New: incorrect vector codegen on PS3 " j dot m dot taylor at dur dot ac dot uk
                   ` (2 preceding siblings ...)
  2007-10-05 21:46 ` pinskia at gcc dot gnu dot org
@ 2007-10-05 22:06 ` j dot m dot taylor at dur dot ac dot uk
  3 siblings, 0 replies; 5+ messages in thread
From: j dot m dot taylor at dur dot ac dot uk @ 2007-10-05 22:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from j dot m dot taylor at dur dot ac dot uk  2007-10-05 22:06 -------
> Yep, including -mabi=altivec fixes the issue so this is not a real issue.
Thankyou for your prompt reply. I was not aware that I needed to do this. I am
glad to hear it's a compiler option issue rather than a true codegen bug, but I
still would argue that there is a bug in here, even if it's only a UI one.

I have passed gcc a series of options and it has compiled the source without
any error messages or warnings, but has produced INCORRECT CODE which it has
taken me a whole day to narrow down. It seems to me that if gcc is going to
produce incorrect code then it should surely be warning me about this.

All the man page says is that I "may also need to set -mabi=altivec".
Presumably there is some bizarre circumstance in which it might be preferable
not to set that option, but this case is clearly not one of them! I cannot see
how it can be possible to write any code whatsoever using the altivec
extensions without risking encountering this same issue.

The only other discussion I can find on this issue is here:
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00438.html
where someone else also seems to be arguing that this situation needs
addressing.


-- 


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


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

* [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
  2007-10-05 21:42 [Bug target/33671] New: incorrect vector codegen on PS3 " j dot m dot taylor at dur dot ac dot uk
  2007-10-05 21:44 ` [Bug target/33671] incorrect vector codegen on PPU " pinskia at gcc dot gnu dot org
  2007-10-05 21:45 ` pinskia at gcc dot gnu dot org
@ 2007-10-05 21:46 ` pinskia at gcc dot gnu dot org
  2007-10-05 22:06 ` j dot m dot taylor at dur dot ac dot uk
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-05 21:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-10-05 21:46 -------
[apinski@dhcp-10-98-10-216 ~]$ gcc -O3 t1212.c -maltivec
[apinski@dhcp-10-98-10-216 ~]$ ./a.out
1.000000 1.000000 1.000000 1.000000
0.000000 0.000000 0.000000 0.000000
[apinski@dhcp-10-98-10-216 ~]$ gcc -O3 t1212.c -maltivec -mabi=altivec
[apinski@dhcp-10-98-10-216 ~]$ ./a.out
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000


Same thing happens on the trunk:
[apinski@dhcp-10-98-10-216 ~]$ ~/gcc-mainline/bin/gcc -O3 t1212.c -maltivec
-mabi=altivec
!./[apinski@dhcp-10-98-10-216 ~]$ !./
./a.out
1.000000 1.000000 1.000000 1.000000
1.000000 1.000000 1.000000 1.000000
[apinski@dhcp-10-98-10-216 ~]$ ~/gcc-mainline/bin/gcc -O3 t1212.c -maltivec
[apinski@dhcp-10-98-10-216 ~]$ !./
./a.out
1.000000 1.000000 1.000000 1.000000
0.000000 0.000000 0.000000 0.000000


-- 


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


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

* [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
  2007-10-05 21:42 [Bug target/33671] New: incorrect vector codegen on PS3 " j dot m dot taylor at dur dot ac dot uk
  2007-10-05 21:44 ` [Bug target/33671] incorrect vector codegen on PPU " pinskia at gcc dot gnu dot org
@ 2007-10-05 21:45 ` pinskia at gcc dot gnu dot org
  2007-10-05 21:46 ` pinskia at gcc dot gnu dot org
  2007-10-05 22:06 ` j dot m dot taylor at dur dot ac dot uk
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-05 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-10-05 21:45 -------
Yep, including -mabi=altivec fixes the issue so this is not a real issue.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
  2007-10-05 21:42 [Bug target/33671] New: incorrect vector codegen on PS3 " j dot m dot taylor at dur dot ac dot uk
@ 2007-10-05 21:44 ` pinskia at gcc dot gnu dot org
  2007-10-05 21:45 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-05 21:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-10-05 21:44 -------
You forgot to include -mabi=altivec.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal
            Summary|incorrect vector codegen on |incorrect vector codegen on
                   |PS3 at O3 level optimization|PPU at O3 level optimization


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


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

end of thread, other threads:[~2024-03-12 21:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-33671-4@http.gcc.gnu.org/bugzilla/>
2024-03-12 21:44 ` [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization pinskia at gcc dot gnu.org
2007-10-05 21:42 [Bug target/33671] New: incorrect vector codegen on PS3 " j dot m dot taylor at dur dot ac dot uk
2007-10-05 21:44 ` [Bug target/33671] incorrect vector codegen on PPU " pinskia at gcc dot gnu dot org
2007-10-05 21:45 ` pinskia at gcc dot gnu dot org
2007-10-05 21:46 ` pinskia at gcc dot gnu dot org
2007-10-05 22:06 ` j dot m dot taylor at dur dot ac dot uk

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).