PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr42835.c
blob867dd0287f1a14314a480dd46e2d0fbaeb19b230
1 /* { dg-do compile } */
2 /* { dg-options "-mthumb -Os -fno-tree-tail-merge" } */
3 /* { dg-require-effective-target arm_thumb2_ok } */
5 int foo(int *p, int i)
7 return( (i < 0 && *p == 1)
8 || (i > 0 && *p == 2) );
11 /* { dg-final { scan-assembler-times "movne\[\\t \]*r.,\[\\t \]*#" 1 } } */
12 /* { dg-final { scan-assembler-times "moveq\[\\t \]*r.,\[\\t \]*#" 1 } } */