aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030909-1.c
blob: 2a13270d0c01c0ca2c3ec0269ab7c381d5c93b38 (plain)
1
2
3
4
5
/* Verify that ands are combined.  */
/* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-* } } */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler-not "#255.*#255" } } */
int f(int a, int b) { return ((a & 0xff) + (b & 0xff)) & 0xff; }