diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2012-02-20 14:15:02 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2012-02-20 14:15:02 +0000 |
commit | b0408f13d4b3170e5dc50149f042f21d1527767d (patch) | |
tree | 0e29f3bd3b46c3691f7894da79c890701b969635 /gcc | |
parent | ba641b7edab68004b645d5d80be6979c149fd0ab (diff) | |
download | gcc-b0408f13d4b3170e5dc50149f042f21d1527767d.zip gcc-b0408f13d4b3170e5dc50149f042f21d1527767d.tar.gz gcc-b0408f13d4b3170e5dc50149f042f21d1527767d.tar.bz2 |
pr52286.c: Fix FAIL on 16-bit int platforms.
* gcc.c-torture/execute/pr52286.c: Fix FAIL on 16-bit int platforms.
From-SVN: r184394
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr52286.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2497a79..89d7bb0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,7 @@ 2012-02-20 Georg-Johann Lay <avr@gjlay.de> * gcc.dg/pr52132.c: Fix FAIL on 16-bit int platforms. + * gcc.c-torture/execute/pr52286.c: Ditto. 2012-02-20 Jakub Jelinek <jakub@redhat.com> diff --git a/gcc/testsuite/gcc.c-torture/execute/pr52286.c b/gcc/testsuite/gcc.c-torture/execute/pr52286.c index 003406d..bb56295 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr52286.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr52286.c @@ -5,9 +5,15 @@ extern void abort (void); int main () { +#if __SIZEOF_INT__ > 2 int a, b; asm ("" : "=r" (a) : "0" (0)); b = (~a | 1) & -2038094497; +#else + long a, b; + asm ("" : "=r" (a) : "0" (0)); + b = (~a | 1) & -2038094497L; +#endif if (b >= 0) abort (); return 0; |