This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2007 21:46:02 -0000
- Subject: [Bug target/33671] incorrect vector codegen on PPU at O3 level optimization
- References: <bug-33671-15190@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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