Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2017-01-11 Thread Maciej W. Rozycki
On Fri, 23 Dec 2016, Yunqiang Su wrote: > > 3, kernel: the emulation when a float exception taken. > > The big problem is that Loongson use the same encode for (unfused) > madd.fmt to (fused) madd.fmt. We cannot trap this in kernel. Why is that a problem? Just add a setting like

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-24 Thread Yunqiang Su
> 在 2016年12月22日,23:31,Richard Sandiford 写道: > > Matthew Fortune writes: >> Sandra Loosemore writes: >>> On 12/21/2016 11:54 AM, Yunqiang Su wrote: By this patch, I add a build-time option `

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Yunqiang Su
> 在 2016年12月23日,10:47,Paul Hua 写道: > > On aarch64 target the result are 1.332268e-17. > On x86 with fma target the result are also 1.332268e-17. > > so, I don't think the Loongson's madd.fmt/msub.fmt is incorrect. OMG. Will this behavior make some app wrong working

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Paul Hua
On aarch64 target the result are 1.332268e-17. On x86 with fma target the result are also 1.332268e-17. so, I don't think the Loongson's madd.fmt/msub.fmt is incorrect. We should do something for usage of fused madd, the all things has been tested an fedora21 remix for loongson(1). 1, gcc:add

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Yunqiang Su
> 在 2016年12月23日,00:18,Richard Sandiford 写道: > > Yunqiang Su writes: >>> 在 2016年12月22日,23:48,Yunqiang Su 写道: >>> 在 2016年12月22日,23:31,Richard Sandiford 写道:

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Richard Sandiford
Yunqiang Su writes: >> 在 2016年12月22日,23:48,Yunqiang Su 写道: >> >>> >>> 在 2016年12月22日,23:31,Richard Sandiford >>> 写道: >>> >>> Matthew Fortune writes: Sandra Loosemore

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Yunqiang Su
> 在 2016年12月22日,23:48,Yunqiang Su 写道: > >> >> 在 2016年12月22日,23:31,Richard Sandiford 写道: >> >> Matthew Fortune writes: >>> Sandra Loosemore writes: On 12/21/2016 11:54 AM, Yunqiang

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Yunqiang Su
> 在 2016年12月22日,23:31,Richard Sandiford 写道: > > Matthew Fortune writes: >> Sandra Loosemore writes: >>> On 12/21/2016 11:54 AM, Yunqiang Su wrote: By this patch, I add a build-time option `

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-22 Thread Richard Sandiford
Matthew Fortune writes: > Sandra Loosemore writes: >> On 12/21/2016 11:54 AM, Yunqiang Su wrote: >> > By this patch, I add a build-time option ` --with-unfused-madd4=yes/no', >> > and runtime option -m(no-)unfused-madd4, >> > to disable

RE: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-21 Thread Matthew Fortune
Sandra Loosemore writes: > On 12/21/2016 11:54 AM, Yunqiang Su wrote: > > By this patch, I add a build-time option ` --with-unfused-madd4=yes/no', > > and runtime option -m(no-)unfused-madd4, > > to disable generate madd.fmt instructions. > > Your patch also needs a

Re: [Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-21 Thread Sandra Loosemore
On 12/21/2016 11:54 AM, Yunqiang Su wrote: By this patch, I add a build-time option ` --with-unfused-madd4=yes/no’, and runtime option -m(no-)unfused-madd4, to disable generate madd.fmt instructions. Your patch also needs a documentation change so that the new command-line option is listed in

[Patch ,gcc/MIPS] add an build-time/runtime option to disable madd.fmt

2016-12-21 Thread Yunqiang Su
By this patch, I add a build-time option ` --with-unfused-madd4=yes/no’, and runtime option -m(no-)unfused-madd4, to disable generate madd.fmt instructions. These 2 options is needed due to madd.fmt/msub.fmt on Loongson are broken, which may generate wrong calculator result. diff --git