mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-14 09:25:25 +00:00
New testcase for select instructions
llvm-svn: 12552
This commit is contained in:
parent
d265077f6d
commit
83b4416593
32
test/Regression/CodeGen/X86/select.ll
Normal file
32
test/Regression/CodeGen/X86/select.ll
Normal file
@ -0,0 +1,32 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86
|
||||
|
||||
bool %boolSel(bool %A, bool %B, bool %C) {
|
||||
%X = select bool %A, bool %B, bool %C
|
||||
ret bool %X
|
||||
}
|
||||
|
||||
sbyte %byteSel(bool %A, sbyte %B, sbyte %C) {
|
||||
%X = select bool %A, sbyte %B, sbyte %C
|
||||
ret sbyte %X
|
||||
}
|
||||
|
||||
short %shortSel(bool %A, short %B, short %C) {
|
||||
%X = select bool %A, short %B, short %C
|
||||
ret short %X
|
||||
}
|
||||
|
||||
int %intSel(bool %A, int %B, int %C) {
|
||||
%X = select bool %A, int %B, int %C
|
||||
ret int %X
|
||||
}
|
||||
|
||||
long %longSel(bool %A, long %B, long %C) {
|
||||
%X = select bool %A, long %B, long %C
|
||||
ret long %X
|
||||
}
|
||||
|
||||
double %doubleSel(bool %A, double %B, double %C) {
|
||||
%X = select bool %A, double %B, double %C
|
||||
ret double %X
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user