This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] test case to check generated assembly code does not contains H8/300h code with "-mno-h" option for H8/300 target.
- From: "Nitin Yewale" <NitinY at KPITCummins dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 16 Aug 2004 13:53:11 +0530
- Subject: [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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~