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

int f1(int x, int y)
{
  return (y & 0xfffffff) | (((x <<28) & 0xf0000000));
}


int f2(int x, int y)
{
  return (((x <<28) & 0xf0000000)) | (y & 0xfffffff);
}

/* { dg-final { scan-assembler-times {\tbfi\t} 2 } } */