public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
@ 2006-01-09  5:36 ` hp at gcc dot gnu dot org
  2006-01-09  5:43 ` hp at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-09  5:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

hp at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-09 05:36:35
               date|                            |


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



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

* [Bug target/25718]  New: invalid assembly for unsigned-minimum expressions.
@ 2006-01-09  5:36 hp at gcc dot gnu dot org
  2006-01-09  5:36 ` [Bug target/25718] " hp at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-09  5:36 UTC (permalink / raw)
  To: gcc-bugs

For this code:
unsigned foo(unsigned a)
{
  unsigned l;
  l = (a >= (~0u - 512) ? (~0u - 512) : a);
  return l;
}

At any optimization level, including -O0, -O1 and -O2, you get
(at varying lines, of course):
x.s: Assembler messages:
x.s:14: Error: Immediate value not in 8 bit range: -513

The offending asm is:
        bound.b -513,$r9

where the -513 operand is clearly not in the range (signed+unsigned) -128..255.
I can trace this back to (a modified version of) gcc-3.2.


-- 
           Summary: invalid assembly for unsigned-minimum expressions.
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: hp at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
GCC target triplet: cris-*-*


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
  2006-01-09  5:36 ` [Bug target/25718] " hp at gcc dot gnu dot org
@ 2006-01-09  5:43 ` hp at gcc dot gnu dot org
  2006-01-09  5:43 ` hp at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-09  5:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hp at gcc dot gnu dot org  2006-01-09 05:43 -------
Forgot to mention that the revision where I repeated this was
LAST_UPDATED "Thu Jan  5 03:26:35 UTC 2006 (revision 109371M)".


-- 


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
  2006-01-09  5:36 ` [Bug target/25718] " hp at gcc dot gnu dot org
  2006-01-09  5:43 ` hp at gcc dot gnu dot org
@ 2006-01-09  5:43 ` hp at gcc dot gnu dot org
  2006-01-10 18:12 ` hp at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-09  5:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

hp at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-01-09 05:36:35         |2006-01-09 05:43:18
               date|                            |


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-09  5:43 ` hp at gcc dot gnu dot org
@ 2006-01-10 18:12 ` hp at gcc dot gnu dot org
  2006-01-10 18:13 ` hp at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-10 18:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hp at gcc dot gnu dot org  2006-01-10 18:12 -------
Subject: Bug 25718

Author: hp
Date: Tue Jan 10 18:12:21 2006
New Revision: 109547

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109547
Log:
        PR target/25718
        * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
        for a negative bound.

Modified:
    trunk/gcc/ChangeLog


-- 


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-01-10 18:12 ` hp at gcc dot gnu dot org
@ 2006-01-10 18:13 ` hp at gcc dot gnu dot org
  2006-01-10 18:14 ` hp at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-10 18:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hp at gcc dot gnu dot org  2006-01-10 18:13 -------
Subject: Bug 25718

Author: hp
Date: Tue Jan 10 18:13:16 2006
New Revision: 109548

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109548
Log:
        PR target/25718
        * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
        for a negative bound.

Modified:
    trunk/gcc/config/cris/cris.md


-- 


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-01-10 18:13 ` hp at gcc dot gnu dot org
@ 2006-01-10 18:14 ` hp at gcc dot gnu dot org
  2006-01-10 19:01 ` hp at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-10 18:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hp at gcc dot gnu dot org  2006-01-10 18:14 -------
Subject: Bug 25718

Author: hp
Date: Tue Jan 10 18:14:42 2006
New Revision: 109549

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109549
Log:
        PR target/25718
        * gcc.dg/torture/pr25718-1.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr25718-1.c
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-01-10 18:14 ` hp at gcc dot gnu dot org
@ 2006-01-10 19:01 ` hp at gcc dot gnu dot org
  2006-01-28 23:00 ` hp at gcc dot gnu dot org
  2006-01-28 23:01 ` hp at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-10 19:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hp at gcc dot gnu dot org  2006-01-10 19:01 -------
Fixed in main trunk; 4.1 and 4.0 pending.


-- 

hp at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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



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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-01-10 19:01 ` hp at gcc dot gnu dot org
@ 2006-01-28 23:00 ` hp at gcc dot gnu dot org
  2006-01-28 23:01 ` hp at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-28 23:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hp at gcc dot gnu dot org  2006-01-28 23:00 -------
Subject: Bug 25718

Author: hp
Date: Sat Jan 28 23:00:24 2006
New Revision: 110344

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110344
Log:
        PR target/25718
        * gcc.dg/torture/pr25718-1.c: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/torture/pr25718-1.c
Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/25718] invalid assembly for unsigned-minimum expressions.
  2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-01-28 23:00 ` hp at gcc dot gnu dot org
@ 2006-01-28 23:01 ` hp at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-01-28 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hp at gcc dot gnu dot org  2006-01-28 23:01 -------
Subject: Bug 25718

Author: hp
Date: Sat Jan 28 23:01:20 2006
New Revision: 110345

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110345
Log:
        PR target/25718
        * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
        for a negative bound.

Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/config/cris/cris.md


-- 


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


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

end of thread, other threads:[~2006-01-28 23:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-09  5:36 [Bug target/25718] New: invalid assembly for unsigned-minimum expressions hp at gcc dot gnu dot org
2006-01-09  5:36 ` [Bug target/25718] " hp at gcc dot gnu dot org
2006-01-09  5:43 ` hp at gcc dot gnu dot org
2006-01-09  5:43 ` hp at gcc dot gnu dot org
2006-01-10 18:12 ` hp at gcc dot gnu dot org
2006-01-10 18:13 ` hp at gcc dot gnu dot org
2006-01-10 18:14 ` hp at gcc dot gnu dot org
2006-01-10 19:01 ` hp at gcc dot gnu dot org
2006-01-28 23:00 ` hp at gcc dot gnu dot org
2006-01-28 23:01 ` hp at gcc dot gnu dot org

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).