1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* 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" } } */