gcc/testsuite/gcc.target/powerpc/ppc-ne0-1.c
raw| 1 | /* PR target/51274 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | /* { dg-final { scan-assembler-times {\mcmp[wd]i\M} 1 { target { has_arch_pwr10 } } } } */ |
| 6 | /* { dg-final { scan-assembler-times {\msetbcr\M} 1 { target { has_arch_pwr10 } } } } */ |
| 7 | /* { dg-final { scan-assembler-times {\maddic\M} 1 { target { ! has_arch_pwr10 } } } } */ |
| 8 | /* { dg-final { scan-assembler-times {\msubfe\M} 1 { target { ! has_arch_pwr10 } } } } */ |
| 9 | |
| 10 | long ne0(long a) |
| 11 | { |
| 12 | return a != 0; |
| 13 | } |