summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/target-data.c
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-02-12 14:48:34 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-02-12 14:48:34 +0000
commit8e57697cfd75ec590307267128456a30707156af (patch)
treea553b66b7ebb4fa9cc25c02eca3f0672c7a729d3 /clang/test/CodeGen/target-data.c
parent2f1025d68a2214ea704bf29a9d5ac7e6cc8d2bf0 (diff)
downloadbcm5719-llvm-8e57697cfd75ec590307267128456a30707156af.tar.gz
bcm5719-llvm-8e57697cfd75ec590307267128456a30707156af.zip
[Hexagon] Specify vector alignment in DataLayout string
The DataLayout can calculate alignment of vectors based on the alignment of the element type and the number of elements. In fact, it is the product of these two values. The problem is that for vectors of N x i1, this will return the alignment of N bytes, since the alignment of i1 is 8 bits. The vector types of vNi1 should be aligned to N bits instead. Provide explicit alignment for HVX vectors to avoid such complications. llvm-svn: 260680
Diffstat (limited to 'clang/test/CodeGen/target-data.c')
-rw-r--r--clang/test/CodeGen/target-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/target-data.c b/clang/test/CodeGen/target-data.c
index 2ed7f0916fc..a2c02be9491 100644
--- a/clang/test/CodeGen/target-data.c
+++ b/clang/test/CodeGen/target-data.c
@@ -157,7 +157,7 @@
// RUN: %clang_cc1 -triple hexagon-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=HEXAGON
-// HEXAGON: target datalayout = "e-m:e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f64:64:64-f32:32:32-v64:64:64-v32:32:32-a:0-n16:32"
+// HEXAGON: target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
// RUN: %clang_cc1 -triple s390x-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=SYSTEMZ
OpenPOWER on IntegriCloud