[Bug target/33671] incorrect vector codegen on PPU at O3 level optimization

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 5 21:46:00 GMT 2007



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



More information about the Gcc-bugs mailing list