summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/ands_3.c
blob: 42cb7f0f0bc86a4aceb09851c31eb2e888d93403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2" } */

int
f9 (unsigned char x, int y)
{
  if (y > 1 && x == 0)
    return 10;
  return x;
}

/* { dg-final { scan-assembler "ands\t(x|w)\[0-9\]+,\[ \t\]*(x|w)\[0-9\]+,\[ \t\]*255" } } */