Author: baldrick
Date: Fri Nov 9 01:47:29 2007
New Revision: 43932
URL: http://llvm.org/viewvc/llvm-project?rev=43932&view=rev
Log:
Check that the first and third characters, s and u,
are accessed with an alignment of 2 not 1.
Added:
llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c
Added: llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c
URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c?rev=43932&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c (added)
+++ llvm/trunk/test/CFrontend/2007-11-07-CopyAggregateAlign.c Fri Nov 9
01:47:29 2007
@@ -0,0 +1,3 @@
+// RUN: %llvmgcc -S %s -o - | grep "align 2" | count 6
+struct A { char s, t, u, v; short a; };
+void q() { struct A a, b; a = b; }
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits