This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/59968] Unused BT patterns


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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |areg.melikadamyan at gmail dot com
                   |                            |, kirill.yukhin at intel dot com

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
For

int bar1;
void
__attribute__((noinline))
foo1 (int y)
{
  bar1 |= 1 << y;
}

we generate:

    movl    $1, %eax
    movl    %edi, %ecx
    sall    %cl, %eax
    orl    %eax, bar1(%rip)
    ret

I am expecting:

    bts     %edi, bar1(%rip)
    ret


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]