blob: 633ea5022ec9bb499ab58d12bf447b4f1a17331e [file] [log] [blame]
/* PR optimization/11381 */
/* Originator: <tobias@ringstrom.mine.nu> */
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-O" } */
/* Verify that the comparison is not optimized away. */
void foo(volatile unsigned int *vaddr)
{
while (*vaddr != *vaddr)
;
}
/* { dg-final { scan-assembler "cmp" } } */