mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
test cmov immediate form
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1cf9d961b2
commit
10d7f9a33f
17
test/CodeGen/Alpha/cmov.ll
Normal file
17
test/CodeGen/Alpha/cmov.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llvm-as < %s | llc -march=alpha | not grep cmovlt
|
||||
; RUN: llvm-as < %s | llc -march=alpha | grep cmoveq
|
||||
|
||||
long %cmovlt_(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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user