Commit 444c52f9 by Richard Henderson Committed by Richard Henderson

991118-1.c: Revert 2002-01-29 change.

        * gcc.c-torture/execute/991118-1.c: Revert 2002-01-29 change.
        * gcc.c-torture/execute/bf64-1.c: Likewise.

From-SVN: r49442
parent b6f642d5
2002-02-02 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/991118-1.c: Revert 2002-01-29 change.
* gcc.c-torture/execute/bf64-1.c: Likewise.
2002-02-02 Jakub Jelinek <jakub@redhat.com> 2002-02-02 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20020201-2.c: New test. * gcc.dg/20020201-2.c: New test.
......
...@@ -57,22 +57,23 @@ struct tmp4 tmp4 = {0x1FFFF00000000LL, 0x123}; ...@@ -57,22 +57,23 @@ struct tmp4 tmp4 = {0x1FFFF00000000LL, 0x123};
main() main()
{ {
if (sizeof (long long) != 8) if (sizeof (long long) != 8)
exit (0); exit (0);
tmp = sub (tmp); tmp = sub (tmp);
tmp2 = sub2 (tmp2); tmp2 = sub2 (tmp2);
if (tmp.pad != 0x123 || tmp.field != (long long) 0xFFF9551175BDFDB5LL) if (tmp.pad != 0x123 || tmp.field != 0xFFF9551175BDFDB5LL)
abort (); abort ();
if (tmp2.pad != 0x123 || tmp2.field != (long long) 0xFFF9551175BDFDB5LL) if (tmp2.pad != 0x123 || tmp2.field != 0xFFF9551175BDFDB5LL)
abort (); abort ();
tmp3 = sub3 (tmp3); tmp3 = sub3 (tmp3);
tmp4 = sub4 (tmp4); tmp4 = sub4 (tmp4);
if (tmp3.pad != 0x123 || tmp3.field != (long long) 0xFFF989AB12345678LL) if (tmp3.pad != 0x123 || tmp3.field != 0xFFF989AB12345678LL)
abort (); abort ();
if (tmp4.pad != 0x123 || tmp4.field != (long long) 0xFFF989AB12345678LL) if (tmp4.pad != 0x123 || tmp4.field != 0xFFF989AB12345678LL)
abort (); abort ();
exit (0); exit (0);
} }
...@@ -26,15 +26,15 @@ sub2 (struct tmp2 tmp2) ...@@ -26,15 +26,15 @@ sub2 (struct tmp2 tmp2)
main() main()
{ {
struct tmp tmp = {0x123, (long long)0xFFFFFF000FFF000F}; struct tmp tmp = {0x123, 0xFFF000FFF000FLL};
struct tmp2 tmp2 = {(long long)0xFFFFFF000FFF000F, 0x123}; struct tmp2 tmp2 = {0xFFF000FFF000FLL, 0x123};
tmp = sub (tmp); tmp = sub (tmp);
tmp2 = sub2 (tmp2); tmp2 = sub2 (tmp2);
if (tmp.pad != 0x123 || tmp.field != (long long)0xFFFFFF541FFF567F) if (tmp.pad != 0x123 || tmp.field != 0xFFFFFF541FFF567FLL)
abort (); abort ();
if (tmp2.pad != 0x123 || tmp2.field != (long long)0xFFFFFF541FFF567F) if (tmp2.pad != 0x123 || tmp2.field != 0xFFFFFF541FFF567FLL)
abort (); abort ();
exit (0); exit (0);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment