From: Chris Lattner Date: Mon, 4 Nov 2002 06:16:13 +0000 (+0000) Subject: Add information about why this testcase fails X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4d5f10f8d68b7daf2f52a9ba507c01878523c839;p=oota-llvm.git Add information about why this testcase fails git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4529 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll b/test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll index 74d580489ab..8708d86b9ac 100644 --- a/test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll +++ b/test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll @@ -6,9 +6,17 @@ %FILE = type { int, ubyte*, ubyte*, ubyte, ubyte, uint, uint, uint } uint %addfile(%FILE* %f) { - %cast255 = cast %FILE* %f to sbyte* ; [#uses=1] - %reg2421 = getelementptr sbyte* %cast255, long 24 ; [#uses=1] - %reg130 = load sbyte* %reg2421 ; [#uses=1] - %cast250 = cast sbyte %reg130 to uint ; [#uses=1] + %cast255 = cast %FILE* %f to sbyte* + + ; Addreses a ubyte member in memory... + %reg2421 = getelementptr sbyte* %cast255, long 24 + + ; Loads the ubyte + %reg130 = load sbyte* %reg2421 + + ; Error, cast cannot convert the source operand to ubyte because then + ; the sign extension would not be performed. Need to insert a cast. + ; + %cast250 = cast sbyte %reg130 to uint ; This is a sign extension instruction ret uint %cast250 }