1 /* PR target/67745 2 Verify alignment when both attribute optimize and target are used. */ 3 /* { dg-do compile } */ 4 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ 5 /* { dg-skip-if "" arm_cortex_m } */ 6 7 void 8 __attribute__ ((target ("arm"))) bar()9bar() 10 { 11 } 12 13 void 14 __attribute__ ((target ("thumb"))) 15 __attribute__ ((optimize ("Os"))) foo()16foo() 17 { 18 } 19 20 void 21 __attribute__ ((target ("thumb"))) 22 __attribute__ ((optimize ("O2"))) rab()23rab() 24 { 25 } 26 27 /* { dg-final { scan-assembler-times ".align\[ \t]2" 2 } } */ 28 /* { dg-final { scan-assembler ".align\[ \t]1" } } */ 29