Debian Codegraph @

gcc/testsuite/gcc.target/riscv/cv-bi-bneimm-compile-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target cv_bi } */
3 /* { dg-options "-march=rv32i_xcvbi -mabi=ilp32" } */
4 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
5
6 /* __builtin_expect is used to provide the compiler with
7 branch prediction information and to direct the compiler
8 to the expected flow through the code. */
9
10 int
11 foo1(int a, int x, int y)
12 {
13 a = __builtin_expect(a, 10);
14 return a == 10 ? x : y;
15 }
16
17 /* { dg-final { scan-assembler-times "cv\\.bneimm\t\(\?\:t\[0-6\]\|a\[0-7\]\|s\[1-11\]\),10,\(\?\:.L\[0-9\]\)" 1 } } */