blob: 397ada76c638bc32247642495f7008d5152feeba [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep xor
2
3target endian = big
4target pointersize = 32
5target triple = "powerpc-apple-darwin8.7.0"
6
7implementation ; Functions:
8
9void %foo(int %X) {
10entry:
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
16cond_true: ; preds = %entry
17 tail call int (...)* %bar( ) ; <int> [#uses=0]
18 ret void
19
20UnifiedReturnBlock: ; preds = %entry
21 ret void
22}
23
24declare int %bar(...)