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]

[committed] MIPS/GAS/testsuite: Split `branch-misc-2' tests into two


Move `branch-misc-2' tests for non locally-defined-global symbols into
separate files.  These tests have been introduced with:

commit 6f171daac941741e5fa904f6e462adb75a595495
Author: Alexandre Oliva <aoliva@redhat.com>
Date:   Thu Dec 12 04:40:22 2002 +0000

<https://sourceware.org/ml/binutils/2002-11/msg00631.html>, ("mips: 
branches to external labels are broken"), and:

commit d17b874b6c14caa2f2ed1b5544a48de9f39a1a65
Author: Alexandre Oliva <aoliva@redhat.com>
Date:   Wed Mar 12 23:07:22 2003 +0000

<https://sourceware.org/ml/binutils/2003-03/msg00136.html>, ("On 
resolving the MIPS gas branch reloc issue"), while the test case served 
a different purpose.  With the original intent of the test case brought 
back with:

commit bad36eacdad37042c4efb1c5fbf48476b47de82b
Author: Daniel Jacobowitz <drow@false.org>
Date:   Wed Nov 23 14:04:18 2005 +0000

<https://sourceware.org/ml/binutils/2005-11/msg00324.html>, 
("R_MIPS_PC16, again"), these stand in the way for linker testing.

	gas/
	* testsuite/gas/mips/branch-misc-2.s: Move non 
	locally-defined-global symbol tests...
	* testsuite/gas/mips/branch-misc-5.s: ... to this new test.
	* testsuite/gas/mips/branch-misc-2.d: Update accordingly.
	* testsuite/gas/mips/branch-misc-2-64.d: Likewise.
	* testsuite/gas/mips/branch-misc-2pic.d: Likewise.
	* testsuite/gas/mips/branch-misc-2pic-64.d: Likewise.
	* testsuite/gas/mips/mipsr6@branch-misc-2-64.d: Likewise.
	* testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d: Likewise.
	* testsuite/gas/mips/micromips@branch-misc-2.d: Likewise.
	* testsuite/gas/mips/micromips@branch-misc-2-64.d: Likewise.
	* testsuite/gas/mips/micromips@branch-misc-2pic.d: Likewise.
	* testsuite/gas/mips/micromips@branch-misc-2pic-64.d: Likewise.
	* testsuite/gas/mips/branch-misc-5.d: New test.
	* testsuite/gas/mips/branch-misc-5pic.d: New test.
	* testsuite/gas/mips/branch-misc-5-64.d: New test.
	* testsuite/gas/mips/branch-misc-5pic-64.d: New test.
	* testsuite/gas/mips/mipsr6@branch-misc-5-64.d: New test.
	* testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d: New test.
	* testsuite/gas/mips/micromips@branch-misc-5.d: New test.
	* testsuite/gas/mips/micromips@branch-misc-5pic.d: New test.
	* testsuite/gas/mips/micromips@branch-misc-5-64.d: New test.
	* testsuite/gas/mips/micromips@branch-misc-5pic-64.d: New test.
	* testsuite/gas/mips/mips.exp: Run the new tests.
---
binutils-mips-gas-test-branch-misc-update.diff
Index: binutils/gas/testsuite/gas/mips/branch-misc-2-64.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/branch-misc-2-64.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/branch-misc-2-64.d	2016-07-02 12:57:06.162231421 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -64 -non_shared
 
-# Test the backward branches to globals symbols in current file.
+# Test branches to global symbols in current file.
 
 .*: +file format .*mips.*
 
@@ -44,19 +44,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-0+00a8 <[^>]*> 10000000 	b	00000000000000ac <g6\+0x4>
-[ 	]*a8: R_MIPS_PC16	x1-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-0+00ac <[^>]*> 00000000 	nop
-0+00b0 <[^>]*> 10000000 	b	00000000000000b4 <g6\+0xc>
-[ 	]*b0: R_MIPS_PC16	x2-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-0+00b4 <[^>]*> 00000000 	nop
-0+00b8 <[^>]*> 10000000 	b	00000000000000bc <g6\+0x14>
-[ 	]*b8: R_MIPS_PC16	\.data-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-0+00bc <[^>]*> 00000000 	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-2.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/branch-misc-2.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/branch-misc-2.d	2016-07-02 12:57:06.166292360 +0100
@@ -2,7 +2,7 @@
 #name: MIPS branch-misc-2
 #as: -32 -non_shared
 
-# Test the backward branches to globals symbols in current file.
+# Test branches to global symbols in current file.
 
 .*: +file format .*mips.*
 
@@ -31,13 +31,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-0+00a8 <[^>]*> 1000ffff 	b	000000a8 <g6>
-[ 	]*a8: R_MIPS_PC16	x1
-0+00ac <[^>]*> 00000000 	nop
-0+00b0 <[^>]*> 1000ffff 	b	000000b0 <g6\+0x8>
-[ 	]*b0: R_MIPS_PC16	x2
-0+00b4 <[^>]*> 00000000 	nop
-0+00b8 <[^>]*> 1000ffff 	b	000000b8 <g6\+0x10>
-[ 	]*b8: R_MIPS_PC16	\.Ldata
-0+00bc <[^>]*> 00000000 	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-2.s
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/branch-misc-2.s	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/branch-misc-2.s	2016-07-02 12:57:06.182421105 +0100
@@ -1,4 +1,4 @@
-# Source file used to test the backward branches to globals in this file.
+# Source file used to test branches to globals in this file.
 
 	.globl g1 .text
 	.globl g2 .text
@@ -32,13 +32,6 @@
 	.space 20
 g6:
 
-	b	x1
-	b	x2
-	b	.Ldata
-
 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
 	.align	2
 	.space	8
-
-	.data
-.Ldata:
Index: binutils/gas/testsuite/gas/mips/branch-misc-2pic-64.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/branch-misc-2pic-64.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/branch-misc-2pic-64.d	2016-07-02 12:57:06.191507434 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -64 -call_shared
 
-# Test the backward branches to globals symbols in current file.
+# Test branches to global symbols in current file.
 
 .*: +file format .*mips.*
 
@@ -44,19 +44,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-0+00a8 <[^>]*> 10000000 	b	00000000000000ac <g6\+0x4>
-[ 	]*a8: R_MIPS_PC16	x1-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-0+00ac <[^>]*> 00000000 	nop
-0+00b0 <[^>]*> 10000000 	b	00000000000000b4 <g6\+0xc>
-[ 	]*b0: R_MIPS_PC16	x2-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-0+00b4 <[^>]*> 00000000 	nop
-0+00b8 <[^>]*> 10000000 	b	00000000000000bc <g6\+0x14>
-[ 	]*b8: R_MIPS_PC16	\.data-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-0+00bc <[^>]*> 00000000 	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-2pic.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/branch-misc-2pic.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/branch-misc-2pic.d	2016-07-02 12:57:06.200586780 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -32 -call_shared
 
-# Test the backward branches to globals symbols in current file.
+# Test branches to global symbols in current file.
 
 .*: +file format .*mips.*
 
@@ -32,13 +32,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-0+00a8 <[^>]*> 1000ffff 	b	000000a8 <g6>
-[ 	]*a8: R_MIPS_PC16	x1
-0+00ac <[^>]*> 00000000 	nop
-0+00b0 <[^>]*> 1000ffff 	b	000000b0 <g6\+0x8>
-[ 	]*b0: R_MIPS_PC16	x2
-0+00b4 <[^>]*> 00000000 	nop
-0+00b8 <[^>]*> 1000ffff 	b	000000b8 <g6\+0x10>
-[ 	]*b8: R_MIPS_PC16	\.Ldata
-0+00bc <[^>]*> 00000000 	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-5-64.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-misc-5-64.d	2016-07-02 12:57:06.216903611 +0100
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5-64
+#source: branch-misc-5.s
+#as: -64 -non_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 10000000 	b	0000000000000004 <g6\+0x4>
+[ 	]*0: R_MIPS_PC16	x1-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+0+0004 <[^>]*> 00000000 	nop
+0+0008 <[^>]*> 10000000 	b	000000000000000c <g6\+0xc>
+[ 	]*8: R_MIPS_PC16	x2-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+0+000c <[^>]*> 00000000 	nop
+0+0010 <[^>]*> 10000000 	b	0000000000000014 <g6\+0x14>
+[ 	]*10: R_MIPS_PC16	\.data-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+0+0014 <[^>]*> 00000000 	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-5.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-misc-5.d	2016-07-02 12:57:06.242273298 +0100
@@ -0,0 +1,20 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5
+#as: -32 -non_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section.
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+0+0000 <[^>]*> 1000ffff 	b	00000000 <g6>
+[ 	]*0: R_MIPS_PC16	x1
+0+0004 <[^>]*> 00000000 	nop
+0+0008 <[^>]*> 1000ffff 	b	00000008 <g6\+0x8>
+[ 	]*8: R_MIPS_PC16	x2
+0+000c <[^>]*> 00000000 	nop
+0+0010 <[^>]*> 1000ffff 	b	00000010 <g6\+0x10>
+[ 	]*10: R_MIPS_PC16	\.Ldata
+0+0014 <[^>]*> 00000000 	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-5.s
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-misc-5.s	2016-07-02 12:57:06.253413865 +0100
@@ -0,0 +1,20 @@
+# Source file used to test branches to undefined symbols and a defined
+# local symbol in another section.
+
+	.globl g6 .text
+
+	.globl x1 .text
+
+	.text
+g6:
+
+	b	x1
+	b	x2
+	b	.Ldata
+
+# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+	.align	2
+	.space	8
+
+	.data
+.Ldata:
Index: binutils/gas/testsuite/gas/mips/branch-misc-5pic-64.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-misc-5pic-64.d	2016-07-02 12:57:06.269613360 +0100
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5pic-64
+#source: branch-misc-5.s
+#as: -64 -call_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 10000000 	b	0000000000000004 <g6\+0x4>
+[ 	]*0: R_MIPS_PC16	x1-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+0+0004 <[^>]*> 00000000 	nop
+0+0008 <[^>]*> 10000000 	b	000000000000000c <g6\+0xc>
+[ 	]*8: R_MIPS_PC16	x2-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+0+000c <[^>]*> 00000000 	nop
+0+0010 <[^>]*> 10000000 	b	0000000000000014 <g6\+0x14>
+[ 	]*10: R_MIPS_PC16	\.data-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+0+0014 <[^>]*> 00000000 	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/branch-misc-5pic.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/branch-misc-5pic.d	2016-07-02 12:57:06.285828254 +0100
@@ -0,0 +1,21 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5pic
+#source: branch-misc-5.s
+#as: -32 -call_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 1000ffff 	b	00000000 <g6>
+[ 	]*0: R_MIPS_PC16	x1
+0+0004 <[^>]*> 00000000 	nop
+0+0008 <[^>]*> 1000ffff 	b	00000008 <g6\+0x8>
+[ 	]*8: R_MIPS_PC16	x2
+0+000c <[^>]*> 00000000 	nop
+0+0010 <[^>]*> 1000ffff 	b	00000010 <g6\+0x10>
+[ 	]*10: R_MIPS_PC16	\.Ldata
+0+0014 <[^>]*> 00000000 	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d	2016-07-02 12:57:06.301135506 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -64 -non_shared
 
-# Test the backward branches to global symbols in current file (microMIPS).
+# Test branches to global symbols in current file (microMIPS).
 
 .*: +file format .*mips.*
 
@@ -44,20 +44,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-[0-9a-f]+ <[^>]*> 9400 0000 	b	0+00ac <g6\+0x4>
-			a8: R_MICROMIPS_PC16_S1	x1\-0x4
-			a8: R_MIPS_NONE	\*ABS\*\-0x4
-			a8: R_MIPS_NONE	\*ABS\*\-0x4
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 0000 	b	0+00b2 <g6\+0xa>
-			ae: R_MICROMIPS_PC16_S1	x2\-0x4
-			ae: R_MIPS_NONE	\*ABS\*\-0x4
-			ae: R_MIPS_NONE	\*ABS\*\-0x4
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 0000 	b	0+00b8 <g6\+0x10>
-			b4: R_MICROMIPS_PC16_S1	\.data\-0x4
-			b4: R_MIPS_NONE	\*ABS\*\-0x4
-			b4: R_MIPS_NONE	\*ABS\*\-0x4
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 0c00      	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-2.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/micromips@branch-misc-2.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-2.d	2016-07-02 12:57:06.307178456 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -32 -non_shared
 
-# Test the backward branches to global symbols in current file (microMIPS).
+# Test branches to global symbols in current file (microMIPS).
 
 .*: +file format .*mips.*
 
@@ -32,14 +32,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+00a8 <g6>
-			a8: R_MICROMIPS_PC16_S1	x1
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+00ae <g6\+0x6>
-			ae: R_MICROMIPS_PC16_S1	x2
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+00b4 <g6\+0xc>
-			b4: R_MICROMIPS_PC16_S1	\.Ldata
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 0c00      	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d	2016-07-02 12:57:06.320388324 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -64 -call_shared
 
-# Test the backward branches to global symbols in current file (microMIPS).
+# Test branches to global symbols in current file (microMIPS).
 
 .*: +file format .*mips.*
 
@@ -44,20 +44,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-[0-9a-f]+ <[^>]*> 9400 0000 	b	0+00ac <g6\+0x4>
-			a8: R_MICROMIPS_PC16_S1	x1\-0x4
-			a8: R_MIPS_NONE	\*ABS\*\-0x4
-			a8: R_MIPS_NONE	\*ABS\*\-0x4
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 0000 	b	0+00b2 <g6\+0xa>
-			ae: R_MICROMIPS_PC16_S1	x2\-0x4
-			ae: R_MIPS_NONE	\*ABS\*\-0x4
-			ae: R_MIPS_NONE	\*ABS\*\-0x4
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 0000 	b	0+00b8 <g6\+0x10>
-			b4: R_MICROMIPS_PC16_S1	\.data\-0x4
-			b4: R_MIPS_NONE	\*ABS\*\-0x4
-			b4: R_MIPS_NONE	\*ABS\*\-0x4
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 0c00      	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-2pic.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/micromips@branch-misc-2pic.d	2016-07-02 11:59:35.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-2pic.d	2016-07-02 12:57:06.335555365 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -32 -call_shared
 
-# Test the backward branches to global symbols in current file (microMIPS).
+# Test branches to global symbols in current file (microMIPS).
 
 .*: +file format .*mips.*
 
@@ -32,14 +32,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+00a8 <g6>
-			a8: R_MICROMIPS_PC16_S1	x1
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+00ae <g6\+0x6>
-			ae: R_MICROMIPS_PC16_S1	x2
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+00b4 <g6\+0xc>
-			b4: R_MICROMIPS_PC16_S1	\.Ldata
-[0-9a-f]+ <[^>]*> 0c00      	nop
-[0-9a-f]+ <[^>]*> 0c00      	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-5-64.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-5-64.d	2016-07-02 12:57:06.352839110 +0100
@@ -0,0 +1,28 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5-64
+#source: branch-misc-5.s
+#as: -64 -non_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section (microMIPS).
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> 9400 0000 	b	0+0004 <g6\+0x4>
+			0: R_MICROMIPS_PC16_S1	x1\-0x4
+			0: R_MIPS_NONE	\*ABS\*\-0x4
+			0: R_MIPS_NONE	\*ABS\*\-0x4
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 0000 	b	0+000a <g6\+0xa>
+			6: R_MICROMIPS_PC16_S1	x2\-0x4
+			6: R_MIPS_NONE	\*ABS\*\-0x4
+			6: R_MIPS_NONE	\*ABS\*\-0x4
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 0000 	b	0+0010 <g6\+0x10>
+			c: R_MICROMIPS_PC16_S1	\.data\-0x4
+			c: R_MIPS_NONE	\*ABS\*\-0x4
+			c: R_MIPS_NONE	\*ABS\*\-0x4
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 0c00      	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-5.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-5.d	2016-07-02 12:57:06.374111952 +0100
@@ -0,0 +1,22 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5
+#source: branch-misc-5.s
+#as: -32 -non_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section (microMIPS).
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+0000 <g6>
+			0: R_MICROMIPS_PC16_S1	x1
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+0006 <g6\+0x6>
+			6: R_MICROMIPS_PC16_S1	x2
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+000c <g6\+0xc>
+			c: R_MICROMIPS_PC16_S1	\.Ldata
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 0c00      	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-5pic-64.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-5pic-64.d	2016-07-02 12:57:06.389271851 +0100
@@ -0,0 +1,28 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5pic-64
+#source: branch-misc-5.s
+#as: -64 -call_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section (microMIPS).
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> 9400 0000 	b	0+0004 <g6\+0x4>
+			0: R_MICROMIPS_PC16_S1	x1\-0x4
+			0: R_MIPS_NONE	\*ABS\*\-0x4
+			0: R_MIPS_NONE	\*ABS\*\-0x4
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 0000 	b	0+000a <g6\+0xa>
+			6: R_MICROMIPS_PC16_S1	x2\-0x4
+			6: R_MIPS_NONE	\*ABS\*\-0x4
+			6: R_MIPS_NONE	\*ABS\*\-0x4
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 0000 	b	0+0010 <g6\+0x10>
+			c: R_MICROMIPS_PC16_S1	\.data\-0x4
+			c: R_MIPS_NONE	\*ABS\*\-0x4
+			c: R_MIPS_NONE	\*ABS\*\-0x4
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 0c00      	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/micromips@branch-misc-5pic.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/micromips@branch-misc-5pic.d	2016-07-02 12:57:06.406548420 +0100
@@ -0,0 +1,22 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5pic
+#source: branch-misc-5.s
+#as: -32 -call_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section (microMIPS).
+
+.*: +file format .*mips.*
+
+Disassembly of section \.text:
+[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+0000 <g6>
+			0: R_MICROMIPS_PC16_S1	x1
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+0006 <g6\+0x6>
+			6: R_MICROMIPS_PC16_S1	x2
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 9400 fffe 	b	0+000c <g6\+0xc>
+			c: R_MICROMIPS_PC16_S1	\.Ldata
+[0-9a-f]+ <[^>]*> 0c00      	nop
+[0-9a-f]+ <[^>]*> 0c00      	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mips.exp	2016-07-02 12:54:06.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/mips.exp	2016-07-02 12:57:06.413616751 +0100
@@ -561,6 +561,8 @@ if { [istarget mips*-*-vxworks*] } {
     run_dump_test_arches "branch-misc-2pic" [mips_arch_list_matching mips1]
     run_dump_test "branch-misc-3"
     run_dump_test_arches "branch-misc-4" [mips_arch_list_matching mips1]
+    run_dump_test_arches "branch-misc-5" [mips_arch_list_matching mips1]
+    run_dump_test_arches "branch-misc-5pic" [mips_arch_list_matching mips1]
     if $has_newabi {
 	run_dump_test_arches "branch-misc-2-64" \
 					[mips_arch_list_matching mips3]
@@ -568,6 +570,10 @@ if { [istarget mips*-*-vxworks*] } {
 					[mips_arch_list_matching mips3]
 	run_dump_test_arches "branch-misc-4-64" \
 					[mips_arch_list_matching mips3]
+	run_dump_test_arches "branch-misc-5-64" \
+					[mips_arch_list_matching mips3]
+	run_dump_test_arches "branch-misc-5pic-64" \
+					[mips_arch_list_matching mips3]
     }
     run_dump_test "branch-swap"
 
Index: binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-2-64.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mipsr6@branch-misc-2-64.d	2016-07-02 11:59:36.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-2-64.d	2016-07-02 12:57:06.423771625 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -64 -non_shared
 
-# Test the backward branches to globals symbols in current file.
+# Test branches to global symbols in current file (MIPSr6).
 
 .*: +file format .*mips.*
 
@@ -44,19 +44,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-0+00a8 <[^>]*> 10000000 	b	00000000000000ac <g6\+0x4>
-[ 	]*a8: R_MIPS_PC16	x1-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-0+00ac <[^>]*> 00000000 	nop
-0+00b0 <[^>]*> 10000000 	b	00000000000000b4 <g6\+0xc>
-[ 	]*b0: R_MIPS_PC16	x2-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-0+00b4 <[^>]*> 00000000 	nop
-0+00b8 <[^>]*> 10000000 	b	00000000000000bc <g6\+0x14>
-[ 	]*b8: R_MIPS_PC16	\.Ldata-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-0+00bc <[^>]*> 00000000 	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d
===================================================================
--- binutils.orig/gas/testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d	2016-07-02 11:59:36.000000000 +0100
+++ binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-2pic-64.d	2016-07-02 12:57:06.436063274 +0100
@@ -3,7 +3,7 @@
 #source: branch-misc-2.s
 #as: -64 -call_shared
 
-# Test the backward branches to globals symbols in current file.
+# Test branches to global symbols in current file (MIPSr6).
 
 .*: +file format .*mips.*
 
@@ -44,19 +44,4 @@
 	\.\.\.
 	\.\.\.
 	\.\.\.
-0+00a8 <[^>]*> 10000000 	b	00000000000000ac <g6\+0x4>
-[ 	]*a8: R_MIPS_PC16	x1-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*a8: R_MIPS_NONE	\*ABS\*-0x4
-0+00ac <[^>]*> 00000000 	nop
-0+00b0 <[^>]*> 10000000 	b	00000000000000b4 <g6\+0xc>
-[ 	]*b0: R_MIPS_PC16	x2-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b0: R_MIPS_NONE	\*ABS\*-0x4
-0+00b4 <[^>]*> 00000000 	nop
-0+00b8 <[^>]*> 10000000 	b	00000000000000bc <g6\+0x14>
-[ 	]*b8: R_MIPS_PC16	\.Ldata-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-[ 	]*b8: R_MIPS_NONE	\*ABS\*-0x4
-0+00bc <[^>]*> 00000000 	nop
 	\.\.\.
Index: binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-5-64.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-5-64.d	2016-07-02 12:57:06.449215525 +0100
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5-64
+#source: branch-misc-5.s
+#as: -64 -non_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section (MIPSr6).
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 10000000 	b	0000000000000004 <g6\+0x4>
+[ 	]*0: R_MIPS_PC16	x1-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+0+0004 <[^>]*> 00000000 	nop
+0+0008 <[^>]*> 10000000 	b	000000000000000c <g6\+0xc>
+[ 	]*8: R_MIPS_PC16	x2-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+0+000c <[^>]*> 00000000 	nop
+0+0010 <[^>]*> 10000000 	b	0000000000000014 <g6\+0x14>
+[ 	]*10: R_MIPS_PC16	\.Ldata-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+0+0014 <[^>]*> 00000000 	nop
+	\.\.\.
Index: binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ binutils/gas/testsuite/gas/mips/mipsr6@branch-misc-5pic-64.d	2016-07-02 12:57:06.464416331 +0100
@@ -0,0 +1,27 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS branch-misc-5pic-64
+#source: branch-misc-5.s
+#as: -64 -call_shared
+
+# Test branches to undefined symbols and a defined local symbol
+# in another section (MIPSr6).
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 10000000 	b	0000000000000004 <g6\+0x4>
+[ 	]*0: R_MIPS_PC16	x1-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*0: R_MIPS_NONE	\*ABS\*-0x4
+0+0004 <[^>]*> 00000000 	nop
+0+0008 <[^>]*> 10000000 	b	000000000000000c <g6\+0xc>
+[ 	]*8: R_MIPS_PC16	x2-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*8: R_MIPS_NONE	\*ABS\*-0x4
+0+000c <[^>]*> 00000000 	nop
+0+0010 <[^>]*> 10000000 	b	0000000000000014 <g6\+0x14>
+[ 	]*10: R_MIPS_PC16	\.Ldata-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+[ 	]*10: R_MIPS_NONE	\*ABS\*-0x4
+0+0014 <[^>]*> 00000000 	nop
+	\.\.\.


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