This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
change to 'longlong.c' testcase for 16-bit int
- To: gcc-patches at gcc dot gnu dot org
- Subject: change to 'longlong.c' testcase for 16-bit int
- From: Geoffrey Keating <geoffk at thief dot cygnus dot com>
- Date: Thu, 30 Aug 2001 19:01:25 -0700
- Reply-to: geoffk at redhat dot com
If 'unsigned int' is 16 bits, this testcase doesn't behave right. I
think this change should make no difference on the original testcase
platform, x86.
Tested on stormy16-elf.
--
Geoff Keating <geoffk@redhat.com>
===File ~/patches/gcc-testlonglong.patch====================
2001-08-30 Geoffrey Keating <geoffk@redhat.com>
* gcc.c-torture/execute/longlong.c (alpha_ep_extbl_i_eq_0): Allow
for 16-bit 'unsigned int'.
Index: testsuite/gcc.c-torture/execute/longlong.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/longlong.c,v
retrieving revision 1.2
diff -p -u -p -r1.2 longlong.c
--- longlong.c 2001/05/04 18:40:35 1.2
+++ longlong.c 2001/08/31 01:59:55
@@ -10,7 +10,7 @@ void alpha_ep_extbl_i_eq_0()
{
unsigned int rb, ra, rc;
- rb = (((unsigned int)(pars) >> 27)) & 0x1fUL;
+ rb = (((unsigned long)(pars) >> 27)) & 0x1fUL;
ra = (((unsigned int)(pars) >> 5)) & 0x1fUL;
rc = (((unsigned int)(pars) >> 0)) & 0x1fUL;
{
============================================================