From 140385e0aceb92a9e588721e11fd60c15724aae4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Apr 2004 03:47:56 +0000 Subject: 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 --- test/CodeGen/X86/select.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/CodeGen/X86/select.ll') diff --git a/test/CodeGen/X86/select.ll b/test/CodeGen/X86/select.ll index 1be5261eb6..c708f5e073 100644 --- a/test/CodeGen/X86/select.ll +++ b/test/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 +} + -- cgit v1.2.3