Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/shrink-wrap.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fshrink-wrap" } */
3
4 /* We should not save anything before checking the value of x. */
5 /* { dg-final { scan-assembler-not "st(ptr)?\\\.\[dw\].*b(eq|ne)z" } } */
6
7 int
8 foo (int x)
9 {
10 __asm__ ("nop" :);
11 if (x)
12 {
13 __asm__ ("" ::: "s0", "s1");
14 return x;
15 }
16
17 __asm__ ("" ::: "s2", "s3");
18 return 0;
19 }