diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-01-20 01:15:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-01-20 01:15:41 +0000 |
| commit | c59945b4bdfd8887bf9efb1a69171084910acf14 (patch) | |
| tree | 415569f7fdd96ff8b66fcbbab8d6b7256ec34367 /llvm/test | |
| parent | 83d2e066c12d2ff42f07c90a4cf5495d2669a28a (diff) | |
| download | bcm5719-llvm-c59945b4bdfd8887bf9efb1a69171084910acf14.tar.gz bcm5719-llvm-c59945b4bdfd8887bf9efb1a69171084910acf14.zip | |
another fix for PR3354
llvm-svn: 62561
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll b/llvm/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll index 0bc6bdb895b..1a6f485f662 100644 --- a/llvm/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll +++ b/llvm/test/Transforms/SimplifyCFG/2009-01-19-UnconditionalTrappingConstantExpr.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep {br i1 } | count 2 +; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep {br i1 } | count 4 ; PR3354 ; Do not merge bb1 into the entry block, it might trap. @@ -18,3 +18,14 @@ bb6: unwind } +define i32 @test2(i32 %tmp21, i32 %tmp24, i1 %tmp34) { + br i1 %tmp34, label %bb5, label %bb6 + +bb5: ; preds = %bb4 + br i1 icmp sgt (i32 sdiv (i32 32767, i32 0), i32 0), label %bb6, label %bb7 +bb6: + ret i32 42 +bb7: + unwind +} + |

