From: Bernd Schmidt Date: Mon, 29 Nov 1999 12:18:56 +0000 (+0000) Subject: New test: gcc.dg/991129-1.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97c1c80b37a9f61753836c4dd059e9bf4a06f099;p=gcc.git New test: gcc.dg/991129-1.c From-SVN: r30703 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 146865a08f4..4f72f8069ab 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +1999-11-29 Bernd Schmidt + + * gcc.dg/991129-1.c: New test. + 1999-11-22 Nathan Sidwell * g++.old-deja/g++.other/warn4.C: New test. diff --git a/gcc/testsuite/gcc.dg/991129-1.c b/gcc/testsuite/gcc.dg/991129-1.c new file mode 100644 index 00000000000..24faefddaff --- /dev/null +++ b/gcc/testsuite/gcc.dg/991129-1.c @@ -0,0 +1,15 @@ +/* Test against a problem in push_reload. */ + +/* { dg-do compile { target i?86-*-* } } */ +/* { 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; +}