mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
b7c0b246da
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81545 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
605 B
LLVM
21 lines
605 B
LLVM
; RUN: llc < %s -march=cellspu | FileCheck %s
|
|
|
|
; ModuleID = 'loads.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 <4 x float> @load_v4f32_1(<4 x float>* %a) nounwind readonly {
|
|
entry:
|
|
%tmp1 = load <4 x float>* %a
|
|
ret <4 x float> %tmp1
|
|
; CHECK: lqd $3, 0($3)
|
|
}
|
|
|
|
define <4 x float> @load_v4f32_2(<4 x float>* %a) nounwind readonly {
|
|
entry:
|
|
%arrayidx = getelementptr <4 x float>* %a, i32 1
|
|
%tmp1 = load <4 x float>* %arrayidx
|
|
ret <4 x float> %tmp1
|
|
; CHECK: lqd $3, 16($3)
|
|
}
|