From d4bcae9031cbd7c6e908569bdbd137ac3406b4c9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 8 Oct 2004 16:33:40 +0000 Subject: [PATCH] New testcase. The setcc is only used by a select, but not as a condition: it cannot be folded in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16839 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx diff --git a/test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx b/test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx new file mode 100644 index 00000000000..cf65a26072a --- /dev/null +++ b/test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=x86 + +bool %test(bool %C, bool %D, int %X, int %Y) { + %E = setlt int %X, %Y + %F = select bool %C, bool %D, bool %E + ret bool %F +} +