aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/select-cc.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-30 02:43:01 +0000
committerChris Lattner <sabre@nondot.org>2008-06-30 02:43:01 +0000
commit80c1a5622a26794873b0d44e27c04926cd6c6be1 (patch)
tree52956d3f0d818913c234040b1ea339713684cf70 /test/CodeGen/Generic/select-cc.ll
parent69c8d9be02ddf696f0c4153193d973c82a2e2835 (diff)
Implement split and scalarize for SELECT_CC, fixing PR2504
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/select-cc.ll')
-rw-r--r--test/CodeGen/Generic/select-cc.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/select-cc.ll b/test/CodeGen/Generic/select-cc.ll
new file mode 100644
index 0000000000..85e68d19c4
--- /dev/null
+++ b/test/CodeGen/Generic/select-cc.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc
+; PR2504
+
+define <2 x double> @vector_select(<2 x double> %x, <2 x double> %y) nounwind {
+ %x.lo = extractelement <2 x double> %x, i32 0 ; <double> [#uses=1]
+ %x.lo.ge = fcmp oge double %x.lo, 0.000000e+00 ; <i1> [#uses=1]
+ %a.d = select i1 %x.lo.ge, <2 x double> %y, <2 x double> %x ; <<2 x double>> [#uses=1]
+ ret <2 x double> %a.d
+}