aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/tst_teq.ll
blob: c83111e69937f8096c6470978df5b88d4b6506bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: llc < %s -march=arm | grep tst
; RUN: llc < %s -march=arm | grep teq

define i32 @f(i32 %a) {
entry:
	%tmp2 = and i32 %a, 255		; <i32> [#uses=1]
	icmp eq i32 %tmp2, 0		; <i1>:0 [#uses=1]
	%retval = select i1 %0, i32 20, i32 10		; <i32> [#uses=1]
	ret i32 %retval
}

define i32 @g(i32 %a) {
entry:
        %tmp2 = xor i32 %a, 255
	icmp eq i32 %tmp2, 0		; <i1>:0 [#uses=1]
	%retval = select i1 %0, i32 20, i32 10		; <i32> [#uses=1]
	ret i32 %retval
}