summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-30 03:39:56 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-30 03:39:56 +0000
commit84d553151f7bccfef1fa50de4c2883bd6a9c3cae (patch)
treea86b952015a135d3a9bb65999084df62ceb2defc
parent207fe3095dce8e7a0ead12e578e76ee7e5cfccb1 (diff)
downloadppe42-gcc-84d553151f7bccfef1fa50de4c2883bd6a9c3cae.tar.gz
ppe42-gcc-84d553151f7bccfef1fa50de4c2883bd6a9c3cae.zip
* gcc.c-torture/execute/991118-1.c: Cast various constants back
to long long. * gcc.c-torture/execute/bf64-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49336 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/991118-1.c9
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/bf64-1.c8
3 files changed, 14 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b3217f11e32..f4ab14b3745 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-29 Richard Henderson <rth@redhat.com>
+
+ * gcc.c-torture/execute/991118-1.c: Cast various constants back
+ to long long.
+ * gcc.c-torture/execute/bf64-1.c: Likewise.
+
2002-01-29 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/20020129-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/991118-1.c b/gcc/testsuite/gcc.c-torture/execute/991118-1.c
index 77ba888a2a0..dc6839d202c 100644
--- a/gcc/testsuite/gcc.c-torture/execute/991118-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/991118-1.c
@@ -57,23 +57,22 @@ struct tmp4 tmp4 = {0x1FFFF00000000LL, 0x123};
main()
{
-
if (sizeof (long long) != 8)
exit (0);
tmp = sub (tmp);
tmp2 = sub2 (tmp2);
- if (tmp.pad != 0x123 || tmp.field != 0xFFF9551175BDFDB5LL)
+ if (tmp.pad != 0x123 || tmp.field != (long long) 0xFFF9551175BDFDB5LL)
abort ();
- if (tmp2.pad != 0x123 || tmp2.field != 0xFFF9551175BDFDB5LL)
+ if (tmp2.pad != 0x123 || tmp2.field != (long long) 0xFFF9551175BDFDB5LL)
abort ();
tmp3 = sub3 (tmp3);
tmp4 = sub4 (tmp4);
- if (tmp3.pad != 0x123 || tmp3.field != 0xFFF989AB12345678LL)
+ if (tmp3.pad != 0x123 || tmp3.field != (long long) 0xFFF989AB12345678LL)
abort ();
- if (tmp4.pad != 0x123 || tmp4.field != 0xFFF989AB12345678LL)
+ if (tmp4.pad != 0x123 || tmp4.field != (long long) 0xFFF989AB12345678LL)
abort ();
exit (0);
}
diff --git a/gcc/testsuite/gcc.c-torture/execute/bf64-1.c b/gcc/testsuite/gcc.c-torture/execute/bf64-1.c
index 60028fb1aa8..96ce5014995 100644
--- a/gcc/testsuite/gcc.c-torture/execute/bf64-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/bf64-1.c
@@ -26,15 +26,15 @@ sub2 (struct tmp2 tmp2)
main()
{
- struct tmp tmp = {0x123, 0xFFF000FFF000FLL};
- struct tmp2 tmp2 = {0xFFF000FFF000FLL, 0x123};
+ struct tmp tmp = {0x123, (long long)0xFFFFFF000FFF000F};
+ struct tmp2 tmp2 = {(long long)0xFFFFFF000FFF000F, 0x123};
tmp = sub (tmp);
tmp2 = sub2 (tmp2);
- if (tmp.pad != 0x123 || tmp.field != 0xFFFFFF541FFF567FLL)
+ if (tmp.pad != 0x123 || tmp.field != (long long)0xFFFFFF541FFF567F)
abort ();
- if (tmp2.pad != 0x123 || tmp2.field != 0xFFFFFF541FFF567FLL)
+ if (tmp2.pad != 0x123 || tmp2.field != (long long)0xFFFFFF541FFF567F)
abort ();
exit (0);
}
OpenPOWER on IntegriCloud