PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / cbz.c
blob5d3de6387777743883a3baf66b878a8a0c3f1783
1 /* { dg-do compile {target { arm_thumb2 || arm_thumb1_cbz_ok } } } */
2 /* { dg-options "-O2" } */
4 int
5 foo (int a, int *b)
7 if (a)
8 *b = 1;
9 return 0;
12 /* { dg-final { scan-assembler-times "cbz\\tr\\d" 1 } } */