aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/asm-6.c
blob: 6aa37ef4276a97e184914947638c0f5732d77b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR rtl-optimization/44174 */
/* Testcase by Jakub Jelinek <jakub@gcc.gnu.org> */

/* { dg-do compile } */
/* { dg-options "-O2 -fpic" { target fpic } } */

int f0 (int, int, int, int, int);
int f1 (void);

void
f2 (void)
{
  unsigned v1, v2, v3, v4;
  __asm__ ("" : "=a" (v1), "=d" (v2), "=c" (v3), "=r" (v4));
  f0 (f1 (), f1 (), f1 (), f1 (), (v4 >> 8) & 0xff);
}