summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/select-cc.ll
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-11-04 17:31:08 +0000
committerDuncan Sands <baldrick@free.fr>2008-11-04 17:31:08 +0000
commite59416efb8472ee95c4500a94d2048c585faff6d (patch)
treea877d69ade32ba77a11ebc64fc0a5528d6664bb4 /test/CodeGen/PowerPC/select-cc.ll
parent9a99325141ca9c67165bbdabbc5a854a5c679a23 (diff)
Fix PR3011: LegalizeTypes support for scalarizing
SELECT_CC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58706 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/select-cc.ll')
-rw-r--r--test/CodeGen/PowerPC/select-cc.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/select-cc.ll b/test/CodeGen/PowerPC/select-cc.ll
new file mode 100644
index 00000000000..f9464c4b051
--- /dev/null
+++ b/test/CodeGen/PowerPC/select-cc.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=ppc32
+; PR3011
+
+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
+}