In some cases, the CBE is not generating the BITCAST_TEMPORARY variable needed to perform a fp<->int bitcast. This was originally reported by Evan Cheng. The symptom is compile errors like this: Output/462.libquantum.cbe.c: In function 'quantum_objcode_put': Output/462.libquantum.cbe.c:674: error: 'ltmp_118_4__BITCAST_TEMPORARY' undeclared (first use in this function)
Evan reports that the problem can be reproduced with: opt bugpoint-reduced-simplified.bc -funcresolve -internalize -ipsccp -globalopt -constmerge -deadargelim -basiccg -inline -prune-eh -globalopt -globaldce -basiccg -argpromotion -instcombine -idom -domtree -domfrontier -scalarrepl -globalsmodref-aa -idom -etforest -loops -domset -domtree -loopsimplify -domfrontier -licm -lo\ad-vn -gcse -dse -instcombine -simplifycfg -globaldce -idom -etforest -verify The bytecode file will be attached.
Created attachment 522 [details] Reduced test case that produces the problem.
Fixed with this patch: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061211/041524.html