Debian Codegraph @

gcc/testsuite/gcc.target/riscv/sum-of-two-s12-const-2.c

raw
1 /* Reduced from glibc/stdio-common/tempnam.c.
2 Can't have invalid insn in final output:
3 add s0, sp, 2048 */
4
5 /* { dg-do compile } */
6 /* { dg-options { -march=rv64gcv -mabi=lp64d -O2 } } */
7 /* { dg-skip-if "" { *-*-* } { "-O0" "O1" "-Og" "-Os" "-Oz" } } */
8
9 int a(char x[]) {
10 char b[4096];
11 if (a(b))
12 a(b);
13 }
14
15 /* { dg-final { scan-assembler-not {add\t[a-x0-9]+,sp,2048} } } */