Nick Lewycky | 5062250 | 2006-10-22 21:36:41 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -predsimplify -instcombine -simplifycfg | llvm-dis | grep -v declare | not grep fail |
| 2 | |
| 3 | int %f(int %x, int %y) { |
| 4 | entry: |
| 5 | %tmp2 = or int %x, %y ; <int> [#uses=1] |
| 6 | %tmp = setne int %tmp2, 0 ; <bool> [#uses=1] |
| 7 | br bool %tmp, label %cond_true, label %return |
| 8 | |
| 9 | cond_true: ; preds = %entry |
| 10 | %tmp4 = seteq int %x, 0 ; <bool> [#uses=1] |
| 11 | br bool %tmp4, label %cond_true5, label %return |
| 12 | |
| 13 | cond_true5: ; preds = %cond_true |
| 14 | %tmp6 = call int %fail( ) ; <int> [#uses=0] |
| 15 | ret int %tmp6 |
| 16 | |
| 17 | return: ; preds = %cond_next7 |
| 18 | ret int 0 |
| 19 | } |
| 20 | |
| 21 | declare int %fail() |