aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC/cstring-align.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-28 19:58:07 +0000
committerChris Lattner <sabre@nondot.org>2010-04-28 19:58:07 +0000
commite87f7bb50e1d08a09e29252806f6502dcff0539d (patch)
treeda2eb282d465a5721e0614235d55f0a5170709e5 /test/FrontendC/cstring-align.c
parent54fc4d6a48b32772b1a114a43e20de521257899b (diff)
Rework global alignment computation again. Now we do round up
alignment of globals to the preferred alignment, but only when there is no section specified on the global (by far the common case). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC/cstring-align.c')
-rw-r--r--test/FrontendC/cstring-align.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/FrontendC/cstring-align.c b/test/FrontendC/cstring-align.c
index 715d0f3126..b9ec281f56 100644
--- a/test/FrontendC/cstring-align.c
+++ b/test/FrontendC/cstring-align.c
@@ -1,6 +1,5 @@
// RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32
// RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64
-// XFAIL: *
// XTARGET: darwin
extern void func(const char *, const char *);
@@ -9,10 +8,10 @@ void long_function_name() {
func("%s: the function name", __func__);
}
-// DARWIN64: .align 3
+// DARWIN64: .align 4
// DARWIN64: ___func__.
// DARWIN64: .asciz "long_function_name"
-// DARWIN32: .align 2
+// DARWIN32: .align 4
// DARWIN32: ___func__.
// DARWIN32: .asciz "long_function_name"