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

long long f2 (long x)
{
   x &= 0x0ffffffffffffff8LL;

   x &= 0xff001fffLL;

   return x;
}

/* { dg-final { scan-assembler-times "and\t" 2 } } */
/* { dg-final { scan-assembler-not "movk\t" } } */