summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CellSPU/stores.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/CellSPU/stores.ll')
-rw-r--r--llvm/test/CodeGen/CellSPU/stores.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/CellSPU/stores.ll b/llvm/test/CodeGen/CellSPU/stores.ll
new file mode 100644
index 00000000000..b9534abfc1a
--- /dev/null
+++ b/llvm/test/CodeGen/CellSPU/stores.ll
@@ -0,0 +1,22 @@
+; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s
+; RUN: grep {stqd.*0(\$3)} %t1.s | count 1
+; RUN: grep {stqd.*16(\$3)} %t1.s | count 1
+; RUN: grep 16256 %t1.s | count 1
+; RUN: grep 16384 %t1.s | count 1
+
+; ModuleID = 'stores.bc'
+target datalayout = "E-p:32:32:128-f64:64:128-f32:32:128-i64:32:128-i32:32:128-i16:16:128-i8:8:128-i1:8:128-a0:0:128-v128:128:128-s0:128:128"
+target triple = "spu"
+
+define void @store_v4f32_1(<4 x float>* %a) nounwind {
+entry:
+ store <4 x float> < float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00 >, <4 x float>* %a
+ ret void
+}
+
+define void @store_v4f32_2(<4 x float>* %a) nounwind {
+entry:
+ %arrayidx = getelementptr <4 x float>* %a, i32 1
+ store <4 x float> < float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00 >, <4 x float>* %arrayidx
+ ret void
+}
OpenPOWER on IntegriCloud