| 1 |
/* Use UXTB to extract the lowest byte. */ |
| 2 |
/* { dg-options "-mthumb -Os" } */ |
| 3 |
/* { dg-require-effective-target arm_thumb2_ok } */ |
| 4 |
/* { dg-final { scan-assembler "uxtb" } } */ |
| 5 |
|
| 6 |
int tp(int x, int y) |
| 7 |
{ |
| 8 |
return (x & 0xff) - (y & 0xffff); |
| 9 |
} |