summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr44999.c
blob: d07dca1a010b166764a28298815b0c46bc18c8a9 (plain)
1
2
3
4
5
6
7
8
9
/* Use UXTB to extract the lowest byte.  */
/* { dg-options "-mthumb -Os" } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-final { scan-assembler "uxtb" } } */

int tp(int x, int y)
{
  return (x & 0xff) - (y & 0xffff);
}