[Bug middle-end/102294] memset expansion is sometimes slow for small sizes

2021-09-12 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #10 from Hongtao.liu --- (In reply to Bart Van Assche from comment #9) > Hmm ... isn't movups a floating-point instruction? I want to avoid floating > point instructions since my understanding is that it is not allowed to use >

[Bug middle-end/102294] memset expansion is sometimes slow for small sizes

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #9 from Bart Van Assche --- Hmm ... isn't movups a floating-point instruction? I want to avoid floating point instructions since my understanding is that it is not allowed to use these in kernel code. See e.g.

[Bug middle-end/102294] memset expansion is sometimes slow for small sizes

2021-09-12 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 Hongtao.liu changed: What|Removed |Added CC||crazylht at gmail dot com --- Comment #8

[Bug middle-end/102294] memset expansion is sometimes slow for small sizes

2021-09-12 Thread bart.vanassche at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102294 --- Comment #7 from Bart Van Assche --- Initializing small data structures via structure assignment is a common approach in the Linux kernel. This is the code gcc generates with the no-sse option applied: (gdb) disas bio_init3 Dump of