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" } } */