PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / flip-thumb.c
blob4bbe546b6325b2cbc9f9b7f7c52c29815c231916
1 /* Check -mflip-thumb. */
2 /* { dg-do compile } */
3 /* Make sure the current multilib supports thumb. */
4 /* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
5 /* { dg-skip-if "" arm_cortex_m } */
6 /* { dg-options "-O2 -mflip-thumb -mno-restrict-it" } */
7 /* { dg-final { scan-assembler "\\.arm" } } */
8 /* { dg-final { scan-assembler-times "\\.thumb_func" 1} } */
10 int
11 foo(int a)
13 return a ? 1 : 5;
16 int
17 bar(int a)
19 return a ? 1 : 5;
22 /* { dg-final { scan-assembler-times "ite" 1 { target { arm_thumb2_ok } } } } */