gcc/testsuite/gcc.dg/tree-ssa/pr109834-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -fdump-tree-optimized" } */ |
| 3 | |
| 4 | int f (char v) |
| 5 | { |
| 6 | return __builtin_popcount((int)__builtin_bswap16(v)); |
| 7 | } |
| 8 | |
| 9 | /* We should be able to remove the bswap here as it does not matter |
| 10 | for the popcount. */ |
| 11 | /* { dg-final { scan-tree-dump-not "bswap" "optimized"} } */ |