mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
baeb911d60
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74468 91177308-0d34-0410-b5e6-96231b3b80d8
26 lines
542 B
LLVM
26 lines
542 B
LLVM
; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {tst\\W*r\[0-9\],\\W*r\[0-9\]} | count 4
|
|
|
|
define i1 @f1(i32 %a, i32 %b) {
|
|
%tmp = and i32 %a, %b
|
|
%tmp1 = icmp ne i32 %tmp, 0
|
|
ret i1 %tmp1
|
|
}
|
|
|
|
define i1 @f2(i32 %a, i32 %b) {
|
|
%tmp = and i32 %a, %b
|
|
%tmp1 = icmp eq i32 %tmp, 0
|
|
ret i1 %tmp1
|
|
}
|
|
|
|
define i1 @f3(i32 %a, i32 %b) {
|
|
%tmp = and i32 %a, %b
|
|
%tmp1 = icmp ne i32 0, %tmp
|
|
ret i1 %tmp1
|
|
}
|
|
|
|
define i1 @f4(i32 %a, i32 %b) {
|
|
%tmp = and i32 %a, %b
|
|
%tmp1 = icmp eq i32 0, %tmp
|
|
ret i1 %tmp1
|
|
}
|