[Bug middle-end/108441] [12.2] Maybe missed optimization: loading an 16-bit integer value from .rodata instead of an immediate store

570070308 at qq dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 18 09:38:01 GMT 2023


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

--- Comment #1 from 。 <570070308 at qq dot com> ---
When compiling with `-fno-tree-slp-vectorize`, it seems to be better:
```
kkk:
    movl    $16, %eax
    movw    %ax, ldap(%rip)
    ret
```


More information about the Gcc-bugs mailing list