LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1058 - CBE Not Generating BITCAST_TEMPORARY Declarations
Summary: CBE Not Generating BITCAST_TEMPORARY Declarations
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: C (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Reid Spencer
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2006-12-17 00:55 PST by Reid Spencer
Modified: 2010-02-22 12:52 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Reduced test case that produces the problem. (37.17 KB, application/octet-stream)
2006-12-17 00:57 PST, Reid Spencer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reid Spencer 2006-12-17 00:55:27 PST
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)
Comment 1 Reid Spencer 2006-12-17 00:57:03 PST
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.
Comment 2 Reid Spencer 2006-12-17 00:57:50 PST
Created attachment 522 [details]
Reduced test case that produces the problem.
Comment 3 Reid Spencer 2006-12-17 12:51:40 PST
Fixed with this patch:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061211/041524.html