This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Make execute/20030409-2.c compatible with 16-bit targets.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: roger at eyesopen dot com
- Date: Fri, 30 Apr 2004 07:12:45 -0400 (EDT)
- Subject: [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