OSDN Git Service

Change v64 datalayout in SPU.
authorKalle Raiskila <kalle.raiskila@nokia.com>
Tue, 26 Oct 2010 10:45:47 +0000 (10:45 +0000)
committerKalle Raiskila <kalle.raiskila@nokia.com>
Tue, 26 Oct 2010 10:45:47 +0000 (10:45 +0000)
commit505faa6b12dcfadf59323701239ba23cd7eda932
tree25ad34779c6bf770331b986bc45d28160d4498b3
parent15b337c28da771b8426fafad58f2e2f81ca4c64e
Change v64 datalayout in SPU.
The SPU ABI does not mention v64, and all examples
in C suggest v128 are treated similarily to arrays,
we use array alignment for v64 too. This makes the
alignment of e.g. [2 x <2 x i32>] behave "intuitively"
and similar to as if the elements were e.g. i32s.

This also makes an "unaligned store" test to be
aligned, with different (but functionally equivalent)
code generated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117360 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CellSPU/SPUSubtarget.h
test/CodeGen/CellSPU/v2f32.ll
test/CodeGen/CellSPU/v2i32.ll