This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH ARM]: PR67880: Add test.
- From: Christian Bruel <christian dot bruel at st dot com>
- To: <Ramana dot Radhakrishnan at arm dot com>, <kyrylo dot tkachov at arm dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 7 Oct 2015 09:39:16 +0200
- Subject: [PATCH ARM]: PR67880: Add test.
- Authentication-results: sourceware.org; auth=none
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" } } */