blob: b8e714eb6a073120fbcc8770c7ecb4221287a55d [file] [log] [blame]
Chris Lattner158cf5e2006-10-17 21:23:20 +00001; RUN: llvm-as < %s | 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(...)