summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/991129-1.c
blob: d0d58e8f9e4264567c97cb293626230114f0da13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Test against a problem in push_reload.  */

/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2" } */

unsigned long foo (unsigned long long x, unsigned long y)
{
    unsigned long a;

    x += y;

    asm ("" : "=a" (a) : "A" (x), "rm" (y));

    return a;
}