public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66749] New: [4.9/5/6] gcc.target/i386/addr-sel-1.c fails to merge array index into one instruction with -m32 -mregparm=3 or with -miamcu
@ 2015-07-03  9:09 julia.koval at intel dot com
  2015-07-03  9:17 ` [Bug target/66749] " julia.koval at intel dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: julia.koval at intel dot com @ 2015-07-03  9:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66749

            Bug ID: 66749
           Summary: [4.9/5/6] gcc.target/i386/addr-sel-1.c fails to merge
                    array index into one instruction with -m32 -mregparm=3
                    or with -miamcu
           Product: gcc
           Version: 4.9.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: julia.koval at intel dot com
  Target Milestone: ---

The test tries to generate code for:
return a[i+1] + b[i+1];

For -m32 gcc generates proper code:
movl    4(%esp), %eax
movsbl  a+1(%eax), %ecx
movsbl  b+1(%eax), %eax
addl    %ecx, %eax

However with -m32 -mregparm=3 the b value fails to be combined:
movsbl  a+1(%eax), %edx
incl    %eax
movsbl  b(%eax), %eax
addl    %edx, %eax

The error also remains with -mregparm=1/2 or with -miamcu.


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

end of thread, other threads:[~2015-07-06 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-03  9:09 [Bug target/66749] New: [4.9/5/6] gcc.target/i386/addr-sel-1.c fails to merge array index into one instruction with -m32 -mregparm=3 or with -miamcu julia.koval at intel dot com
2015-07-03  9:17 ` [Bug target/66749] " julia.koval at intel dot com
2015-07-03 12:53 ` hjl.tools at gmail dot com
2015-07-03 13:59 ` hjl.tools at gmail dot com
2015-07-06  8:24 ` julia.koval at intel dot com
2015-07-06 15:53 ` hjl.tools at gmail dot com

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