search for: __divdf3

Displaying 8 results from an estimated 8 matches for "__divdf3".

2008 Jun 23
2
[LLVMdev] Problems expanding fcmp to a libcall
...ingle i32 register class. I'm wanting all floating point operations to be lowered to library function calls. For the most part LLVM seems to get this right. For example define double @div(double %a, double %b) { %result = fdiv double %a, %b ret double %result } is expanded to a ISD::CALL of __divdf3 which is then lowered via the LowerOperation hook of my backend. However I run into problems with fcmp. With the following code: define i1 @fmp(double %a) { %result = fcmp uno double %a, 0.000000e+00 ret i1 %result } the fcmp is expanded to the a call to __unorddf2 which is then lowered via th...
2008 Jun 24
0
[LLVMdev] Problems expanding fcmp to a libcall
...all > floating point operations to be lowered to library function calls. For > the most part LLVM seems to get this right. For example > > define double @div(double %a, double %b) { > %result = fdiv double %a, %b > ret double %result > } > > is expanded to a ISD::CALL of __divdf3 which is then lowered via the > LowerOperation hook of my backend. > > However I run into problems with fcmp. With the following code: > > define i1 @fmp(double %a) { > %result = fcmp uno double %a, 0.000000e+00 > ret i1 %result > } > > the fcmp is expanded to the a ca...
2008 Jun 25
3
[LLVMdev] Problems expanding fcmp to a libcall
...ons to be lowered to library function calls. For >> the most part LLVM seems to get this right. For example >> >> define double @div(double %a, double %b) { >> %result = fdiv double %a, %b >> ret double %result >> } >> >> is expanded to a ISD::CALL of __divdf3 which is then lowered via the >> LowerOperation hook of my backend. >> >> However I run into problems with fcmp. With the following code: >> >> define i1 @fmp(double %a) { >> %result = fcmp uno double %a, 0.000000e+00 >> ret i1 %result >> } >> &...
2008 Jun 26
0
[LLVMdev] Problems expanding fcmp to a libcall
...>>> For >>> the most part LLVM seems to get this right. For example >>> >>> define double @div(double %a, double %b) { >>> %result = fdiv double %a, %b >>> ret double %result >>> } >>> >>> is expanded to a ISD::CALL of __divdf3 which is then lowered via the >>> LowerOperation hook of my backend. >>> >>> However I run into problems with fcmp. With the following code: >>> >>> define i1 @fmp(double %a) { >>> %result = fcmp uno double %a, 0.000000e+00 >>> ret i1 %...
2008 Jul 01
2
[LLVMdev] Problems expanding fcmp to a libcall
...; the most part LLVM seems to get this right. For example >>>> >>>> define double @div(double %a, double %b) { >>>> %result = fdiv double %a, %b >>>> ret double %result >>>> } >>>> >>>> is expanded to a ISD::CALL of __divdf3 which is then lowered via the >>>> LowerOperation hook of my backend. >>>> >>>> However I run into problems with fcmp. With the following code: >>>> >>>> define i1 @fmp(double %a) { >>>> %result = fcmp uno double %a, 0.000000e+...
2011 Nov 02
0
[LLVMdev] Issues in compiler-rt __truncdfsf2 and __extendsfdf2 functions?
...that an operation involving a signaling NaN should deliver a quiet NaN as its result but I don't know if conversion from float to double qualifies as an operation. So I am not sure what is the correct result here. Next to these issues the TestFloat division tests fail because the __divsf3 and __divdf3 implementations currently flush denormals to zero. So I might want to have a go at trying to implement gradual underflow with correct rounding, but I am not a floating point emulation expert so any pointers on how to do that would be appreciated! Jordy [1] http://www.jhauser.us/arithmetic/TestFlo...
2008 Jul 02
0
[LLVMdev] Problems expanding fcmp to a libcall
...o get this right. For example >>>>> >>>>> define double @div(double %a, double %b) { >>>>> %result = fdiv double %a, %b >>>>> ret double %result >>>>> } >>>>> >>>>> is expanded to a ISD::CALL of __divdf3 which is then lowered via >>>>> the >>>>> LowerOperation hook of my backend. >>>>> >>>>> However I run into problems with fcmp. With the following code: >>>>> >>>>> define i1 @fmp(double %a) { >>>&g...
2008 Jul 03
2
[LLVMdev] Problems expanding fcmp to a libcall
...e >>>>>> >>>>>> define double @div(double %a, double %b) { >>>>>> %result = fdiv double %a, %b >>>>>> ret double %result >>>>>> } >>>>>> >>>>>> is expanded to a ISD::CALL of __divdf3 which is then lowered via >>>>>> the >>>>>> LowerOperation hook of my backend. >>>>>> >>>>>> However I run into problems with fcmp. With the following code: >>>>>> >>>>>> define i1 @fmp(dou...