From 9f516abaa5e42ae4ac664d8d88ed4a9f50f44e6d Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Tue, 23 Jun 2009 18:34:37 +0000 Subject: [PATCH] This test only works on ppc32 if some optimization is done before generating LLVM IR; it is correct in the code as written to use 8-byte-aligned operations to copy Key in bar. Formerly the gcc inliner was run, now it isn't. I don't think it's possible to preserve this as a pure FE test. Adding -O2 lets the llvm optimizers get rid of the 8-byte-aligned stores, at least. llvm-svn: 73981 --- test/FrontendC/2008-03-24-BitField-And-Alloca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/FrontendC/2008-03-24-BitField-And-Alloca.c b/test/FrontendC/2008-03-24-BitField-And-Alloca.c index 7963805ba81..5fac2a9ca55 100644 --- a/test/FrontendC/2008-03-24-BitField-And-Alloca.c +++ b/test/FrontendC/2008-03-24-BitField-And-Alloca.c @@ -1,5 +1,5 @@ // RUN: %llvmgcc -O2 -S %s -o - | not grep alloca -// RUN: %llvmgcc -m32 -S %s -o - | grep store | not grep {align 8} +// RUN: %llvmgcc -m32 -O2 -S %s -o - | grep store | not grep {align 8} enum { PP_C,