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] test case to check generated assembly code does not contains H8/300h code with "-mno-h" option for H8/300 target.


Hi,
	Please find attached test case which will check whether generated assembly code does not contains H8/300h code with "-mno-h" option for H8/300 target.

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

2004-08-16  Nitin Yewale <nitiny@kpitcummins.com>

	  * gcc.dg/check-mnoh.c : New test source file
==========================================================================
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ gcc-3.5-20040725/gcc/testsuite/gcc.dg/check-mnoh.c	2004-08-13 15:34:11.000000000 +0530
@@ -0,0 +1,13 @@
+/* { dg-do compile { target h8300-*-* } } */
+/* Check whether generated code does not contains H8/300h code with "-mno-h" option*/
+unsigned int add (unsigned int i, unsigned int j)
+{
+	return (i+j);
+}
+int main ()
+{
+	unsigned int k = 0;
+	k = add (5,6);
+	return 1;
+}
+/* { dg-final { global compiler_flags; if [string match "*-mno-h*" $compiler_flags] { scan-assembler-not "mov.l" } } } */
==========================================================================
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]