Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / tree-ssa / asm-3.c
blob5ed282e49a16835ff0472154d1f2edf25e1e0fe6
1 /* PR 17739 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 #ifdef __hppa__
6 #define REGISTER "1"
7 #else
8 #ifdef __moxie__
9 #define REGISTER "8"
10 #else
11 #define REGISTER "0"
12 #endif
13 #endif
15 static inline int source(void)
17 register int hardreg __asm__(REGISTER);
18 asm("" : "=r"(hardreg));
19 return hardreg;
22 void test(void)
24 int t = source();
25 foo(t);
26 bar(t);
29 /* Hardreg should appear exactly 3 times -- declaration, asm stmt,
30 and copy out. */
31 /* { dg-final { scan-tree-dump-times "hardreg" 3 "optimized" } } */
33 /* In particular, hardreg should *not* appear in the call to bar. */
34 /* { dg-final { scan-tree-dump-times "bar \[(\]t_.\[)\]" 1 "optimized" } } */
36 /* { dg-final { cleanup-tree-dump "optimized" } } */