Re: [PATCH][ARM] Optimize copysign/copysignf for soft-float using BFI

2014-12-01 Thread Christophe Lyon
On 27 November 2014 at 11:35, Ramana Radhakrishnan ramana@googlemail.com wrote: On Wed, Oct 29, 2014 at 10:20 AM, Jiong Wang jiong.w...@arm.com wrote: On 26/08/14 13:36, Richard Earnshaw wrote: On 29/07/14 15:49, Jiong Wang wrote: test done === no regression on the full toolchain test

Re: [PATCH][ARM] Optimize copysign/copysignf for soft-float using BFI

2014-12-01 Thread Jiong Wang
On 01/12/14 15:33, Christophe Lyon wrote: On 27 November 2014 at 11:35, Ramana Radhakrishnan ramana@googlemail.com wrote: On Wed, Oct 29, 2014 at 10:20 AM, Jiong Wang jiong.w...@arm.com wrote: On 26/08/14 13:36, Richard Earnshaw wrote: On 29/07/14 15:49, Jiong Wang wrote: test done ===

Re: [PATCH][ARM] Optimize copysign/copysignf for soft-float using BFI

2014-11-27 Thread Ramana Radhakrishnan
On Wed, Oct 29, 2014 at 10:20 AM, Jiong Wang jiong.w...@arm.com wrote: On 26/08/14 13:36, Richard Earnshaw wrote: On 29/07/14 15:49, Jiong Wang wrote: test done === no regression on the full toolchain test on arm-none-eabi. ok to install? Hmm, I think this is wrong for DF mode. The

Re: [PATCH][ARM] Optimize copysign/copysignf for soft-float using BFI

2014-10-29 Thread Jiong Wang
On 26/08/14 13:36, Richard Earnshaw wrote: On 29/07/14 15:49, Jiong Wang wrote: test done === no regression on the full toolchain test on arm-none-eabi. ok to install? Hmm, I think this is wrong for DF mode. The principle the patch works on is by tying the output to the value containing

Re: [PATCH][ARM] Optimize copysign/copysignf for soft-float using BFI

2014-08-26 Thread Richard Earnshaw
On 29/07/14 15:49, Jiong Wang wrote: this patch optimize copysign/copysignf for -mfloat-abi=soft on arm when BFI instruction is available. before this patch, we do copysign (a, b) by three steps: * fetch the sign bit of b to A * fetch all non-sign bits of a to B * or A and B

[PATCH][ARM] Optimize copysign/copysignf for soft-float using BFI

2014-07-29 Thread Jiong Wang
this patch optimize copysign/copysignf for -mfloat-abi=soft on arm when BFI instruction is available. before this patch, we do copysign (a, b) by three steps: * fetch the sign bit of b to A * fetch all non-sign bits of a to B * or A and B while these three steps could be finished by one