OSDN Git Service

new testcases that simplifycfg breaks
authorChris Lattner <sabre@nondot.org>
Tue, 5 Aug 2003 16:11:36 +0000 (16:11 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 Aug 2003 16:11:36 +0000 (16:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7598 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll [new file with mode: 0644]
test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll [new file with mode: 0644]

diff --git a/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll b/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
new file mode 100644 (file)
index 0000000..0dafdd9
--- /dev/null
@@ -0,0 +1,9 @@
+; Do not remove the invoke!
+;
+; RUN: as < %s | opt -simplifycfg -disable-output
+
+int %test() {
+       %A = invoke int %test() to label %Ret except label %Ret
+Ret:
+       ret int %A
+}
diff --git a/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll b/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
new file mode 100644 (file)
index 0000000..25deb3b
--- /dev/null
@@ -0,0 +1,10 @@
+; Do not remove the invoke!
+;
+; RUN: as < %s | opt -simplifycfg | dis | grep invoke
+
+int %test() {
+       invoke int %test() to label %Ret except label %Ret
+Ret:
+       %A = add int 0, 1
+       ret int %A
+}