This is the mail archive of the binutils@sourceware.org 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]

MIPS ELF reloc 2 (32-bit) test (e32-rel2.d)


Hi,

  For the test of "e32-rel2.d" to compile "elf-rel2.s",
we need to force the assembler to generate lwc1 instructions
for "li.d".  Otherwise, ldc1 is generated for mips32/32r2/.. cpus, 
and the test fails.  One method is to pass -march=mips1 to "as".

  Is the patch ok?  Thanks!

Regards,
Chao-ying

2008-06-19  Chao-ying Fu  <fu@mips.com>

        * gas/mips/e32-rel2.d: Add -march=mips1 for as.

Index: e32-rel2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/e32-rel2.d,v
retrieving revision 1.3
diff -u -p -r1.3 e32-rel2.d
--- e32-rel2.d  4 Jul 2006 16:39:08 -0000       1.3
+++ e32-rel2.d  20 Jun 2008 01:16:59 -0000
@@ -1,6 +1,6 @@
 #objdump: -sr -j .text
 #name: MIPS ELF reloc 2 (32-bit)
-#as: -mabi=32
+#as: -mabi=32 -march=mips1
 #source: elf-rel2.s

 # Test the GPREL and LITERAL generation.


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