No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.target / i386 / volatile-1.c
blob8a37df48b20344b7ada0aca210a260acd637d02e
1 /* PR optimization/11381 */
2 /* Originator: <tobias@ringstrom.mine.nu> */
3 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4 /* { dg-options "-O" } */
6 /* Verify that the comparison is not optimized away. */
8 void foo(volatile unsigned int *vaddr)
10 while (*vaddr != *vaddr)
14 /* { dg-final { scan-assembler "cmp" } } */