From: Krzysztof Parzyszek Date: Mon, 14 Dec 2015 17:17:20 +0000 (+0000) Subject: [Hexagon] Xfail two tests that fail due to over-aligning arrays X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39264c52dec14ec70e1165495cee00ab5f55a35f;p=clang [Hexagon] Xfail two tests that fail due to over-aligning arrays git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/c-strings.c b/test/CodeGen/c-strings.c index 974eeea876..4e14d988a5 100644 --- a/test/CodeGen/c-strings.c +++ b/test/CodeGen/c-strings.c @@ -15,6 +15,11 @@ // 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 diff --git a/test/CodeGen/string-literal-short-wstring.c b/test/CodeGen/string-literal-short-wstring.c index 89aa6f76ca..01de6a4d80 100644 --- a/test/CodeGen/string-literal-short-wstring.c +++ b/test/CodeGen/string-literal-short-wstring.c @@ -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