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

int
f1 (int x)
{
  if (x & 1)
    return 1;
  return x;
}

/* { dg-final { scan-assembler "(tst|ands)\t(x|w)\[0-9\]*.*1" } } */