[llvm-commits] [llvm] r73981 - /llvm/trunk/test/FrontendC/2008-03-24-BitField-And-Alloca.c

Dale Johannesen dalej at apple.com
Tue Jun 23 11:34:41 PDT 2009


Author: johannes
Date: Tue Jun 23 13:34:37 2009
New Revision: 73981

URL: http://llvm.org/viewvc/llvm-project?rev=73981&view=rev
Log:
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.


Modified:
    llvm/trunk/test/FrontendC/2008-03-24-BitField-And-Alloca.c

Modified: llvm/trunk/test/FrontendC/2008-03-24-BitField-And-Alloca.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-03-24-BitField-And-Alloca.c?rev=73981&r1=73980&r2=73981&view=diff

==============================================================================
--- llvm/trunk/test/FrontendC/2008-03-24-BitField-And-Alloca.c (original)
+++ llvm/trunk/test/FrontendC/2008-03-24-BitField-And-Alloca.c Tue Jun 23 13:34:37 2009
@@ -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,





More information about the llvm-commits mailing list