diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-08 16:33:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-08 16:33:40 +0000 |
commit | d4bcae9031cbd7c6e908569bdbd137ac3406b4c9 (patch) | |
tree | fa4f21c267f23bd345a216f41af10287421c6fd5 /test/CodeGen | |
parent | cf4f81037203909420f47a195109115c9f83e6ba (diff) | |
download | llvm-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.llx | 8 |
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 +} + |