And sorry, my platform is MSVC 2010, x86, debug, windows 7, LLVM 3.0.<br><br><div class="gmail_quote">在 2012年3月31日 上午10:50,空明流转 <span dir="ltr"><<a href="mailto:wuye9036@gmail.com">wuye9036@gmail.com</a>></span>写道:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I found that llvm.exp.f32 didn't work but sqrt works well.<br><br>I implemented a function like<br><br>define inlinehint float "my_exp"(float %.value) {<br>
.body:<br>  %0 = call float @llvm.exp.f32(float %.value)<br>
  ret float %0<br>}<br><br>declare float @llvm.exp.f32(float) nounwind readonly<br><br>But it generates following ASM:<br><br>00280072  movups      xmm0,xmmword ptr [esp+8]  <br>00280077  movss       dword ptr [esp],xmm0  <br>

0028007C  call        00000000  <br>00280081  pop         eax  <br><br>As you seen, line 0028007C will call CRT exp I think, but it calls NULL pointer.<br><br>But sqrt is right.<br><br>005000D1  movss       xmm0,dword ptr [esp+0Ch]  <br>

005000D7  movss       dword ptr [esp],xmm0  <br>005000DC  call           00490018  <br>005000E1  mov           eax,dword ptr [esp+8]   <br><br>Could you give me some help ? Thanks !<span class="HOEnZb"><font color="#888888"><br clear="all">
<br>-- <br>Ye Wu<br>CELL: <a href="tel:%2B86%20159%209957%200103" value="+8615999570103" target="_blank">+86 159 9957 0103</a><br>

</font></span></blockquote></div><br><br clear="all"><br>-- <br>Ye Wu<br>CELL: +86 159 9957 0103<br>