diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-11-08 01:43:53 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-11-08 01:43:53 +0000 |
commit | 6f84fed6752b69fef3c425f317b9546fd0ae3873 (patch) | |
tree | 501797d1a7c9e7b0ceabe465225264c7563a1314 /llvm/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll | |
parent | ec8dcd2716e8cfd651b096eaa843f721ca8001e0 (diff) | |
download | bcm5719-llvm-6f84fed6752b69fef3c425f317b9546fd0ae3873.tar.gz bcm5719-llvm-6f84fed6752b69fef3c425f317b9546fd0ae3873.zip |
Make sure to mark vector extload's as expand on ARM. Fixes PR11319.
llvm-svn: 144057
Diffstat (limited to 'llvm/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll b/llvm/test/CodeGen/ARM/2011-11-07-PromoteVectorLoadStore.ll new file mode 100644 index 00000000000..af43671791a --- /dev/null +++ b/llvm/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 +} |