summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-03-10 02:20:00 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-03-10 02:20:00 +0000
commit9be3c97183f832d084bcf0fab82f7cd8aae08385 (patch)
tree902740a9c96315d137bfa799b78a7dc6586aad3e /test
parentb8cafe3427a168414400e5dfcbea78996792d2c3 (diff)
downloadllvm-9be3c97183f832d084bcf0fab82f7cd8aae08385.tar.gz
llvm-9be3c97183f832d084bcf0fab82f7cd8aae08385.tar.bz2
llvm-9be3c97183f832d084bcf0fab82f7cd8aae08385.tar.xz
Turn unwind_to into "unwinds to".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Feature/unwindto.ll18
-rw-r--r--test/Transforms/Inline/unwindto.ll2
-rw-r--r--test/Transforms/PruneEH/unwindto.ll8
-rw-r--r--test/Transforms/SimplifyCFG/unwindto.ll20
4 files changed, 24 insertions, 24 deletions
diff --git a/test/Feature/unwindto.ll b/test/Feature/unwindto.ll
index bfdf203959..ad1bb1ab9b 100644
--- a/test/Feature/unwindto.ll
+++ b/test/Feature/unwindto.ll
@@ -4,7 +4,7 @@
; http://nondot.org/sabre/LLVMNotes/ExceptionHandlingChanges.txt
define i1 @test1(i8 %i, i8 %j) {
-entry: unwind_to %target
+entry: unwinds to %target
%tmp = sub i8 %i, %j ; <i8> [#uses=1]
%b = icmp eq i8 %tmp, 0 ; <i1> [#uses=1]
ret i1 %b
@@ -15,7 +15,7 @@ target:
define i1 @test2(i8 %i, i8 %j) {
entry:
br label %0
-unwind_to %1
+unwinds to %1
%tmp = sub i8 %i, %j ; <i8> [#uses=1]
%b = icmp eq i8 %tmp, 0 ; <i1> [#uses=1]
ret i1 %b
@@ -26,11 +26,11 @@ unwind_to %1
define i1 @test3(i8 %i, i8 %j) {
entry:
br label %0
-unwind_to %1
+unwinds to %1
%tmp = sub i8 %i, %j ; <i8> [#uses=1]
%b = icmp eq i8 %tmp, 0 ; <i1> [#uses=1]
ret i1 %b
-unwind_to %0
+unwinds to %0
ret i1 false
}
@@ -38,7 +38,7 @@ define i1 @test4(i8 %i, i8 %j) {
%tmp = sub i8 %i, %j ; <i8> [#uses=1]
%b = icmp eq i8 %tmp, 0 ; <i1> [#uses=1]
br label %1
-unwind_to %1
+unwinds to %1
ret i1 false
}
@@ -49,16 +49,16 @@ define void @test5() {
define void @test6() {
entry:
br label %unwind
-unwind: unwind_to %unwind
+unwind: unwinds to %unwind
unwind
}
define i8 @test7(i1 %b) {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
br i1 %b, label %cond_true, label %cond_false
-cond_true: unwind_to %cleanup
+cond_true: unwinds to %cleanup
br label %cleanup
-cond_false: unwind_to %cleanup
+cond_false: unwinds to %cleanup
br label %cleanup
cleanup:
%x = phi i8 [0, %entry], [1, %cond_true], [1, %cond_true],
diff --git a/test/Transforms/Inline/unwindto.ll b/test/Transforms/Inline/unwindto.ll
index 28e857d2f9..1213497b5b 100644
--- a/test/Transforms/Inline/unwindto.ll
+++ b/test/Transforms/Inline/unwindto.ll
@@ -5,7 +5,7 @@ define void @g() {
}
define i32 @f1() {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
call void @g()
ret i32 0
cleanup:
diff --git a/test/Transforms/PruneEH/unwindto.ll b/test/Transforms/PruneEH/unwindto.ll
index 8e5ac25ec8..ed69f4ce22 100644
--- a/test/Transforms/PruneEH/unwindto.ll
+++ b/test/Transforms/PruneEH/unwindto.ll
@@ -1,11 +1,11 @@
-; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep unwind_to
+; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep {unwinds to}
define i8 @test7(i1 %b) {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
br i1 %b, label %cond_true, label %cond_false
-cond_true: unwind_to %cleanup
+cond_true: unwinds to %cleanup
br label %cleanup
-cond_false: unwind_to %cleanup
+cond_false: unwinds to %cleanup
br label %cleanup
cleanup:
%x = phi i8 [0, %entry], [1, %cond_true], [1, %cond_true],
diff --git a/test/Transforms/SimplifyCFG/unwindto.ll b/test/Transforms/SimplifyCFG/unwindto.ll
index 4e91c83015..a65e29887c 100644
--- a/test/Transforms/SimplifyCFG/unwindto.ll
+++ b/test/Transforms/SimplifyCFG/unwindto.ll
@@ -1,14 +1,14 @@
-; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep unwind_to | count 3
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep {unwinds to} | count 3
declare void @g(i32)
define i32 @f1() {
entry:
br label %bb1
-bb1: unwind_to %cleanup1
+bb1: unwinds to %cleanup1
call void @g(i32 0)
br label %bb2
-bb2: unwind_to %cleanup2
+bb2: unwinds to %cleanup2
call void @g(i32 1)
br label %exit
exit:
@@ -20,22 +20,22 @@ cleanup2:
}
define i32 @f2() {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
br label %bb1
-bb1: unwind_to %cleanup
+bb1: unwinds to %cleanup
br label %bb2
-bb2: unwind_to %cleanup
+bb2: unwinds to %cleanup
br label %bb3
bb3:
br label %bb4
-bb4: unwind_to %cleanup
+bb4: unwinds to %cleanup
ret i32 0
cleanup:
ret i32 1
}
define i32 @f3() {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
call void @g(i32 0)
ret i32 0
cleanup:
@@ -43,7 +43,7 @@ cleanup:
}
define i32 @f4() {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
call void @g(i32 0)
br label %cleanup
cleanup:
@@ -51,7 +51,7 @@ cleanup:
}
define i32 @f5() {
-entry: unwind_to %cleanup
+entry: unwinds to %cleanup
call void @g(i32 0)
br label %other
other: