Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep xor |
| 2 | |
| 3 | target endian = big |
| 4 | target pointersize = 32 |
| 5 | target triple = "powerpc-apple-darwin8.7.0" |
| 6 | |
| 7 | implementation ; Functions: |
| 8 | |
| 9 | void %foo(int %X) { |
| 10 | entry: |
| 11 | %tmp1 = and int %X, 3 ; <int> [#uses=1] |
| 12 | %tmp2 = xor int %tmp1, 1 |
| 13 | %tmp = seteq int %tmp2, 0 ; <bool> [#uses=1] |
| 14 | br bool %tmp, label %UnifiedReturnBlock, label %cond_true |
| 15 | |
| 16 | cond_true: ; preds = %entry |
| 17 | tail call int (...)* %bar( ) ; <int> [#uses=0] |
| 18 | ret void |
| 19 | |
| 20 | UnifiedReturnBlock: ; preds = %entry |
| 21 | ret void |
| 22 | } |
| 23 | |
| 24 | declare int %bar(...) |