diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/octeon-pop-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/octeon-pop-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/octeon-pop-1.c b/gcc/testsuite/gcc.target/mips/octeon-pop-1.c new file mode 100644 index 000000000..54d2e9c04 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/octeon-pop-1.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-O -march=octeon -mgp64" } */ +/* { dg-final { scan-assembler "\tpop\t" } } */ +/* { dg-final { scan-assembler "\tdpop\t" } } */ + +NOMIPS16 int +f (long long a) +{ + return __builtin_popcountll (a); +} + +NOMIPS16 int +g (int a) +{ + return __builtin_popcount (a); +} |