Debian Codegraph @

gcc/testsuite/gcc.target/riscv/zicond-xor-01.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc_zicond -mabi=lp64" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */
4
5 long xor1(long crc, long poly)
6 {
7 if (crc & 1)
8 crc ^= poly;
9
10 return crc;
11 }
12
13 /* { dg-final { scan-assembler-times {\mczero.eqz\M} 1 } } */
14 /* { dg-final { scan-assembler-times "xor\t" 1 } } */