2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / attr-align2.c
blob2086f112e4355ed488c2278e981c7a78f0d15cff
1 /* PR target/67745
2 Verify alignment when attribute optimize is used. */
3 /* { dg-do compile } */
4 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
5 /* { dg-options "-O2 -mthumb" } */
7 /* Check that thumb code is always 2 bytes aligned for -Os. */
9 void
10 __attribute__ ((optimize("Os")))
11 foo()
15 /* { dg-final { scan-assembler ".align\[ \t]1" } } */