New testcase
authorChris Lattner <sabre@nondot.org>
Thu, 23 May 2002 18:51:27 +0000 (18:51 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 23 May 2002 18:51:27 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2737 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll [new file with mode: 0644]

diff --git a/test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll b/test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll
new file mode 100644 (file)
index 0000000..5822279
--- /dev/null
@@ -0,0 +1,14 @@
+; RUN: if as < %s | opt -raise | dis | grep '= cast' | grep \*
+; RUN: then exit 1
+; RUN: else exit 0
+; RUN: fi
+
+%FILE = type { int, ubyte*, ubyte*, ubyte, ubyte, uint, uint, uint }
+
+uint %addfile(%FILE* %f) {
+       %cast255 = cast %FILE* %f to sbyte*             ; <sbyte*> [#uses=1]
+       %reg2421 = getelementptr sbyte* %cast255, uint 24               ; <sbyte*> [#uses=1]
+       %reg130 = load sbyte* %reg2421          ; <sbyte> [#uses=1]
+       %cast250 = cast sbyte %reg130 to uint           ; <uint> [#uses=1]
+       ret uint %cast250
+}