mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
b4139189b0
llvm-svn: 74068
19 lines
476 B
LLVM
19 lines
476 B
LLVM
; RUN: llvm-as < %s | llc -march=arm | grep tst
|
|
; RUN: llvm-as < %s | llc -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
|
|
}
|