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

/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && 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;
}
OpenPOWER on IntegriCloud