This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/54524] Spurious add on sum of bitshifts
- From: "jan dot smets at alcatel-lucent dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 08 Sep 2012 13:18:48 +0000
- Subject: [Bug rtl-optimization/54524] Spurious add on sum of bitshifts
- Auto-submitted: auto-generated
- References: <bug-54524-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54524
--- Comment #1 from Jan Smets <jan.smets@alcatel-lucent.com> 2012-09-08 13:18:48 UTC ---
Created attachment 28152
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28152
testcase
The result is correct with -fno-forward-propagate
tUint64 is unsigned long long I meant.
An even more reduced testcase is attached. Compile it with a MIPS cross
compiler:
./gcc -nostdinc -funsigned-char -fno-builtin -G 0 -mno-gpopt -msoft-float
-fno-merge-constants -pipe -Wall -O2 -fno-optimize-sibling-calls
-fno-partial-inlining -fno-reorder-blocks -fno-strict-aliasing -c /tmp/test.c
-o test -mabi=32