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 rtl-optimization/54524] Spurious add on sum of bitshifts


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


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