re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / asm-1.c
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" } */
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" } } */
17 /* { dg-final { cleanup-tree-dump "optimized" } } */