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]

[testsuite] new test case for ICE on H8/300 target while signed/unsigned long and signed char comparison


Hi,

	Please find a test case for ICE on plain h8/300 target.

	Patch for ICE is already in cvs 
	http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00227.html

==========================================================================
testsuite/Changelog

2004-06-29  Nitin Yewale <nitiny@kpitcummins.com>

        * gcc.dg/h8300-ice2.c : New test


==========================================================================
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ gcc.dg/h8300-ice2.c	2004-06-29 12:41:31.000000000 +0530
@@ -0,0 +1,12 @@
+/*{dg-do compile target {h8300-*-*}} */
+/* ICE for signed/unsigned long and signed char comparison */
+int main()
+{
+	unsigned long ul = 4;
+	long sl = 2;
+	signed char sch = -1;
+	if (ul <= sch);
+		return 0;
+	if (sl <= sch)
+		return 1;
+}
==========================================================================
Regards,
Nitin Yewale,
KPIT Cummins InfoSystems Ltd.
Pune, India

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH and H8 Series.
The following site also offers free technical support to its users. 
Visit http://www.kpitgnutools.com for details. 
Latest versions of KPIT GNU tools were released on June 1, 2004.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 


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