mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
586 B
LLVM
24 lines
586 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | not grep cmovlt
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmoveq
|
|
|
|
long %cmov_lt(long %a, long %c) {
|
|
entry:
|
|
%tmp.1 = setlt long %c, 0
|
|
%retval = select bool %tmp.1, long %a, long 10
|
|
ret long %retval
|
|
}
|
|
|
|
long %cmov_const(long %a, long %b, long %c) {
|
|
entry:
|
|
%tmp.1 = setlt long %a, %b
|
|
%retval = select bool %tmp.1, long %c, long 10
|
|
ret long %retval
|
|
}
|
|
|
|
long %cmov_lt2(long %a, long %c) {
|
|
entry:
|
|
%tmp.1 = setgt long %c, 0
|
|
%retval = select bool %tmp.1, long 10, long %a
|
|
ret long %retval
|
|
}
|