public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/45373] V850 increment loops compile into incorrect assembly
       [not found] <bug-45373-4@http.gcc.gnu.org/bugzilla/>
@ 2011-04-14  3:30 ` trap15 at raidenii dot net
  2011-05-09  1:31 ` trap15 at raidenii dot net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2011-04-14  3:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373

Alex Marshall <trap15 at raidenii dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Alex Marshall <trap15 at raidenii dot net> 2011-04-14 03:30:09 UTC ---
I have just come back to this, and it appears that the correct code was being
generated in the first place. I must have misread the datasheet or something.
In any case, this is now resolved.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/45373] V850 increment loops compile into incorrect assembly
       [not found] <bug-45373-4@http.gcc.gnu.org/bugzilla/>
  2011-04-14  3:30 ` [Bug target/45373] V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
@ 2011-05-09  1:31 ` trap15 at raidenii dot net
  2011-05-09  2:23 ` [Bug target/45373] V850 branches and compares are invalid trap15 at raidenii dot net
  2011-05-09  2:36 ` trap15 at raidenii dot net
  3 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2011-05-09  1:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373

Alex Marshall <trap15 at raidenii dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |

--- Comment #5 from Alex Marshall <trap15 at raidenii dot net> 2011-05-09 01:22:27 UTC ---
Sorry for bumping this bug yet again, but it appears as if it really is
generating incorrect code. After looking at several other code which has been
verified to run, and reviewing the datasheet heavily, it appears GCC is truly
generating incorrect code. For all branches, the direction of the compare is
incorrect; e.g., BGE should be BLE, BNL should be BNH, BLT should be BGT.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/45373] V850 branches and compares are invalid
       [not found] <bug-45373-4@http.gcc.gnu.org/bugzilla/>
  2011-04-14  3:30 ` [Bug target/45373] V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
  2011-05-09  1:31 ` trap15 at raidenii dot net
@ 2011-05-09  2:23 ` trap15 at raidenii dot net
  2011-05-09  2:36 ` trap15 at raidenii dot net
  3 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2011-05-09  2:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373

Alex Marshall <trap15 at raidenii dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/45373] V850 branches and compares are invalid
       [not found] <bug-45373-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-05-09  2:23 ` [Bug target/45373] V850 branches and compares are invalid trap15 at raidenii dot net
@ 2011-05-09  2:36 ` trap15 at raidenii dot net
  3 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2011-05-09  2:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373

Alex Marshall <trap15 at raidenii dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Alex Marshall <trap15 at raidenii dot net> 2011-05-09 02:31:55 UTC ---
This bug appears to have been fixed somewhere between 4.4.4 and 4.5.3, so this
bug can be closed.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/45373] V850 increment loops compile into incorrect assembly
  2010-08-21 23:43 [Bug target/45373] New: V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
  2010-08-21 23:45 ` [Bug target/45373] " trap15 at raidenii dot net
  2010-08-21 23:47 ` trap15 at raidenii dot net
@ 2010-08-22  2:47 ` trap15 at raidenii dot net
  2 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2010-08-22  2:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from trap15 at raidenii dot net  2010-08-22 02:47 -------
This actually appears to be the same problem when comparing in the other
direction as well. If I change the source from i < 8 to i > 8, then it uses
``cmp 8, iter; bgt 0xf00'', which is also wrong, since we want 8 < iterator,
not 8 > iterator.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/45373] V850 increment loops compile into incorrect assembly
  2010-08-21 23:43 [Bug target/45373] New: V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
  2010-08-21 23:45 ` [Bug target/45373] " trap15 at raidenii dot net
@ 2010-08-21 23:47 ` trap15 at raidenii dot net
  2010-08-22  2:47 ` trap15 at raidenii dot net
  2 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2010-08-21 23:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from trap15 at raidenii dot net  2010-08-21 23:47 -------
I tested both 4.4.4 and 4.4.0 and they both generate the wrong code.


-- 

trap15 at raidenii dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |segher at gcc dot gnu dot
                   |                            |org
           Keywords|                            |wrong-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/45373] V850 increment loops compile into incorrect assembly
  2010-08-21 23:43 [Bug target/45373] New: V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
@ 2010-08-21 23:45 ` trap15 at raidenii dot net
  2010-08-21 23:47 ` trap15 at raidenii dot net
  2010-08-22  2:47 ` trap15 at raidenii dot net
  2 siblings, 0 replies; 7+ messages in thread
From: trap15 at raidenii dot net @ 2010-08-21 23:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from trap15 at raidenii dot net  2010-08-21 23:45 -------
Created an attachment (id=21540)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21540&action=view)
the .i file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-09  2:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45373-4@http.gcc.gnu.org/bugzilla/>
2011-04-14  3:30 ` [Bug target/45373] V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
2011-05-09  1:31 ` trap15 at raidenii dot net
2011-05-09  2:23 ` [Bug target/45373] V850 branches and compares are invalid trap15 at raidenii dot net
2011-05-09  2:36 ` trap15 at raidenii dot net
2010-08-21 23:43 [Bug target/45373] New: V850 increment loops compile into incorrect assembly trap15 at raidenii dot net
2010-08-21 23:45 ` [Bug target/45373] " trap15 at raidenii dot net
2010-08-21 23:47 ` trap15 at raidenii dot net
2010-08-22  2:47 ` trap15 at raidenii dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).