Displaying 4 results from an estimated 4 matches for "llvm_fenv_testexcept".
2013 Apr 26
0
[LLVMdev] ConstantFoldBinaryFP and cross compilation
...case when
the following logic fails to work:
lib/Analysis/ConstantFolding.cpp
static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
double V, double W, Type *Ty) {
sys::llvm_fenv_clearexcept();
V = NativeFP(V, W);
if (sys::llvm_fenv_testexcept()) {
sys::llvm_fenv_clearexcept();
return 0;
}
..
This fragment seems to assumes that host and target behave in exact the same
way in regard to FP exception handling. In some way I understand it, but. On
some cross compilation platforms this might not be always true. In case of...
2013 Apr 26
2
[LLVMdev] ConstantFoldBinaryFP and cross compilation
...**
>
> ** **
>
> static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),*
> ***
>
> double V, double W, Type *Ty) {****
>
> sys::llvm_fenv_clearexcept();****
>
> V = NativeFP(V, W);****
>
> if (sys::llvm_fenv_testexcept()) {****
>
> sys::llvm_fenv_clearexcept();****
>
> return 0;****
>
> }****
>
> ** **
>
> ….****
>
> ** **
>
> This fragment seems to assumes that host and target behave in exact the
> same way in regard to FP exception handling. In some way I u...
2013 Apr 25
6
[LLVMdev] Proposal for new Legalization framework
On Wed, Apr 24, 2013 at 5:26 PM, Chris Lattner <clattner at apple.com> wrote:
> On Apr 24, 2013, at 5:01 PM, Dan Gohman <dan433584 at gmail.com> wrote:
> > In the spirit of the (long-term) intent to migrate away from the
> SelectionDAG framework, it is desirable to implement legalization passes as
> discrete passes. Attached is a patch which implements the beginning of
2013 Apr 26
0
[LLVMdev] ConstantFoldBinaryFP and cross compilation
...case when
the following logic fails to work:
lib/Analysis/ConstantFolding.cpp
static Constant *ConstantFoldBinaryFP(double (*NativeFP)(double, double),
double V, double W, Type *Ty) {
sys::llvm_fenv_clearexcept();
V = NativeFP(V, W);
if (sys::llvm_fenv_testexcept()) {
sys::llvm_fenv_clearexcept();
return 0;
}
..
This fragment seems to assumes that host and target behave in exact the same
way in regard to FP exception handling. In some way I understand it, but. On
some cross compilation platforms this might not be always true. In case of...