This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]