aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-11-12 17:19:09 +0000
committerJim Grosbach <grosbach@apple.com>2009-11-12 17:19:09 +0000
commitcb2c2b738a54a191bc32535523fc904bce47561d (patch)
treedb6da4c3eda136aa29c874f5c90ea618cf9f3df3 /test
parent4459145c2ccb5d063841a5d8c76b8b8ac9adaf2f (diff)
downloadexternal_llvm-cb2c2b738a54a191bc32535523fc904bce47561d.zip
external_llvm-cb2c2b738a54a191bc32535523fc904bce47561d.tar.gz
external_llvm-cb2c2b738a54a191bc32535523fc904bce47561d.tar.bz2
Clean up testcase a bit. Simplify case blocks and adjust switch instruction to not take an undefined value as input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Thumb2/thumb2-tbh.ll10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-tbh.ll b/test/CodeGen/Thumb2/thumb2-tbh.ll
index c5cb6f3..79fae9d 100644
--- a/test/CodeGen/Thumb2/thumb2-tbh.ll
+++ b/test/CodeGen/Thumb2/thumb2-tbh.ll
@@ -18,7 +18,7 @@ declare arm_apcscc noalias i8* @calloc(i32, i32) nounwind
define arm_apcscc i32 @main(i32 %argc, i8** nocapture %argv) nounwind {
; CHECK: main:
-; CHECK: tbh
+; CHECK: tbb
entry:
br label %bb42.i
@@ -26,7 +26,7 @@ bb1.i2: ; preds = %bb42.i
br label %bb40.i
bb5.i: ; preds = %bb42.i
- %0 = or i32 %_Y_flags.1, 32 ; <i32> [#uses=1]
+ %0 = or i32 %argc, 32 ; <i32> [#uses=1]
br label %bb40.i
bb7.i: ; preds = %bb42.i
@@ -66,14 +66,10 @@ bb39.i: ; preds = %bb42.i
unreachable
bb40.i: ; preds = %bb42.i, %bb5.i, %bb1.i2
- %_Y_flags.0 = phi i32 [ 0, %bb1.i2 ], [ %0, %bb5.i ], [ %_Y_flags.1, %bb42.i ] ; <i32> [#uses=1]
- %_Y_eflag.b.0 = phi i1 [ %_Y_eflag.b.1, %bb1.i2 ], [ %_Y_eflag.b.1, %bb5.i ], [ true, %bb42.i ] ; <i1> [#uses=1]
br label %bb42.i
bb42.i: ; preds = %bb40.i, %entry
- %_Y_eflag.b.1 = phi i1 [ false, %entry ], [ %_Y_eflag.b.0, %bb40.i ] ; <i1> [#uses=2]
- %_Y_flags.1 = phi i32 [ 0, %entry ], [ %_Y_flags.0, %bb40.i ] ; <i32> [#uses=2]
- switch i32 undef, label %bb39.i [
+ switch i32 %argc, label %bb39.i [
i32 67, label %bb33.i
i32 70, label %bb35.i
i32 77, label %bb37.i