This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
16-bit support in testsuite again
- From: DJ Delorie <dj at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 May 2003 17:25:16 -0400
- Subject: 16-bit support in testsuite again
Ok, I don't know how I missed this, but the old-deja tests do not
support the dg-error option. So, here's an alternate fix that just
avoids the problem in the first place. Ok?
2003-05-14 DJ Delorie <dj@redhat.com>
* g++.old-deja/g++.mike/p700.C: Handle 16-bit hosts better.
* g++.old-deja/g++.other/exprstmt1.C: Likewise.
Index: g++.old-deja/g++.mike/p700.C
===================================================================
RCS file: /cvs/uberbaum/gcc/testsuite/g++.old-deja/g++.mike/p700.C,v
retrieving revision 1.9
diff -p -2 -r1.9 g++.old-deja/g++.mike/p700.C
*** g++.old-deja/g++.mike/p700.C 8 May 2003 23:38:03 -0000 1.9
--- g++.old-deja/g++.mike/p700.C 14 May 2003 21:24:06 -0000
***************
*** 1,5 ****
// { dg-do assemble }
// { dg-options "-Wno-deprecated" }
- // { dg-error "limited range of data type" "16-bit target" { target xstormy16-*-* } 0 }
// prms-id: 700
--- 1,4 ----
*************** void Proc0()
*** 2151,2155 ****
times(&Tms); starttime = Tms.tms_utime;
! for (i = 0; i < 500000 ; ++i);
times(&Tms);
nulltime = Tms.tms_utime - starttime;
--- 2150,2154 ----
times(&Tms); starttime = Tms.tms_utime;
! for (i = 0; i < 5000 ; ++i);
times(&Tms);
nulltime = Tms.tms_utime - starttime;
*************** void Proc0()
*** 2174,2178 ****
times(&Tms); starttime = Tms.tms_utime;
! for (i = 0; i < 500000 ; ++i)
{
--- 2173,2177 ----
times(&Tms); starttime = Tms.tms_utime;
! for (i = 0; i < 5000 ; ++i)
{
Index: g++.old-deja/g++.other/exprstmt1.C
===================================================================
RCS file: /cvs/uberbaum/gcc/testsuite/g++.old-deja/g++.other/exprstmt1.C,v
retrieving revision 1.3
diff -p -2 -r1.3 g++.old-deja/g++.other/exprstmt1.C
*** g++.old-deja/g++.other/exprstmt1.C 8 May 2003 23:38:03 -0000 1.3
--- g++.old-deja/g++.other/exprstmt1.C 14 May 2003 21:24:06 -0000
***************
*** 1,10 ****
// { dg-do run }
// { dg-options "-O" }
- // { dg-error "limited range of data type" "16-bit target" { target xstormy16-*-* } 0 }
- // { dg-error "shift count >=" "16-bit target" { target xstormy16-*-* } 0 }
int main()
{
! unsigned int x = 1381237248;
if (sizeof (x) != 4)
--- 1,8 ----
// { dg-do run }
// { dg-options "-O" }
int main()
{
! unsigned long x = 1381237248;
if (sizeof (x) != 4)
*************** int main()
*** 13,24 ****
x =
({
! unsigned int y = x;
({
! unsigned int z = y;
! (unsigned int)
! ((((unsigned int)z & (unsigned int)0x000000ffUL) << 24)
! | (((unsigned int)z & (unsigned int)0x0000ff00UL) << 8)
! | (((unsigned int)z & (unsigned int)0x00ff0000UL) >> 8)
! | (((unsigned int)z & (unsigned int)0xff000000UL) >> 24));
});
});
--- 11,22 ----
x =
({
! unsigned long y = x;
({
! unsigned long z = y;
! (unsigned long)
! ((((unsigned long)z & (unsigned long)0x000000ffUL) << 24)
! | (((unsigned long)z & (unsigned long)0x0000ff00UL) << 8)
! | (((unsigned long)z & (unsigned long)0x00ff0000UL) >> 8)
! | (((unsigned long)z & (unsigned long)0xff000000UL) >> 24));
});
});