summaryrefslogtreecommitdiff
path: root/test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-17 02:36:02 +0000
committerChris Lattner <sabre@nondot.org>2002-07-17 02:36:02 +0000
commit1ab8425c1c09c051459ef3bae2ecb087716cc3f5 (patch)
treea88ea06e98f27870c220b2e911ff6f8fbe4ca03f /test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll
parent3378a5b5913110f9212540ab030baf59e9c39ccc (diff)
downloadllvm-1ab8425c1c09c051459ef3bae2ecb087716cc3f5.tar.gz
llvm-1ab8425c1c09c051459ef3bae2ecb087716cc3f5.tar.bz2
llvm-1ab8425c1c09c051459ef3bae2ecb087716cc3f5.tar.xz
New testcase finally identified!!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll')
-rw-r--r--test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll b/test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll
new file mode 100644
index 0000000000..296e9e1c1e
--- /dev/null
+++ b/test/Transforms/LevelRaise/2002-07-16-SourceAndDestCrash.ll
@@ -0,0 +1,21 @@
+; This testcase, which was distilled from a HUGE function, causes problems
+; because both the source and the destination of the %Y cast are converted
+; to a new type, which causes massive problems.
+
+; RUN: as < %s | opt -raise -raise-start-inst=W
+
+int **%test(sbyte **%S) {
+BB0:
+ br label %Loop
+
+Loop:
+ %X = phi sbyte* [null , %BB0], [%Z, %Loop]
+
+ %Y = cast sbyte *%X to sbyte **
+ %Z = load sbyte** %Y
+ br bool true, label %Loop, label %Out
+
+Out:
+ %W = cast sbyte** %Y to int**
+ ret int** %W
+}