diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-19 15:49:14 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-19 15:49:14 +0000 |
commit | 91223a41ef0f5b469b1230919cba9012beb6f321 (patch) | |
tree | 0992d54f5e7083bd212957da675ee286b7023878 /test/CodeGen/PowerPC/vec_select.ll | |
parent | c698d3a2a40f0909d16cbe857685f0f22cb9ae43 (diff) | |
download | external_llvm-91223a41ef0f5b469b1230919cba9012beb6f321.zip external_llvm-91223a41ef0f5b469b1230919cba9012beb6f321.tar.gz external_llvm-91223a41ef0f5b469b1230919cba9012beb6f321.tar.bz2 |
PowerPC: Expand VSELECT nodes.
There's probably a better expansion for those nodes than the default for
altivec, but this is better than crashing. VSELECTs occur in loop vectorizer
output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/vec_select.ll')
-rw-r--r-- | test/CodeGen/PowerPC/vec_select.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/vec_select.ll b/test/CodeGen/PowerPC/vec_select.ll new file mode 100644 index 0000000..4ad0acc --- /dev/null +++ b/test/CodeGen/PowerPC/vec_select.ll @@ -0,0 +1,7 @@ +; RUN: llc < %s -mtriple=powerpc64-linux-gnu -mattr=+altivec | FileCheck %s + +; CHECK: vsel_float +define <4 x float> @vsel_float(<4 x float> %v1, <4 x float> %v2) { + %vsel = select <4 x i1> <i1 true, i1 false, i1 false, i1 false>, <4 x float> %v1, <4 x float> %v2 + ret <4 x float> %vsel +} |