Debian Codegraph @

gcc/testsuite/gcc.target/i386/volatile-1.c

raw
1 /* PR optimization/11381 */
2 /* Originator: <[email protected]> */
3 /* { dg-do compile } */
4 /* { dg-options "-O" } */
5
6 /* Verify that the comparison is not optimized away. */
7
8 void foo(volatile unsigned int *vaddr)
9 {
10 while (*vaddr != *vaddr)
11 ;
12 }
13
14 /* { dg-final { scan-assembler "cmp" } } */