This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH ARM]: PR67880: Add test.


A regression test to check -fno-align-functions -O2 -mthumb

thanks
2015-09-29  Christian Bruel  <christian.bruel@st.com>

	PR target/67880
	* gcc.target/arm/no-align.c: Likewise.

Index: gcc.target/arm/no-align.c
===================================================================
--- gcc.target/arm/no-align.c	(revision 0)
+++ gcc.target/arm/no-align.c	(working copy)
@@ -0,0 +1,12 @@
+/* PR target/67745
+   Verify that -mthumb code is not aligned.  */
+/* { dg-do compile } */
+/* { dg-options "-O2 -mthumb -fno-align-functions" }  */
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
+
+void
+foo()
+{
+}
+
+/* { dg-final { scan-assembler-not ".align\[ \t]2" } } */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]