Re: Fwd: [x86, PATCH] More effecient code for short unsigned conversion to float-point.

2013-08-12 Thread Uros Bizjak
On Mon, Aug 12, 2013 at 2:31 PM, Kirill Yukhin wrote: > > part of the thread was accidentally removed from gcc-patches. > > I've comitted Yuri's patch into ML: > http://gcc.gnu.org/ml/gcc-cvs/2013-08/msg00272.html > > As far as discussion was out of ML - feel free to object. I have changed X87MO

Re: Fwd: [x86, PATCH] More effecient code for short unsigned conversion to float-point.

2013-08-12 Thread Kirill Yukhin
--- Forwarded message -- > From: Uros Bizjak > Date: 2013/8/7 > Subject: Re: [x86, PATCH] More effecient code for short unsigned > conversion to float-point. > To: Yuri Rumyantsev > > > Ah, OK, I see where I did a thinko. > > The patch looks OK, then. > > Uros. >

Re: [x86, PATCH] More effecient code for short unsigned conversion to float-point.

2013-08-06 Thread Richard Henderson
On 08/06/2013 04:33 AM, Yuri Rumyantsev wrote: > -(define_expand "floatunssi2" > +(define_expand "floatuns2" >[(parallel > [(set (match_operand:X87MODEF 0 "register_operand") > (unsigned_float:X87MODEF > - (match_operand:SI 1 "nonimmediate_operand"))) > + (match

Re: [x86, PATCH] More effecient code for short unsigned conversion to float-point.

2013-08-06 Thread Andreas Schwab
Yuri Rumyantsev writes: > * config/i386/i386.md (floatunssi2 expand): Add support > for QI/HImode operand to produce more effecient code for s/effecient/efficient/ Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "A

[x86, PATCH] More effecient code for short unsigned conversion to float-point.

2013-08-06 Thread Yuri Rumyantsev
Hi All, Here is simple fix which produces more optimal code unsigned char(short) to float(double) with direct rtl-generation. Bootstrapping and regression testing were successful for x86-64. Is it OK for trunk? ChangeLog: 2013-08-06 Yuri Rumyantsev * config/i386/i386.md (floatunssi2 expand