This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50281] result registers are overwritten giving incorrect result
- From: "NickParker at Eaton dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Sep 2011 21:22:30 +0000
- Subject: [Bug target/50281] result registers are overwritten giving incorrect result
- Auto-submitted: auto-generated
- References: <bug-50281-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50281
--- Comment #10 from NickParker at Eaton dot com 2011-09-04 21:22:30 UTC ---
Richard, 'bogus' isnt a technical term I'm familiar with - I'm not entirely
sure
what you mean, however, I have found the problem with my ASM code.
If you'll notice I am adding partial products to r4,r5,r6,r7 without them ever
being initialised. What was missing was initialistion of the temporary result
registers r4,r5,r6,r7 where I am generating my result.
After adding these initialisatons, and also a few "movw's" for a few less
cycles in a couple of places, the code now works correctly.
Thanks for your input and sorry that I made a mess of reporting this bug, which
was nothing to do with the compiler.
Thanks, Nick.