1 ; RUN: llc < %s -march=cellspu | FileCheck %s
3 ; ModuleID = 'loads.bc'
4 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"
7 define <4 x float> @load_v4f32_1(<4 x float>* %a) nounwind readonly {
9 %tmp1 = load <4 x float>* %a
11 ; CHECK: lqd $3, 0($3)
14 define <4 x float> @load_v4f32_2(<4 x float>* %a) nounwind readonly {
16 %arrayidx = getelementptr <4 x float>* %a, i32 1
17 %tmp1 = load <4 x float>* %arrayidx
19 ; CHECK: lqd $3, 16($3)
23 declare <4 x i32>* @getv4f32ptr()
24 define <4 x i32> @func() {
26 ; we need to have some instruction to move the result to safety.
27 ; which instruction (lr, stqd...) depends on the regalloc
30 %rv1 = call <4 x i32>* @getv4f32ptr()
31 %rv2 = call <4 x i32>* @getv4f32ptr()
32 %rv3 = load <4 x i32>* %rv1
36 define <4 x float> @load_undef(){
37 ; CHECK: lqd $3, 0($3)
38 %val = load <4 x float>* undef