summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-08-02 19:23:33 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-08-02 19:23:33 +0000
commit7be35cb1bf520052b051800cee7376a2b9540081 (patch)
tree2493214a214805b3edfaa56df9c1bd71ec28e24c /llvm/test
parent5d0564d2e6206129464043e45301c6ef4e42359c (diff)
downloadbcm5719-llvm-7be35cb1bf520052b051800cee7376a2b9540081.tar.gz
bcm5719-llvm-7be35cb1bf520052b051800cee7376a2b9540081.zip
[mips] Expand vector truncating stores and extending loads.
llvm-svn: 187667
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Mips/dsp-vec-load-store.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/dsp-vec-load-store.ll b/llvm/test/CodeGen/Mips/dsp-vec-load-store.ll
new file mode 100644
index 00000000000..7e4a8fedaa8
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/dsp-vec-load-store.ll
@@ -0,0 +1,11 @@
+; RUN: llc -march=mipsel -mattr=+dsp < %s
+
+@g1 = common global <2 x i8> zeroinitializer, align 2
+@g0 = common global <2 x i8> zeroinitializer, align 2
+
+define void @extend_load_trunc_store_v2i8() {
+entry:
+ %0 = load <2 x i8>* @g1, align 2
+ store <2 x i8> %0, <2 x i8>* @g0, align 2
+ ret void
+}
OpenPOWER on IntegriCloud