Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr50078.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR tree-optimization/50078 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2" } */ | |
4 | |
5 unsigned nonvolvar[2]; | |
6 | |
7 void | |
8 test (int arg) | |
9 { | |
10 unsigned v = *(volatile unsigned *) (&nonvolvar[arg]); | |
11 *(volatile unsigned *) (&nonvolvar[arg]) = v; | |
12 } | |
13 | |
14 /* { dg-final { scan-assembler-times "movl\[^\n\r\]*nonvolvar" 2 { target { { i?86-*-* x86_64-*-* } && nonpic } } } } */ |