This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

change to 'longlong.c' testcase for 16-bit int



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;
   {
============================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]