<span style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt"><br><font face="Arial, Verdana" size="2">Hi everyone,</font><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">I am trying to call an LLVM intrinsic (llvm.pow.f32), inserted with the following call:</div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><div>std::vector<llvm::Type *> arg_types;</div><div>arg_types.push_back(llvm::Type::getFloatTy(context));</div><div><span style="font-size: 10pt;">auto function=llvm::Intrinsic::getDeclaration(module, llvm::Intrinsic::pow, arg_types);</span></div></div><div><font face="Arial, Verdana" size="2">auto result=ir_builder->CreateCall(function, args);</font></div><div><font face="Arial, Verdana" size="2"><br></font></div><div><font face="Arial, Verdana" size="2">When I try to execute the code generated by the JIT compiler, I see that the intrinsic is not compiled into a math coprocessor instruction, but in a call to a null address:</font></div><div><font face="Arial, Verdana" size="2"><br></font></div><div><font face="Arial, Verdana" size="2">002300B8  sub         esp,8 </font></div><div><font face="Arial, Verdana" size="2"><div>002300BB  movss       xmm0,dword ptr ds:[2300B0h]  </div><div>002300C3  movss       dword ptr [esp+4],xmm0  </div><div>002300C9  movss       xmm0,dword ptr ds:[2300B4h]  </div><div>002300D1  movss       dword ptr [esp],xmm0  </div><div>002300D6  <span style="background-color: rgb(255, 255, 0);">call        00000000</span>  </div><div>002300DB  add         esp,8  </div><div>002300DE  ret </div></font></div><div><font face="Arial, Verdana" size="2"><br></font></div><div><font face="Arial, Verdana" size="2">Is there anything special that I need to do in order to be able to call intrinsics, either in general or when JITting? I am either doing something wrong, or forgetting to do something, but I don't know what.</font></div><div><font face="Arial, Verdana" size="2"><br></font></div><div><font face="Arial, Verdana" size="2">I am working with a Visual Studio compiled version on Windows (x86).</font></div><div><font face="Arial, Verdana" size="2"><br></font></div><div><span style="font-family: Arial, Verdana; font-size: small;">All hints will be appreciated, with kind regards,</span></div><div><span style="font-family: Arial, Verdana; font-size: small;"><br></span></div><div><span style="font-family: Arial, Verdana; font-size: small;">Taco H. in den Bosch.</span></div><div><span style="font-family: Arial, Verdana; font-size: small;"><br></span></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div></span>