2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63637-3.c
blob51a2ff707e422b214d38df8dc4db2963afaef27e
1 /* PR rtl-optimization/63637 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
5 int
6 foo (void)
8 int a, b, c;
9 asm ("# Magic instruction" : "=r" (a) : : "memory");
10 asm ("# Magic instruction" : "=r" (b) : : "memory");
11 asm ("# Magic instruction" : "=r" (c) : : "memory");
12 return a + b + c;
15 /* { dg-final { scan-assembler-times "# Magic instruction" 3 } } */