blob: 714314ceea20c01c38a77a302aa4b21e532f8a88 [file] [log] [blame]
/* PR optimization/11381 */
/* Originator: <tobias@ringstrom.mine.nu> */
/* { dg-do compile } */
/* { 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" } } */