search for: pr1631

Displaying 2 results from an estimated 2 matches for "pr1631".

Did you mean: pr16431
2007 Nov 22
0
[LLVMdev] llvm-gcc cannot emit @llvm.pow.* ?
...y it should turn gcc's BUILT_IN_POW into llvm.pow.*. That said, as far as I can see the C front-end doesn't generate BUILT_IN_POW at all, though the fortran and java front-ends do. It is true that the gcc constant folder can fold x*x to pow(x, 2.0) but this has been turned off in llvm-gcc (PR1631); in any case this is not what you are looking for. So it seems to me that the first question to answer is: why doesn't gcc itself use the gcc pow builtin for C? > Also, don't forget that the llvm intrinsics > > don't set errno, so using them is only valid on systems/for lang...
2007 Nov 22
2
[LLVMdev] llvm-gcc cannot emit @llvm.pow.* ?
2007/11/22, Duncan Sands <baldrick at free.fr>: > > Hi, > > > Current llvm-gcc cannot emit llvm intrinsic function like llvm.pow.* and > > llvm.sin.* > > For example: > > > > double foo(double x, double y) { > > return pow(x,y); > > } > > > > will compiled into ll: > > > > define double @foo(double %x, double %y) {