mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Tests for fp cmov's that I forgot to check in earlier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2974b5b9bb
commit
140385e0ac
@ -48,3 +48,16 @@ int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) {
|
||||
ret int %X
|
||||
}
|
||||
|
||||
float %foldSel3(bool %A, float %B, float %C, uint %X, uint %Y) {
|
||||
%Cond = setlt uint %X, %Y
|
||||
%X = select bool %Cond, float %B, float %C
|
||||
ret float %X
|
||||
}
|
||||
|
||||
float %nofoldSel4(bool %A, float %B, float %C, int %X, int %Y) {
|
||||
; X86 doesn't have a cmov that reads the right flags for this!
|
||||
%Cond = setlt int %X, %Y
|
||||
%X = select bool %Cond, float %B, float %C
|
||||
ret float %X
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user