Re: Hoist across FP control register setting

2013-02-06 Thread Joseph S. Myers
On Wed, 6 Feb 2013, Ye Joey wrote: > Following case attempts to set floating point control register and > execute floating point operation afterward. However, it doesn't works > as expected with -Os, as GCC hoists multiply operation beyond FP > control register setting. Recent discussions started

Re: Hoist across FP control register setting

2013-02-06 Thread Richard Earnshaw
On 06/02/13 08:38, Ye Joey wrote: Following case attempts to set floating point control register and execute floating point operation afterward. However, it doesn't works as expected with -Os, as GCC hoists multiply operation beyond FP control register setting. As there is no register dependence

Hoist across FP control register setting

2013-02-06 Thread Ye Joey
Following case attempts to set floating point control register and execute floating point operation afterward. However, it doesn't works as expected with -Os, as GCC hoists multiply operation beyond FP control register setting. As there is no register dependence between __set_FPSCR and multiply, h