[Bug c/92436] New: SIMD integer subtract with constant always becomes add

2019-11-09 Thread zingaburga+gcc at hotmail dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zingaburga+gcc at hotmail dot com Target Milestone: --- Firstly, this isn't a bug, rather a missed optimization opportunity (I presume this is the place to post these?). With the optimizer enabled, it seems like

[Bug target/92437] New: Unnecessary register duplication of vector constant in x86

2019-11-10 Thread zingaburga+gcc at hotmail dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zingaburga+gcc at hotmail dot com Target Milestone: --- Consider the following code example: #include void fn(__m128i* in, __m128i* out) { int i=0

[Bug target/92437] Unnecessary register duplication of vector constant in x86

2019-11-10 Thread zingaburga+gcc at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92437 --- Comment #2 from zingaburga+gcc at hotmail dot com --- Thanks for the info Andrew! Changing the add to `_mm_add_epi64` does seem to eliminate all instances of the duplication.

[Bug target/114069] New: Type punning RISC-V vectors causes ICE at -O1

2024-02-22 Thread zingaburga+gcc at hotmail dot com via Gcc-bugs
: target Assignee: unassigned at gcc dot gnu.org Reporter: zingaburga+gcc at hotmail dot com Target Milestone: --- Type punning a RISC-V vector causes ICE under RV64 GCC 13.x/trunk: https://godbolt.org/z/sajcb3T7z Seems to work with -O0 instead of -O1, on GCC 13.x Code