Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/asm-1.c

raw
1 /* Make sure that gcc understands that an in/out operand is a use as well
2 as a def. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O -fdump-tree-optimized-nouid" } */
6
7 void f()
8 {
9 int i = 42;
10 int j = 63;
11
12 asm ("": "=m"(i), "+r"(j) : "m"(i));
13 }
14
15 /* { dg-final { scan-tree-dump-times "42" 1 "optimized" } } */
16 /* { dg-final { scan-tree-dump-times "63" 1 "optimized" } } */