[Bug tree-optimization/78821] GCC7: Copying whole 32 bits structure field by field not optimised into copying whole 32 bits at once
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 20 16:03:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78821
--- Comment #30 from Uroš Bizjak <ubizjak at gmail dot com> ---
Another unhandled case:
--cut here--
typedef __SIZE_TYPE__ size_t;
void baz (char *buf, size_t base, unsigned int data)
{
buf[base] = data;
buf[base+1] = data >> 8;
}
--cut here--
compiles to:
movb %dl, (%rdi,%rsi)
movb %dh, 1(%rdi,%rsi)
ret
More information about the Gcc-bugs
mailing list