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]

Re: [js@convergence.de: binutils-2.11.92.0.12.3 gas MIPS bug: nested parens in %hi]


On Tue, Jan 08, 2002 at 06:14:53PM -0800, Eric Christopher wrote:
> On Tue, 2002-01-08 at 15:13, H . J . Lu wrote:
> > On Tue, Jan 08, 2002 at 02:10:09PM -0800, H . J . Lu wrote:
> > > Any ideas?
> > > 
> > 
> > I am forwarding a patch here.
> >
> 
> Can you write a testcase for this as well?
> 

How about this?


H.J.
---
2002-01-08  H.J. Lu <hjl@gnu.org>

	* gas/mips/elf-rel.s: Test nested ().

Index: gas/mips/elf-rel.s
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/testsuite/gas/mips/elf-rel.s,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 elf-rel.s
--- gas/mips/elf-rel.s	1999/10/09 16:13:45	1.1.1.1
+++ gas/mips/elf-rel.s	2002/01/09 06:29:51
@@ -6,11 +6,11 @@ l2	= l0+49150
 	.set	noat
 	.set	noreorder
 	lui	$at,%hi(l1)
-	lui	$at,%hi(l1+4)
-	lui	$at,%hi(l1+0x10000)
-	lui	$at,%hi(l1+0x10004)
-	lui	$at,%hi(l0-4)
-	lui	$at,%hi(l1+0x8000)
+	lui	$at,%hi((l1+4))
+	lui	$at,%hi(((l1+0x10000)))
+	lui	$at,%hi((((l1+0x10004))))
+	lui	$at,%hi(((((l0-4)))))
+	lui	$at,%hi((((((l1+0x8000))))))
 l1:		
 	addi	$at,$at,%lo(l1)
 	addi	$at,$at,%lo(l1+0x10004)


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