<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 22, 2016, at 14:18, Welson Sun via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">After worked around the problem in SimplifyCFG.cpp (calling isCast() instead of comparing opcode), I hit another gcc crash for FunctionImport.cpp line 480, which I have no idea what's wrong with the code. "Luckily", I found gcc4.8.2 and gave it a try, both crashes are gone.</div><div class=""><br class=""></div><div class=""><b class="">New problem though:</b></div><div class=""><div class="">/llvm-clang-trunk/src/tools/clang/lib/CodeGen/CGBuiltin.cpp: In member function ?llvm::Value* clang::CodeGen::CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned int, const clang::CallExpr*)?:</div><div class="">/llvm-clang-trunk/src/tools/clang/lib/CodeGen/CGBuiltin.cpp:7283:39: error:<span class="Apple-converted-space"> </span><b class="">?r600_rsq? is not a member of ?llvm::Intrinsic?</b></div><div class="">     return emitUnaryBuiltin(*this, E, Intrinsic::r600_rsq);</div><div class="">                                       ^</div><div class="">/llvm-clang-trunk/src/tools/clang/lib/CodeGen/CGBuiltin.cpp:7289:39: error:<span class="Apple-converted-space"> </span><b class="">?AMDGPU_ldexp? is not a member of ?llvm::Intrinsic?</b></div><div class="">     return emitFPIntBuiltin(*this, E, Intrinsic::AMDGPU_ldexp);</div><div class="">                                       ^</div></div><div class=""><br class=""></div><div class="">Actually, if I didn't configure to target AMDGPU, why bothering compiling these code?</div></div></div></blockquote></div><br class=""><div class="">Your clang is out of date. Intrinsics for all targets for now are included in every build</div></body></html>