aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-11-08 01:43:53 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-11-08 01:43:53 +0000
commit9f1f26aefaf0bc02e732a1d36e664165d228901a (patch)
tree2e021dbe9cfbc2922c7671316c7f384cec51349b /test
parent2efa35f779213a828fa15d6aa3a508fc81d75d73 (diff)
downloadexternal_llvm-9f1f26aefaf0bc02e732a1d36e664165d228901a.zip
external_llvm-9f1f26aefaf0bc02e732a1d36e664165d228901a.tar.gz
external_llvm-9f1f26aefaf0bc02e732a1d36e664165d228901a.tar.bz2
Make sure to mark vector extload's as expand on ARM. Fixes PR11319.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144057 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll b/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll
new file mode 100644
index 0000000..af43671
--- /dev/null
+++ b/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll
@@ -0,0 +1,15 @@
+; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
+; PR11319
+
+@i8_res = global <2 x i8> <i8 0, i8 0>
+@i8_src1 = global <2 x i8> <i8 1, i8 2>
+@i8_src2 = global <2 x i8> <i8 2, i8 1>
+
+define void @test_neon_vector_add_2xi8() nounwind {
+; CHECK: test_neon_vector_add_2xi8:
+ %1 = load <2 x i8>* @i8_src1
+ %2 = load <2 x i8>* @i8_src2
+ %3 = add <2 x i8> %1, %2
+ store <2 x i8> %3, <2 x i8>* @i8_res
+ ret void
+}