summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-08 16:33:40 +0000
committerChris Lattner <sabre@nondot.org>2004-10-08 16:33:40 +0000
commitd4bcae9031cbd7c6e908569bdbd137ac3406b4c9 (patch)
treefa4f21c267f23bd345a216f41af10287421c6fd5 /test/CodeGen
parentcf4f81037203909420f47a195109115c9f83e6ba (diff)
downloadllvm-d4bcae9031cbd7c6e908569bdbd137ac3406b4c9.tar.gz
llvm-d4bcae9031cbd7c6e908569bdbd137ac3406b4c9.tar.bz2
llvm-d4bcae9031cbd7c6e908569bdbd137ac3406b4c9.tar.xz
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
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx8
1 files changed, 8 insertions, 0 deletions
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 0000000000..cf65a26072
--- /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
+}
+