This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

[PATCH]: Tests for leax sym,x HC12 bug


Hi!

I've added a test for 'leax sym,x' bug fixed by a previous patch.

Stephane

2003-04-05 Stephane Carrez <stcarrez at nerim dot fr>

	* gas/m68hc11/bug-1825.d (_table): Update.
	* gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs
Index: bug-1825.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/m68hc11/bug-1825.d,v
retrieving revision 1.2
diff -u -p -r1.2 bug-1825.d
--- bug-1825.d	8 Dec 2002 21:08:07 -0000	1.2
+++ bug-1825.d	5 Apr 2003 13:07:27 -0000
@@ -107,7 +107,7 @@ L7:
 	addd	_table\+12,pc
  549:	e3 f8 11    	addd	17,PC \{55d <_table\+0xc>\}
 	addd	_table\+16,pc
- 54c:	e3 f8 12    	addd	18,PC \{561 <.L0>\}
+ 54c:	e3 f8 12    	addd	18,PC \{561 <_table\+0x10>\}
 	rts
  54f:	3d          	rts
 	nop
@@ -115,3 +115,14 @@ L7:
 
 0+551 <_table>:
 	...
+_table:
+	.ds.b	16,0
+	leax	_table,sp	; 16\-bit absolute reloc
+ 561:	1a f2 00 00 	leax	0,SP
+			563: R_M68HC12_16	_table
+	leay	_table,x
+ 565:	19 e2 00 00 	leay	0,X
+			567: R_M68HC12_16	_table
+	leax	_table,y
+ 569:	1a ea 00 00 	leax	0,Y
+			56b: R_M68HC12_16	_table
Index: bug-1825.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/m68hc11/bug-1825.s,v
retrieving revision 1.2
diff -u -p -r1.2 bug-1825.s
--- bug-1825.s	8 Dec 2002 21:08:07 -0000	1.2
+++ bug-1825.s	5 Apr 2003 13:07:27 -0000
@@ -44,3 +44,6 @@ L7:
 	nop
 _table:
 	.ds.b	16,0
+	leax	_table,sp	; 16-bit absolute reloc
+	leay	_table,x
+	leax	_table,y

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