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 1113 - llvm-upgrade generating undefined operand
Summary: llvm-upgrade generating undefined operand
Status: RESOLVED FIXED
Alias: None
Product: tools
Classification: Unclassified
Component: llvm-upgrade (show other bugs)
Version: trunk
Hardware: All All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2007-01-14 19:46 PST by Nick Lewycky
Modified: 2010-02-22 12:51 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Lewycky 2007-01-14 19:46:57 PST
test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll is failing. Here's the
error shown:

FAIL:
/home/nicholas/llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll: 
child process exited abnormally
llvm-as: <stdin>:3,0: Reference to an invalid definition: 'cast_upgrade2' of
type 'i64'
opt: Standard Input is empty!
llvm-dis: Standard Input is empty!

It's producing the following output:

define i32* %test1() {
    %cast_upgrade1 = fptoui float 0.0 to i64
    %X.pntr.s1.u0 = inttoptr i64 %cast_upgrade2 to i32*
    ret i32* %X.pntr.s1.u0
}

define i32* %test2() {
    ret i32* inttoptr( i64 fptoui(float 0.0 to i64) to i32*)
}

The bug is undefined %cast_upgrade2 when it should be %cast_upgrade1. This is a
very recent change (today).
Comment 1 Reid Spencer 2007-01-14 20:41:34 PST
Fixed with this patch:

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