diff options
author | Kalle Raiskila <kalle.raiskila@nokia.com> | 2010-10-26 10:45:47 +0000 |
---|---|---|
committer | Kalle Raiskila <kalle.raiskila@nokia.com> | 2010-10-26 10:45:47 +0000 |
commit | a49d062234de691c31d3095fc8ab4d0039de8cfb (patch) | |
tree | d6542554207e646c7d019a20115fbcd5ed16d6af /llvm/lib | |
parent | 925b16629daa32073b33aba986a2dbb9a6920ec5 (diff) | |
download | bcm5719-llvm-a49d062234de691c31d3095fc8ab4d0039de8cfb.tar.gz bcm5719-llvm-a49d062234de691c31d3095fc8ab4d0039de8cfb.zip |
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.
llvm-svn: 117360
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUSubtarget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUSubtarget.h b/llvm/lib/Target/CellSPU/SPUSubtarget.h index 88201c653b9..147163d52ef 100644 --- a/llvm/lib/Target/CellSPU/SPUSubtarget.h +++ b/llvm/lib/Target/CellSPU/SPUSubtarget.h @@ -81,7 +81,7 @@ namespace llvm { /// properties of this subtarget. const char *getTargetDataString() const { return "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-a:0:128-v64:128:128-v128:128:128" + "-i16:16:128-i8:8:128-i1:8:128-a:0:128-v64:64:128-v128:128:128" "-s:128:128-n32:64"; } }; |