[LLVMdev] llvm-gcc cannot emit @llvm.pow.* ?

Zhou Sheng zhousheng00 at gmail.com
Wed Nov 21 19:39:35 PST 2007


Current llvm-gcc cannot emit llvm intrinsic function like llvm.pow.* and
For example:

double foo(double x, double y) {
  return pow(x,y);

will compiled into ll:

define double @foo(double %x, double %y) {
   %tmp3 = tail call double @pow( double %x, double %y )
  ret double %tmp3

This is not consistent with llvm language reference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071122/eff1d153/attachment.html>

More information about the llvm-dev mailing list