(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr89313.c
       1  /* PR rtl-optimization/89313  */
       2  /* { dg-do compile { target aarch64*-*-* arm*-*-* i?86-*-* powerpc*-*-* s390*-*-* x86_64-*-* } } */
       3  /* { dg-options "-O2" } */
       4  
       5  #if defined (__aarch64__)
       6  # define REG "x0"
       7  #elif defined (__arm__)
       8  # define REG "r0"
       9  #elif defined (__i386__)
      10  # define REG "%eax"
      11  #elif defined (__powerpc__) || defined (__POWERPC__)
      12  # define REG "r3"
      13  #elif defined (__s390__)
      14  # define REG "0"
      15  #elif defined (__x86_64__)
      16  # define REG "rax"
      17  #endif
      18  
      19  long
      20  bug (long arg)
      21  {
      22    register long output asm (REG);
      23    long input = arg;
      24    asm ("blah %0, %1, %2" : "=&r" (output) : "r" (input), "0" (input));
      25    return output;
      26  }