summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commitd5f935921ab03291ec93431b098ef8722cc762c9 (patch)
treea4c9963c73d8ec2c2250519ada86c446b1259a29 /llvm/test
parenta6b508a28cc1bdffe0538879f8c1e75efe1d290c (diff)
downloadbcm5719-llvm-d5f935921ab03291ec93431b098ef8722cc762c9.tar.gz
bcm5719-llvm-d5f935921ab03291ec93431b098ef8722cc762c9.zip
Fix PR3011: LegalizeTypes support for scalarizing
SELECT_CC. llvm-svn: 58706
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/PowerPC/select-cc.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/select-cc.ll b/llvm/test/CodeGen/PowerPC/select-cc.ll
new file mode 100644
index 00000000000..f9464c4b051
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud