diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-13 03:27:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-13 03:27:48 +0000 |
commit | 07ad63bee9394088faf812563923a760dadef4de (patch) | |
tree | 1fc56ac9aad2309c2a007492c117c7df01f5ef3c /test | |
parent | a670c684a637e9922be87d8b459d2e052675f0e4 (diff) | |
download | external_llvm-07ad63bee9394088faf812563923a760dadef4de.zip external_llvm-07ad63bee9394088faf812563923a760dadef4de.tar.gz external_llvm-07ad63bee9394088faf812563923a760dadef4de.tar.bz2 |
Add another test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll index cf8e584..4f69584 100644 --- a/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll +++ b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll @@ -2,7 +2,7 @@ implementation -void %l102_yyparse() { +void %test1() { no_exit.0.i: br bool false, label %yylex.entry, label %yylex.entry @@ -10,3 +10,18 @@ yylex.entry: %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] ret void } + +void %test2() { +no_exit.0.i: + switch uint 0, label %yylex.entry [ + uint 0, label %yylex.entry + uint 1, label %foo + ] + +yylex.entry: + %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] + ret void +foo: + ret void +} + |