This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52760] Revision 185599 causes miscompare on sphinx3
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 09:33:31 +0000
- Subject: [Bug tree-optimization/52760] Revision 185599 causes miscompare on sphinx3
- Auto-submitted: auto-generated
- References: <bug-52760-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52760
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-29 09:33:31 UTC ---
Created attachment 27028
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27028
gcc48-pr52760.patch
Untested fix. Using VCE here is undesriable, on big-endian it turns the shift
count 8 into 0 (because vector element type is unsigned short, not int as the
type of op). Generally, the type of the rhs2 of a shift/rotate is unrelated to
the lhs/rhs1 types.