[testsuite] new test case to check mrelax option for H8S target with ELF/COFF toolchains

Nitin Yewale NitinY@KPITCummins.com
Fri Jul 23 10:09:00 GMT 2004


Hi,

	Please find below Dejagnu test case to check mrelax option for H8S target with ELF/COFF toolchains.

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

2004-07-23  Nitin Yewale <nitiny@kpitcummins.com>

	  * ld-h8300/h8300.exp: Addition of new test case to check relaxation
	  for H8S target.
	  * ld-h8300/relax-6.s: New test source file.
	  * ld-h8300/relax-6.d: New test expected disassembly file.
	  * ld-h8300/relax-6-coff.d: New test expected disassembly file for
	   coff format.
========================================================================== 
--- binutils-040720/ld/testsuite/ld-h8300/h8300.exp	2004-07-13 22:26:09.000000000 +0530
+++ binutils-040720/ld/testsuite/ld-h8300/h8300.exp	2004-07-21 18:13:13.000000000 +0530
@@ -31,9 +31,11 @@ if {[istarget *-elf]} {
     run_dump_test relax-3
     run_dump_test relax-4
     run_dump_test relax-5
+    run_dump_test relax-6
     run_dump_test gcsection	
 } else {
     run_dump_test relax-3-coff
     run_dump_test relax-4-coff
     run_dump_test relax-5-coff
+    run_dump_test relax-6-coff
 }
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ binutils-040720/ld/testsuite/ld-h8300/relax-6.s	2004-07-21 17:36:31.000000000 +0530
@@ -0,0 +1,5 @@
+	.h8300s
+	.global _start
+_start:
+	mov.b	r2l,@0xFFFFFFBD:32
+	rts
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ binutils-040720/ld/testsuite/ld-h8300/relax-6.d	2004-07-21 17:37:18.000000000 +0530
@@ -0,0 +1,11 @@
+# name: H8300 Relaxation Test 6
+# source: relax-6.s
+# ld: --relax -m h8300self
+# objdump: -d --no-show-raw-insn
+
+.*:     file format .*-h8300
+Disassembly of section .text:
+
+00000100 <_start>:
+ 100:	3a bd             mov.b	r2l,@0xbd:8
+ 102:	54 70             rts	
--- /dev/null	2002-08-31 05:01:37.000000000 +0530
+++ binutils-040720/ld/testsuite/ld-h8300/relax-6-coff.d	2004-07-21 18:16:29.000000000 +0530
@@ -0,0 +1,11 @@
+# name: H8300 Relaxation Test 6
+# source: relax-6.s
+# ld: --relax -m h8300s
+# objdump: -d --no-show-raw-insn
+
+.*:     file format .*-h8300
+Disassembly of section .text:
+
+00000100 <_start>:
+ 100:	3a bd             mov.b	r2l,@0xbd:8
+ 102:	54 70             rts	
========================================================================== 

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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 



More information about the Binutils mailing list