public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/57503] New: [4.7/4.8 Regression] Expand uses wrong multiply routine
@ 2013-06-02  8:54 gjl at gcc dot gnu.org
  2013-06-02  9:00 ` [Bug middle-end/57503] " gjl at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: gjl at gcc dot gnu.org @ 2013-06-02  8:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57503
           Summary: [4.7/4.8 Regression] Expand uses wrong multiply
                    routine
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
            Target: avr

Created attachment 30241
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30241&action=edit
cecky.c

== Test case ==

#include <stdlib.h>

long __attribute__((__noinline__))
rot (unsigned char v)
{
    unsigned vs = v * 255;
    return (long) vs * 254;
}

int main (void)
{
    long r = rot (129);

    if (r != 8355330)
        abort();
    exit (0);
}

This program hits abort if compiled with 4.7.2 or 4.8.0.

== Command line ==

avr-gcc -mmcu=atmega168 cecky.c -Os -save-temps -dp -funsigned-char -o
cecky.elf -fdump-rtl-expand-details

== Configure == 

Configured with: ../../gcc.gnu.org/gcc-4_7-branch/configure --target=avr
--prefix=/local/gnu/install/gcc-4.7 --enable-languages=c,c++ --disable-nls
--disable-shared --with-dwarf2 --with-avrlibc=yes


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

end of thread, other threads:[~2022-01-09  0:57 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-02  8:54 [Bug middle-end/57503] New: [4.7/4.8 Regression] Expand uses wrong multiply routine gjl at gcc dot gnu.org
2013-06-02  9:00 ` [Bug middle-end/57503] " gjl at gcc dot gnu.org
2013-06-02  9:00 ` gjl at gcc dot gnu.org
2013-06-02  9:02 ` gjl at gcc dot gnu.org
2013-06-02 15:50 ` pinskia at gcc dot gnu.org
2013-06-02 17:34 ` gjl at gcc dot gnu.org
2013-06-03  8:43 ` rguenth at gcc dot gnu.org
2013-09-09  8:14 ` rguenth at gcc dot gnu.org
2013-10-07  9:19 ` gjl at gcc dot gnu.org
2013-10-07 10:18 ` gjl at gcc dot gnu.org
2013-11-22 10:48 ` [Bug middle-end/57503] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2014-06-12 13:49 ` [Bug middle-end/57503] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:33 ` [Bug middle-end/57503] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:26 ` [Bug middle-end/57503] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:01 ` [Bug middle-end/57503] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:31 ` jakub at gcc dot gnu.org
2022-01-09  0:57 ` [Bug tree-optimization/57503] Missing warning for signed overflow pinskia at gcc dot gnu.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).