Skip to content
Snippets Groups Projects
Commit cfbc0231 authored by Chris Lattner's avatar Chris Lattner
Browse files

Tests for fp cmov's that I forgot to check in earlier

llvm-svn: 12585
parent 1a7e43c5
No related branches found
No related tags found
No related merge requests found
...@@ -48,3 +48,16 @@ int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) { ...@@ -48,3 +48,16 @@ int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) {
ret int %X 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment