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]
Other format: [Raw text]

[patch] Make execute/20030409-2.c compatible with 16-bit targets.


Hi,

Attached is a patch to make execute/20030409-2.c 16-bit targets
compatible.

The testcase has some consideration for 16-bit targets, but some
constants are wrong.  The patch fixes the testcase by changing the
second arguments of calls to test() and testu().

Tested on h8300-elf.  OK to apply?

Kazu Hirata

2004-04-30  Kazu Hirata  <kazu@cs.umass.edu>

	* gcc.c-torture/execute/20040409-2.c: Fix constants used on
	16-bit targets.

Index: 20040409-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20040409-2.c,v
retrieving revision 1.1
diff -u -r1.1 20040409-2.c
--- 20040409-2.c	9 Apr 2004 21:39:14 -0000	1.1
+++ 20040409-2.c	30 Apr 2004 02:04:33 -0000
@@ -227,13 +227,13 @@
   test(0x1234,0x8000);
   test(0x8000,0x1234);
   test(0x9234,0x0000);
-  test(0x7fff,0xffff);
-  test(0xffff,0x7fff);
+  test(0x7fff,0xedcb);
+  test(0xffff,0x6dcb);
 
-  testu(0x0000,0x8000);
-  testu(0x8000,0x0000);
-  testu(0x1234,0x9234);
-  testu(0x9234,0x1234);
+  testu(0x0000,0x9234);
+  testu(0x8000,0x1234);
+  testu(0x1234,0x8000);
+  testu(0x9234,0x0000);
   testu(0x7fff,0xedcb);
   testu(0xffff,0x6dcb);
 #endif


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