Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr112398.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc -mabi=lp64d" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" } } */
4
5 #include <stdint.h>
6
7 uint8_t neg_u8 (const uint8_t src)
8 {
9 return ~src;
10 }
11
12 /* { dg-final { scan-assembler-times "xori\t" 1 } } */
13 /* { dg-final { scan-assembler-not "not\t" } } */
14 /* { dg-final { scan-assembler-not "andi\t" } } */