Re: Possible suboptimal code generated in 32-bit ABI mode

2017-11-20 Thread Richard Biener
On Sun, Nov 19, 2017 at 5:35 PM, Richard Bradfield wrote: > On Sun, Nov 19, 2017 at 04:19:45PM +, bradf...@fstab.me wrote: >> >> For reference, I am compiling everything using gcc trunk, at commit >> 254929 from Sun Nov 19, and I am benchmarking on a Skylake i7-6700K >> at 4.0GHz. > > > And so

Re: Possible suboptimal code generated in 32-bit ABI mode

2017-11-19 Thread Richard Bradfield
On Sun, Nov 19, 2017 at 04:19:45PM +, bradf...@fstab.me wrote: For reference, I am compiling everything using gcc trunk, at commit 254929 from Sun Nov 19, and I am benchmarking on a Skylake i7-6700K at 4.0GHz. And something else I should definitely have included in the first place, I cannot

Possible suboptimal code generated in 32-bit ABI mode

2017-11-19 Thread bradfirj
Hello, I was playing around with 64bit arithmetic with -m32 enabled and encountered some strange optimization in what I thought was a very simple case. My test function, which I appreciate is totally artifical, is as follows: uint64_t sum(uint64_t a, uint64_t b) { return a + b; } This is ob