Re: [PATCH] i386: do not use SImode mul-highpart on 64-bit

2018-08-09 Thread Uros Bizjak
On Thu, Aug 9, 2018 at 5:00 PM, Alexander Monakov wrote: > Hello, > > on x86-64, 32-bit division by constants uses mulsi3_highpart pattern that > turns into 'mull ' instruction with source implicitly in eax and > result in edx:eax. However, using 64-bit multiplication with zero-extended > source

[PATCH] i386: do not use SImode mul-highpart on 64-bit

2018-08-09 Thread Alexander Monakov
Hello, on x86-64, 32-bit division by constants uses mulsi3_highpart pattern that turns into 'mull ' instruction with source implicitly in eax and result in edx:eax. However, using 64-bit multiplication with zero-extended source would be preferable, as the imulq instruction accepts the magic multi