aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/PruneEH
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-19 05:39:35 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-19 05:39:35 +0000
commitce7d5db4d86b6eef20ffb9e981a1f0d428879e57 (patch)
tree99ed3d8480f6747c8a0c002b3d5945cf1d5ae3bf /test/Transforms/PruneEH
parentd8ff3caaa0d5dd4a7cbbe25c42d70af2e3caca7f (diff)
Upgrade tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/PruneEH')
-rw-r--r--test/Transforms/PruneEH/2003-09-14-ExternalCall.llx14
-rw-r--r--test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx22
-rw-r--r--test/Transforms/PruneEH/recursivetest.llx31
3 files changed, 34 insertions, 33 deletions
diff --git a/test/Transforms/PruneEH/2003-09-14-ExternalCall.llx b/test/Transforms/PruneEH/2003-09-14-ExternalCall.llx
index 0ca05d6e42..7fc912563e 100644
--- a/test/Transforms/PruneEH/2003-09-14-ExternalCall.llx
+++ b/test/Transforms/PruneEH/2003-09-14-ExternalCall.llx
@@ -1,11 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -prune-eh | llvm-dis | grep invoke
+; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | grep invoke
-declare void %External()
+declare void @External()
-implementation
-
-void %foo() {
- invoke void %External() to label %Cont except label %Cont
-Cont:
+define void @foo() {
+ invoke void @External( )
+ to label %Cont unwind label %Cont
+Cont: ; preds = %0, %0
ret void
}
+
diff --git a/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx b/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx
index 3b272fce3f..8333cd8f72 100644
--- a/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx
+++ b/test/Transforms/PruneEH/2003-11-21-PHIUpdate.llx
@@ -1,15 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -prune-eh -disable-output
+; RUN: llvm-as < %s | opt -prune-eh -disable-output
-implementation
-
-internal void %callee() { ; does not throw
- ret void
+define internal void @callee() {
+ ret void
}
-int %caller() {
- invoke void %callee() to label %E except label %E
-
-E:
- %X = phi int [0, %0], [0, %0]
- ret int %X
+define i32 @caller() {
+; <label>:0
+ invoke void @callee( )
+ to label %E unwind label %E
+E: ; preds = %0, %0
+ %X = phi i32 [ 0, %0 ], [ 0, %0 ] ; <i32> [#uses=1]
+ ret i32 %X
}
+
diff --git a/test/Transforms/PruneEH/recursivetest.llx b/test/Transforms/PruneEH/recursivetest.llx
index 0ef33b54eb..231c7b3738 100644
--- a/test/Transforms/PruneEH/recursivetest.llx
+++ b/test/Transforms/PruneEH/recursivetest.llx
@@ -1,19 +1,20 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -prune-eh | llvm-dis | not grep invoke
+; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep invoke
-implementation
-
-internal int %foo() {
- invoke int %foo() to label %Normal except label %Except
-Normal:
- ret int 12
-Except:
- ret int 123
+define internal i32 @foo() {
+ invoke i32 @foo( )
+ to label %Normal unwind label %Except ; <i32>:1 [#uses=0]
+Normal: ; preds = %0
+ ret i32 12
+Except: ; preds = %0
+ ret i32 123
}
-int %caller() {
- invoke int %foo() to label %Normal except label %Except
-Normal:
- ret int 0
-Except:
- ret int 1
+define i32 @caller() {
+ invoke i32 @foo( )
+ to label %Normal unwind label %Except ; <i32>:1 [#uses=0]
+Normal: ; preds = %0
+ ret i32 0
+Except: ; preds = %0
+ ret i32 1
}
+