Re: [Patch] PR56064: Fold VIEW_CONVERT_EXPR with FIXED_CST, Take #2

2013-01-30 Thread Richard Biener
On Tue, Jan 29, 2013 at 9:00 PM, Georg-Johann Lay wrote: > Richard Biener wrote: >> Georg-Johann Lay wrote: >>> This is tentative patch as discussed in >>> >>> http://gcc.gnu.org/ml/gcc/2013-01/msg00187.html >>> >>> fold-const.c gets 2 new function native_encode_fixed and >>> native_interpret_fixe

Re: [Patch] PR56064: Fold VIEW_CONVERT_EXPR with FIXED_CST, Take #2

2013-01-29 Thread Georg-Johann Lay
Richard Biener wrote: > Georg-Johann Lay wrote: >> This is tentative patch as discussed in >> >> http://gcc.gnu.org/ml/gcc/2013-01/msg00187.html >> >> fold-const.c gets 2 new function native_encode_fixed and >> native_interpret_fixed. Code common with the integer case is factored out >> and >> mo

Re: [Patch] PR56064: Fold VIEW_CONVERT_EXPR with FIXED_CST

2013-01-29 Thread Richard Biener
On Mon, Jan 21, 2013 at 2:28 PM, Georg-Johann Lay wrote: > This is tentative patch as discussed in > > http://gcc.gnu.org/ml/gcc/2013-01/msg00187.html > > fold-const.c gets 2 new function native_encode_fixed and > native_interpret_fixed. Code common with the integer case is factored out and > mov

Ping: [Patch] PR56064: Fold VIEW_CONVERT_EXPR with FIXED_CST

2013-01-28 Thread Georg-Johann Lay
Ping #1 for http://gcc.gnu.org/ml/gcc-patches/2013-01/msg01053.html Release Manager approval is here: http://gcc.gnu.org/ml/gcc/2013-01/msg00222.html This is tentative patch as discussed in http://gcc.gnu.org/ml/gcc/2013-01/msg00187.html fold-const.c gets 2 new function native_encode_fixed

[Patch] PR56064: Fold VIEW_CONVERT_EXPR with FIXED_CST

2013-01-21 Thread Georg-Johann Lay
This is tentative patch as discussed in http://gcc.gnu.org/ml/gcc/2013-01/msg00187.html fold-const.c gets 2 new function native_encode_fixed and native_interpret_fixed. Code common with the integer case is factored out and moved to the new constructor-like function double_int::from_buffer. The