Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr116256-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu23 -march=rv32gcb -mabi=ilp32" { target { rv32 } } } */
3 /* { dg-options "-std=gnu23 -march=rv64gcb -mabi=lp64d" { target { rv64 } } } */
4
5
6 _Bool f1(long a)
7 {
8 long b = a << 4;
9 return b == -128;
10 }
11
12 /* We want to verify that we have generated addi
13 rather than li+add. */
14 /* { dg-final { scan-assembler-not "add\t" } } */
15 /* { dg-final { scan-assembler "addi\t" } } */