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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I need some code generation help for gcc.target/i386/pr110790-2.c, I have a
patch where we now generate:
```
        movq    (%rdi,%rax,8), %rax
        shrq    %cl, %rax
        andl    $1, %eax
```

instead of previously:
```
        movq    (%rdi,%rax,8), %rax
        btq     %rsi, %rax
        setc    %al
        movzbl  %al, %eax
```

I suspect the sequence that contains shrq/and is better but I am 100% sure. We
still get btq when used with a conditional too.

Reply via email to