[Bug tree-optimization/106420] Missed optimization for comparisons

2022-07-24 Thread zero at smallinteger dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106420 --- Comment #4 from zero at smallinteger dot com --- Sorry about that :/.

[Bug target/106420] Missed optimization for comparisons

2022-07-23 Thread zero at smallinteger dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106420 --- Comment #1 from zero at smallinteger dot com --- (it should be possible to massage the output further to use test and setne, which ICC prefers to e.g. cmp and seta)

[Bug target/106420] New: Missed optimization for comparisons

2022-07-23 Thread zero at smallinteger dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 53339 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53339&action=edit Sample code When comparing different variables to the same constants, in som

[Bug target/105778] New: Rotate by register --- unnecessary AND instruction

2022-05-30 Thread zero at smallinteger dot com via Gcc-bugs
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 53053 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53053&action=edit Sample code With -O2, some x86 shift-by-register instructi

[Bug target/100391] New: 128 bit arithmetic --- many unnecessary instructions when extracting smaller parts

2021-05-03 Thread zero at smallinteger dot com via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 50738 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50738&action=edit Samp

[Bug target/100331] New: 128 bit arithmetic --- suboptimal after shifting when referencing other variables

2021-04-29 Thread zero at smallinteger dot com via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 50706 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50706&action=edit Reproducti

[Bug target/95861] New: popcnt --- unnecessary leading xor instruction

2020-06-24 Thread zero at smallinteger dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 48778 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48778&action=edit sample code Consider the attached code, compiled with -O3 -mpopcn

[Bug target/95834] New: x86 immediates --- some redundant

2020-06-23 Thread zero at smallinteger dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 48774 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48774&action=edit sample code In some cases, literals could be synthesized with simple instr

[Bug target/95798] Initialization code --- suboptimal

2020-06-21 Thread zero at smallinteger dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95798 --- Comment #1 from zero at smallinteger dot com --- (note that changing the array declaration to be initialized does not result in the individual array writes being optimized away, as one might expect at first glance)

[Bug target/95798] New: Initialization code --- suboptimal

2020-06-21 Thread zero at smallinteger dot com
Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 48764 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48764&action=edit sample code This is similar to (but not the same as) bug 87223 for structs.

[Bug target/95566] New: x86 instruction selection --- some REX prefixes unnecessary

2020-06-07 Thread zero at smallinteger dot com
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zero at smallinteger dot com Target Milestone: --- Created attachment 48696 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48696&action=edit sample code Consider the code a