blob: b9534abfc1ab084034d5061734d1b9dce30b2bcc [file] [log] [blame]
Scott Michel9c0c6b22008-11-21 02:56:16 +00001; RUN: llvm-as -o - %s | llc -march=cellspu > %t1.s
2; RUN: grep {stqd.*0(\$3)} %t1.s | count 1
3; RUN: grep {stqd.*16(\$3)} %t1.s | count 1
4; RUN: grep 16256 %t1.s | count 1
5; RUN: grep 16384 %t1.s | count 1
6
7; ModuleID = 'stores.bc'
8target 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"
9target triple = "spu"
10
11define void @store_v4f32_1(<4 x float>* %a) nounwind {
12entry:
13 store <4 x float> < float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00 >, <4 x float>* %a
14 ret void
15}
16
17define void @store_v4f32_2(<4 x float>* %a) nounwind {
18entry:
19 %arrayidx = getelementptr <4 x float>* %a, i32 1
20 store <4 x float> < float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00 >, <4 x float>* %arrayidx
21 ret void
22}