From cfbc023153593cf3717a5cd853ee690d18b93eb0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Apr 2004 03:47:56 +0000 Subject: [PATCH] Tests for fp cmov's that I forgot to check in earlier llvm-svn: 12585 --- llvm/test/Regression/CodeGen/X86/select.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/llvm/test/Regression/CodeGen/X86/select.ll b/llvm/test/Regression/CodeGen/X86/select.ll index 1be5261eb6b0..c708f5e07320 100644 --- a/llvm/test/Regression/CodeGen/X86/select.ll +++ b/llvm/test/Regression/CodeGen/X86/select.ll @@ -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 +} + -- GitLab