Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr80492.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-w -O2 -fdump-tree-optimized" } */ | |
3 | |
4 static __inline__ __attribute__((__always_inline__)) | |
5 void syscall_7 (int val) | |
6 { | |
7 register int reg __asm ("4") = val; | |
8 __asm __volatile__ ("/* Some Code %0 */" :: "r" (reg)); | |
9 } | |
10 | |
11 void do_syscalls (void) | |
12 { | |
13 for (int s = 0; s < 2; s++) | |
14 { | |
15 syscall_7 (0); | |
16 syscall_7 (1); | |
17 } | |
18 } | |
19 | |
20 /* { dg-final { scan-tree-dump-times "reg = " 4 "optimized" } } */ |