Fortran: fix dependency checks for inquiry refs [PR115039]
[official-gcc.git] / gcc / testsuite / gcc.target / vax / ffsqi.c
blobebcd9460754741e732b5d7851b7275f2c5eddd90
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-rtl-peephole2" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-O1" } { "" } } */
5 typedef int __attribute__ ((mode (QI))) int_t;
7 int
8 ffsqi (int_t *x)
10 return __builtin_ffs (*x);
13 /* Expect assembly like:
15 ffs $0,$8,*4(%ap),%r0
16 jneq .L2
17 mnegl $1,%r0
18 .L2:
19 incl %r0
23 /* { dg-final { scan-rtl-dump-times "Splitting with gen_peephole2" 1 "peephole2" } } */
24 /* { dg-final { scan-assembler "\tffs \\\$0,\\\$8," } } */