Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

llvm-upgrade generating undefined operand #1113

Closed Quuxplusone closed 14 years ago

Quuxplusone commented 17 years ago
Bugzilla Link PR1113
Status RESOLVED FIXED
Importance P normal
Reported by Nick Lewycky (nicholas@mxc.ca)
Reported on 2007-01-14 19:46:57 -0800
Last modified on 2010-02-22 12:51:39 -0800
Version trunk
Hardware All All
CC llvm-bugs@lists.llvm.org, rspencer@reidspencer.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
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).
Quuxplusone commented 17 years ago

Fixed with this patch:

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