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
This commit is contained in:
parent
ba641b7eda
commit
b0408f13d4
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue