diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/alpha/pr42269-1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/alpha/pr42269-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/alpha/pr42269-1.c b/gcc-4.9/gcc/testsuite/gcc.target/alpha/pr42269-1.c new file mode 100644 index 000000000..5d4ef1c25 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/alpha/pr42269-1.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ +/* { dg-final { scan-assembler-not "addl" } } */ + +unsigned +parity (unsigned x) +{ + x ^= x >> 16; + x ^= x >> 8; + x ^= x >> 4; + x &= 0xf; + return (0x6996 >> x) & 1; +} |