blob: b8b7c2738ea89f96602b4a7ab85431f7bd55c82a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v6_ok } */
/* { dg-options "-O" } */
/* { dg-add-options arm_arch_v6 } */
unsigned short foo (unsigned short x)
{
x ^= 0x4002;
x >>= 1;
x |= 0x8000;
return x;
}
/* { dg-final { scan-assembler "eor" } } */
/* { dg-final { scan-assembler-not "mvn" } } */
/* { dg-final { scan-assembler-not "uxth" } } */
|