[Bug rtl-optimization/83068] New: Suboptimal code generated with -m32 using MMX reg

2017-11-20 Thread bradfier at fstab dot me
: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bradfier at fstab dot me Target Milestone: --- Follow up from ML post here: [1] I tried compiling the following simple function with different -march flags in -m32 mode: > uint64_t sum(uint64_t a, uint64_

[Bug rtl-optimization/83068] Suboptimal code generated with -m32 using MMX reg

2017-11-20 Thread bradfier at fstab dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83068 --- Comment #1 from Richard Bradfield --- And as usual I forget to mention these things: I am compiling everything using gcc trunk, at commit r254929 from Sun Nov 19 This behaviour is not present in GCC 7.2

[Bug target/83068] Suboptimal code generated with -m32 using MMX reg

2017-11-21 Thread bradfier at fstab dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83068 --- Comment #3 from Richard Bradfield --- I bisected forward from a few months ago. The proximate cause is commit r253934, specifically the reduction in cost of the SSE Load & Store ops, and the costs of moving SSE to and from integer regs. The