Scott Michel | f6045fe8 | 2009-08-24 23:57:35 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as -o - %s | llc -march=cellspu | FileCheck %s |
Scott Michel | 9c0c6b2 | 2008-11-21 02:56:16 +0000 | [diff] [blame] | 2 | |
| 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" |
| 5 | target triple = "spu" |
| 6 | |
| 7 | define <4 x float> @load_v4f32_1(<4 x float>* %a) nounwind readonly { |
| 8 | entry: |
| 9 | %tmp1 = load <4 x float>* %a |
| 10 | ret <4 x float> %tmp1 |
Scott Michel | f6045fe8 | 2009-08-24 23:57:35 +0000 | [diff] [blame^] | 11 | ; CHECK: lqd $3, 0($3) |
Scott Michel | 9c0c6b2 | 2008-11-21 02:56:16 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | define <4 x float> @load_v4f32_2(<4 x float>* %a) nounwind readonly { |
| 15 | entry: |
Scott Michel | f6045fe8 | 2009-08-24 23:57:35 +0000 | [diff] [blame^] | 16 | %arrayidx = getelementptr <4 x float>* %a, i32 1 |
| 17 | %tmp1 = load <4 x float>* %arrayidx |
Scott Michel | 9c0c6b2 | 2008-11-21 02:56:16 +0000 | [diff] [blame] | 18 | ret <4 x float> %tmp1 |
Scott Michel | f6045fe8 | 2009-08-24 23:57:35 +0000 | [diff] [blame^] | 19 | ; CHECK: lqd $3, 16($3) |
Scott Michel | 9c0c6b2 | 2008-11-21 02:56:16 +0000 | [diff] [blame] | 20 | } |