Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/asm-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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" } } */ |