]> granicus.if.org Git - clang/commitdiff
[Hexagon] Xfail two tests that fail due to over-aligning arrays
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 14 Dec 2015 17:17:20 +0000 (17:17 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 14 Dec 2015 17:17:20 +0000 (17:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255510 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/c-strings.c
test/CodeGen/string-literal-short-wstring.c

index 974eeea87677ce64806104c52549d2383b31e2b0..4e14d988a5dc6dcb41227212159238c7dab62d3d 100644 (file)
 // MSABI: @f4.x = internal global %struct.s { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @"\01??_C@_05CJBACGMB@hello?$AA@", i32 0, i32 0) }
 // CHECK: @x = global [3 x i8] c"ola", align [[ALIGN]]
 
+// XFAIL: hexagon
+// Hexagon aligns arrays of size 8+ bytes to a 64-bit boundary, which
+// fails the check for "@f3.x = ... align [ALIGN]", since ALIGN is derived
+// from the alignment of a single i8, which is still 1.
+
 #if defined(__s390x__)
 unsigned char align = 2;
 #else
index 89aa6f76ca43b9304528ee197cfba725e60961ee..01de6a4d802776fb28e415e8373132ff908b966c 100644 (file)
@@ -2,6 +2,10 @@
 // RUN: %clang_cc1 -x c++ -triple %ms_abi_triple -emit-llvm -fshort-wchar %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=MSABI
 // Runs in c++ mode so that wchar_t is available.
 
+// XFAIL: hexagon
+// Hexagon aligns arrays of size 8+ bytes to a 64-bit boundary, which fails
+// the first check line with "align 1".
+
 int main() {
   // This should convert to utf8.
   // CHECK: private unnamed_addr constant [10 x i8] c"\E1\84\A0\C8\A0\F4\82\80\B0\00", align 1