view gcc/testsuite/gcc.dg/pr63637-3.c @ 157:dafe684d005c

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:08:54 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR rtl-optimization/63637 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int
foo (void)
{
  int a, b, c;
  asm ("# Magic instruction" : "=r" (a) : : "memory");
  asm ("# Magic instruction" : "=r" (b) : : "memory");
  asm ("# Magic instruction" : "=r" (c) : : "memory");
  return a + b + c;
}

/* { dg-final { scan-assembler-times "# Magic instruction" 3 } } */