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]

Re: V3 [PATCH 4/4] i386: Add tests for -malign-branch-boundary and -malign-branch


On Fri, Dec 20, 2019 at 10:56 AM Hongtao Liu <crazylht@gmail.com> wrote:
>
> On Mon, Dec 16, 2019 at 10:34 AM Alan Modra <amodra@gmail.com> wrote:
> >
> > i686-pc-elf  +FAIL: ld-i386/align-branch-1
> >

This is because
---cut from gas.log-------
regexp_diff match failure
regexp "^ +[a-f0-9]+:   74 20                   je     8049024 <_start\+0x24>$"
line   " 80480a2:       74 20                   je     80480c4 <_start+0x24>"
----end of cut--------------

> > i386-darwin  +FAIL: gas/i386/align-branch-1a
> > i386-darwin  +FAIL: gas/i386/align-branch-1b
> > i386-darwin  +FAIL: gas/i386/align-branch-1c
> > i386-darwin  +FAIL: gas/i386/align-branch-1d
> > i386-darwin  +FAIL: gas/i386/align-branch-1e
> > i386-darwin  +FAIL: gas/i386/align-branch-1f
> > i386-darwin  +FAIL: gas/i386/align-branch-1g
> > i386-darwin  +FAIL: gas/i386/align-branch-1h
> > i386-darwin  +FAIL: gas/i386/align-branch-1i
> > i386-darwin  +FAIL: gas/i386/align-branch-5
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1a
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1b
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1c
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1d
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1e
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1f
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1g
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1h
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-1i
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-2a
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-2b
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-2c
> > i386-darwin  +FAIL: gas/i386/x86-64-align-branch-5
> >
These are because
1.darwin use label to jump, format is not same with orginal *.d file
------cut from gas.log-----------
regexp_diff match failure
regexp "^  22:  74 5e                   je     82 <foo\+0x82>$"
line   "  22:   74 5e                   je     82 <.L_2>"
------end of cut------------------

2.darwin cannot recognize call *foo under 64bit mode
------cut from gas.log-----------
/export/users2/liuhongt/binutils/gas/testsuite/gas/i386/x86-64-align-branch-2.s:
Assembler messages:
/export/users2/liuhongt/binutils/gas/testsuite/gas/i386/x86-64-align-branch-2.s:43:
Error: cannot represent relocation type BFD_RELOC_X86_64_32S
------end of cut-------------------

> > --
> > Alan Modra
> > Australia Development Lab, IBM
>
> I'll take a look.
>
> --
> BR,
> Hongtao

So, update testcase.


--
BR,
Hongtao
From ebd38fce71191d663fcc0b73c79bc78f8c30bda7 Mon Sep 17 00:00:00 2001
From: LiliCui <lili.cui@intel.com>
Date: Wed, 25 Dec 2019 13:24:59 +0800
Subject: [PATCH] fix for i386-daerwin and i696-pc-elf testsuite fail

i386-daerwin:
1.darwin use label to jump, format is not same with our *.d file
2.darwin cannot recognize call *foo under 64bit mode

i696-pc-elf:
1."je 8049024 <_start\+0x24>" start is not a constant value,so change it
to "je  +[a-f0-9]+ <_start\+0x24>"
---
 gas/testsuite/gas/i386/align-branch-1a.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1b.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1c.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1d.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1e.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1f.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1g.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1h.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-1i.d      | 22 ++++++++++---------
 gas/testsuite/gas/i386/align-branch-5.d       |  6 +++--
 .../gas/i386/x86-64-align-branch-1a.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1b.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1c.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1d.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1e.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1f.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1g.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1h.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-1i.d         | 20 +++++++++--------
 .../gas/i386/x86-64-align-branch-2.s          |  2 +-
 .../gas/i386/x86-64-align-branch-2a.d         |  2 +-
 .../gas/i386/x86-64-align-branch-2b.d         |  2 +-
 .../gas/i386/x86-64-align-branch-2c.d         |  2 +-
 .../gas/i386/x86-64-align-branch-5.d          |  8 ++++---
 ld/testsuite/ld-i386/align-branch-1.d         |  8 +++----
 25 files changed, 224 insertions(+), 184 deletions(-)

diff --git a/gas/testsuite/gas/i386/align-branch-1a.d b/gas/testsuite/gas/i386/align-branch-1a.d
index 46b79216ec..89b05fdece 100644
--- a/gas/testsuite/gas/i386/align-branch-1a.d
+++ b/gas/testsuite/gas/i386/align-branch-1a.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   20:	39 c5                	cmp    %eax,%ebp
-  22:	74 5e                	je     82 <foo\+0x82>
+  22:	74 5e                	je     (0x)?82( .*)?
   24:	3e 89 73 f4          	mov    %esi,%ds:-0xc\(%ebx\)
   28:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   2b:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %ebp
   3e:	5d                   	pop    %ebp
   3f:	5d                   	pop    %ebp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %ebp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	36 89 44 24 fc       	mov    %eax,%ss:-0x4\(%esp\)
   4a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   4d:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   59:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5c:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5f:	5d                   	pop    %ebp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,11 +56,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %ebp
   79:	5d                   	pop    %ebp
   7a:	39 c5                	cmp    %eax,%ebp
-  7c:	74 04                	je     82 <foo\+0x82>
+  7c:	74 04                	je     (0x)?82( .*)?
   7e:	66 90                	xchg   %ax,%ax
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -72,6 +74,6 @@ Disassembly of section .text:
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   c0:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c3:	74 c3                	je     88 <foo\+0x88>
-  c5:	74 c1                	je     88 <foo\+0x88>
+  c3:	74 c3                	je     (0x)?88( .*)?
+  c5:	74 c1                	je     (0x)?88( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1b.d b/gas/testsuite/gas/i386/align-branch-1b.d
index b3f0e727bc..1a993b5bef 100644
--- a/gas/testsuite/gas/i386/align-branch-1b.d
+++ b/gas/testsuite/gas/i386/align-branch-1b.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   20:	39 c5                	cmp    %eax,%ebp
-  22:	74 5e                	je     82 <foo\+0x82>
+  22:	74 5e                	je     (0x)?82( .*)?
   24:	3e 89 73 f4          	mov    %esi,%ds:-0xc\(%ebx\)
   28:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   2b:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %ebp
   3e:	5d                   	pop    %ebp
   3f:	5d                   	pop    %ebp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %ebp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	36 89 44 24 fc       	mov    %eax,%ss:-0x4\(%esp\)
   4a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   4d:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   59:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5c:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5f:	5d                   	pop    %ebp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,11 +56,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %ebp
   79:	5d                   	pop    %ebp
   7a:	39 c5                	cmp    %eax,%ebp
-  7c:	74 04                	je     82 <foo\+0x82>
+  7c:	74 04                	je     (0x)?82( .*)?
   7e:	66 90                	xchg   %ax,%ax
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -72,6 +74,6 @@ Disassembly of section .text:
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   c0:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c3:	74 c3                	je     88 <foo\+0x88>
-  c5:	74 c1                	je     88 <foo\+0x88>
+  c3:	74 c3                	je     (0x)?88( .*)?
+  c5:	74 c1                	je     (0x)?88( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1c.d b/gas/testsuite/gas/i386/align-branch-1c.d
index 947dcc8785..0e421b16e2 100644
--- a/gas/testsuite/gas/i386/align-branch-1c.d
+++ b/gas/testsuite/gas/i386/align-branch-1c.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   20:	39 c5                	cmp    %eax,%ebp
-  22:	74 5e                	je     82 <foo\+0x82>
+  22:	74 5e                	je     (0x)?82( .*)?
   24:	3e 89 73 f4          	mov    %esi,%ds:-0xc\(%ebx\)
   28:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   2b:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %ebp
   3e:	5d                   	pop    %ebp
   3f:	5d                   	pop    %ebp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %ebp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	36 89 44 24 fc       	mov    %eax,%ss:-0x4\(%esp\)
   4a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   4d:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   59:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5c:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5f:	5d                   	pop    %ebp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,11 +56,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %ebp
   79:	5d                   	pop    %ebp
   7a:	39 c5                	cmp    %eax,%ebp
-  7c:	74 04                	je     82 <foo\+0x82>
+  7c:	74 04                	je     (0x)?82( .*)?
   7e:	66 90                	xchg   %ax,%ax
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -72,6 +74,6 @@ Disassembly of section .text:
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   c0:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c3:	74 c3                	je     88 <foo\+0x88>
-  c5:	74 c1                	je     88 <foo\+0x88>
+  c3:	74 c3                	je     (0x)?88( .*)?
+  c5:	74 c1                	je     (0x)?88( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1d.d b/gas/testsuite/gas/i386/align-branch-1d.d
index db62f0819d..7ea8d8f44b 100644
--- a/gas/testsuite/gas/i386/align-branch-1d.d
+++ b/gas/testsuite/gas/i386/align-branch-1d.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   20:	39 c5                	cmp    %eax,%ebp
-  22:	74 5b                	je     7f <foo\+0x7f>
+  22:	74 5b                	je     (0x)?7f( .*)?
   24:	3e 89 73 f4          	mov    %esi,%ds:-0xc\(%ebx\)
   28:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   2b:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %ebp
   3e:	5d                   	pop    %ebp
   3f:	5d                   	pop    %ebp
-  40:	74 3d                	je     7f <foo\+0x7f>
+  40:	74 3d                	je     (0x)?7f( .*)?
   42:	5d                   	pop    %ebp
-  43:	74 3a                	je     7f <foo\+0x7f>
+  43:	74 3a                	je     (0x)?7f( .*)?
   45:	89 44 24 fc          	mov    %eax,-0x4\(%esp\)
   49:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   4c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   58:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5b:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5e:	5d                   	pop    %ebp
-  5f:	eb 24                	jmp    85 <foo\+0x85>
-  61:	eb 22                	jmp    85 <foo\+0x85>
-  63:	eb 20                	jmp    85 <foo\+0x85>
+  5f:	eb 24                	jmp    (0x)?85( .*)?
+  61:	eb 22                	jmp    (0x)?85( .*)?
+  63:	eb 20                	jmp    (0x)?85( .*)?
   65:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   68:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6b:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,10 +56,12 @@ Disassembly of section .text:
   77:	5d                   	pop    %ebp
   78:	5d                   	pop    %ebp
   79:	39 c5                	cmp    %eax,%ebp
-  7b:	74 02                	je     7f <foo\+0x7f>
-  7d:	eb 06                	jmp    85 <foo\+0x85>
+  7b:	74 02                	je     (0x)?7f( .*)?
+  7d:	eb 06                	jmp    (0x)?85( .*)?
+#...
   7f:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   82:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   85:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8b:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   91:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -71,6 +73,6 @@ Disassembly of section .text:
   b1:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   b7:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   bd:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c0:	74 c3                	je     85 <foo\+0x85>
-  c2:	74 c1                	je     85 <foo\+0x85>
+  c0:	74 c3                	je     (0x)?85( .*)?
+  c2:	74 c1                	je     (0x)?85( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1e.d b/gas/testsuite/gas/i386/align-branch-1e.d
index dafbee13f1..8a1269c177 100644
--- a/gas/testsuite/gas/i386/align-branch-1e.d
+++ b/gas/testsuite/gas/i386/align-branch-1e.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   18:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1b:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1e:	39 c5                	cmp    %eax,%ebp
-  20:	74 5a                	je     7c <foo\+0x7c>
+  20:	74 5a                	je     (0x)?7c( .*)?
   22:	89 73 f4             	mov    %esi,-0xc\(%ebx\)
   25:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   28:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3a:	5d                   	pop    %ebp
   3b:	5d                   	pop    %ebp
   3c:	5d                   	pop    %ebp
-  3d:	74 3d                	je     7c <foo\+0x7c>
+  3d:	74 3d                	je     (0x)?7c( .*)?
   3f:	5d                   	pop    %ebp
-  40:	74 3a                	je     7c <foo\+0x7c>
+  40:	74 3a                	je     (0x)?7c( .*)?
   42:	89 44 24 fc          	mov    %eax,-0x4\(%esp\)
   46:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   49:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   55:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   58:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5b:	5d                   	pop    %ebp
-  5c:	eb 24                	jmp    82 <foo\+0x82>
-  5e:	eb 22                	jmp    82 <foo\+0x82>
-  60:	eb 20                	jmp    82 <foo\+0x82>
+  5c:	eb 24                	jmp    (0x)?82( .*)?
+  5e:	eb 22                	jmp    (0x)?82( .*)?
+  60:	eb 20                	jmp    (0x)?82( .*)?
   62:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   65:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   68:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,10 +56,12 @@ Disassembly of section .text:
   74:	5d                   	pop    %ebp
   75:	5d                   	pop    %ebp
   76:	39 c5                	cmp    %eax,%ebp
-  78:	74 02                	je     7c <foo\+0x7c>
-  7a:	eb 06                	jmp    82 <foo\+0x82>
+  78:	74 02                	je     (0x)?7c( .*)?
+  7a:	eb 06                	jmp    (0x)?82( .*)?
+#...
   7c:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   7f:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   82:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -71,7 +73,7 @@ Disassembly of section .text:
   ae:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  bd:	74 c3                	je     82 <foo\+0x82>
+  bd:	74 c3                	je     (0x)?82( .*)?
   bf:	90                   	nop
-  c0:	74 c0                	je     82 <foo\+0x82>
+  c0:	74 c0                	je     (0x)?82( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1f.d b/gas/testsuite/gas/i386/align-branch-1f.d
index bf197c979b..07d75f6090 100644
--- a/gas/testsuite/gas/i386/align-branch-1f.d
+++ b/gas/testsuite/gas/i386/align-branch-1f.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   18:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1b:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1e:	39 c5                	cmp    %eax,%ebp
-  20:	74 5c                	je     7e <foo\+0x7e>
+  20:	74 5c                	je     (0x)?7e( .*)?
   22:	89 73 f4             	mov    %esi,-0xc\(%ebx\)
   25:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   28:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3a:	5d                   	pop    %ebp
   3b:	5d                   	pop    %ebp
   3c:	5d                   	pop    %ebp
-  3d:	74 3f                	je     7e <foo\+0x7e>
+  3d:	74 3f                	je     (0x)?7e( .*)?
   3f:	5d                   	pop    %ebp
-  40:	74 3c                	je     7e <foo\+0x7e>
+  40:	74 3c                	je     (0x)?7e( .*)?
   42:	89 44 24 fc          	mov    %eax,-0x4\(%esp\)
   46:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   49:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,10 +44,10 @@ Disassembly of section .text:
   55:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   58:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5b:	5d                   	pop    %ebp
-  5c:	eb 27                	jmp    85 <foo\+0x85>
+  5c:	eb 27                	jmp    (0x)?85( .*)?
   5e:	66 90                	xchg   %ax,%ax
-  60:	eb 23                	jmp    85 <foo\+0x85>
-  62:	eb 21                	jmp    85 <foo\+0x85>
+  60:	eb 23                	jmp    (0x)?85( .*)?
+  62:	eb 21                	jmp    (0x)?85( .*)?
   64:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   67:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6a:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -57,10 +57,12 @@ Disassembly of section .text:
   76:	5d                   	pop    %ebp
   77:	5d                   	pop    %ebp
   78:	39 c5                	cmp    %eax,%ebp
-  7a:	74 02                	je     7e <foo\+0x7e>
-  7c:	eb 07                	jmp    85 <foo\+0x85>
+  7a:	74 02                	je     (0x)?7e( .*)?
+  7c:	eb 07                	jmp    (0x)?85( .*)?
+#...
   7e:	36 8b 45 f4          	mov    %ss:-0xc\(%ebp\),%eax
   82:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   85:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8b:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   91:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -72,6 +74,6 @@ Disassembly of section .text:
   b1:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   b7:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   bd:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c0:	74 c3                	je     85 <foo\+0x85>
-  c2:	74 c1                	je     85 <foo\+0x85>
+  c0:	74 c3                	je     (0x)?85( .*)?
+  c2:	74 c1                	je     (0x)?85( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1g.d b/gas/testsuite/gas/i386/align-branch-1g.d
index 6cae2cd5f4..2c578e81eb 100644
--- a/gas/testsuite/gas/i386/align-branch-1g.d
+++ b/gas/testsuite/gas/i386/align-branch-1g.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   20:	39 c5                	cmp    %eax,%ebp
-  22:	74 5e                	je     82 <foo\+0x82>
+  22:	74 5e                	je     (0x)?82( .*)?
   24:	3e 89 73 f4          	mov    %esi,%ds:-0xc\(%ebx\)
   28:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   2b:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %ebp
   3e:	5d                   	pop    %ebp
   3f:	5d                   	pop    %ebp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %ebp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	36 89 44 24 fc       	mov    %eax,%ss:-0x4\(%esp\)
   4a:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   4d:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   59:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5c:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5f:	5d                   	pop    %ebp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,11 +56,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %ebp
   79:	5d                   	pop    %ebp
   7a:	39 c5                	cmp    %eax,%ebp
-  7c:	74 04                	je     82 <foo\+0x82>
+  7c:	74 04                	je     (0x)?82( .*)?
   7e:	66 90                	xchg   %ax,%ax
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -72,6 +74,6 @@ Disassembly of section .text:
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   c0:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c3:	74 c3                	je     88 <foo\+0x88>
-  c5:	74 c1                	je     88 <foo\+0x88>
+  c3:	74 c3                	je     (0x)?88( .*)?
+  c5:	74 c1                	je     (0x)?88( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1h.d b/gas/testsuite/gas/i386/align-branch-1h.d
index 01871ee98f..9f49030c09 100644
--- a/gas/testsuite/gas/i386/align-branch-1h.d
+++ b/gas/testsuite/gas/i386/align-branch-1h.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
   18:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1b:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1e:	39 c5                	cmp    %eax,%ebp
-  20:	74 5a                	je     7c <foo\+0x7c>
+  20:	74 5a                	je     (0x)?7c( .*)?
   22:	89 73 f4             	mov    %esi,-0xc\(%ebx\)
   25:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   28:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -32,9 +32,9 @@ Disassembly of section .text:
   3a:	5d                   	pop    %ebp
   3b:	5d                   	pop    %ebp
   3c:	5d                   	pop    %ebp
-  3d:	74 3d                	je     7c <foo\+0x7c>
+  3d:	74 3d                	je     (0x)?7c( .*)?
   3f:	5d                   	pop    %ebp
-  40:	74 3a                	je     7c <foo\+0x7c>
+  40:	74 3a                	je     (0x)?7c( .*)?
   42:	89 44 24 fc          	mov    %eax,-0x4\(%esp\)
   46:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   49:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -44,9 +44,9 @@ Disassembly of section .text:
   55:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   58:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5b:	5d                   	pop    %ebp
-  5c:	eb 24                	jmp    82 <foo\+0x82>
-  5e:	eb 22                	jmp    82 <foo\+0x82>
-  60:	eb 20                	jmp    82 <foo\+0x82>
+  5c:	eb 24                	jmp    (0x)?82( .*)?
+  5e:	eb 22                	jmp    (0x)?82( .*)?
+  60:	eb 20                	jmp    (0x)?82( .*)?
   62:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   65:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   68:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -56,10 +56,12 @@ Disassembly of section .text:
   74:	5d                   	pop    %ebp
   75:	5d                   	pop    %ebp
   76:	39 c5                	cmp    %eax,%ebp
-  78:	74 02                	je     7c <foo\+0x7c>
-  7a:	eb 06                	jmp    82 <foo\+0x82>
+  78:	74 02                	je     (0x)?7c( .*)?
+  7a:	eb 06                	jmp    (0x)?82( .*)?
+#...
   7c:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   7f:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   82:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -71,6 +73,6 @@ Disassembly of section .text:
   ae:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  bd:	74 c3                	je     82 <foo\+0x82>
-  bf:	74 c1                	je     82 <foo\+0x82>
+  bd:	74 c3                	je     (0x)?82( .*)?
+  bf:	74 c1                	je     (0x)?82( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-1i.d b/gas/testsuite/gas/i386/align-branch-1i.d
index e2cbc28cde..75bf965b68 100644
--- a/gas/testsuite/gas/i386/align-branch-1i.d
+++ b/gas/testsuite/gas/i386/align-branch-1i.d
@@ -21,7 +21,7 @@ Disassembly of section .text:
   1b:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   1e:	66 90                	xchg   %ax,%ax
   20:	39 c5                	cmp    %eax,%ebp
-  22:	74 5e                	je     82 <foo\+0x82>
+  22:	74 5e                	je     (0x)?82( .*)?
   24:	89 73 f4             	mov    %esi,-0xc\(%ebx\)
   27:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   2a:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -34,9 +34,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %ebp
   3e:	5d                   	pop    %ebp
   3f:	90                   	nop
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %ebp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	89 44 24 fc          	mov    %eax,-0x4\(%esp\)
   49:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   4c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -47,9 +47,9 @@ Disassembly of section .text:
   5b:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   5e:	5d                   	pop    %ebp
   5f:	90                   	nop
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%ebp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%ebp\)
@@ -59,11 +59,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %ebp
   79:	5d                   	pop    %ebp
   7a:	39 c5                	cmp    %eax,%ebp
-  7c:	74 04                	je     82 <foo\+0x82>
+  7c:	74 04                	je     (0x)?82( .*)?
   7e:	66 90                	xchg   %ax,%ax
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%ebp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%ebp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
@@ -75,6 +77,6 @@ Disassembly of section .text:
   b4:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   ba:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   c0:	89 75 00             	mov    %esi,0x0\(%ebp\)
-  c3:	74 c3                	je     88 <foo\+0x88>
-  c5:	74 c1                	je     88 <foo\+0x88>
+  c3:	74 c3                	je     (0x)?88( .*)?
+  c5:	74 c1                	je     (0x)?88( .*)?
 #pass
diff --git a/gas/testsuite/gas/i386/align-branch-5.d b/gas/testsuite/gas/i386/align-branch-5.d
index 1f114272ec..ca96c3c711 100644
--- a/gas/testsuite/gas/i386/align-branch-5.d
+++ b/gas/testsuite/gas/i386/align-branch-5.d
@@ -7,6 +7,7 @@ Disassembly of section .text:
 
 0+ <foo>:
    0:	c1 e9 02             	shr    \$0x2,%ecx
+#...
    3:	c1 e9 02             	shr    \$0x2,%ecx
    6:	c1 e9 02             	shr    \$0x2,%ecx
    9:	89 d1                	mov    %edx,%ecx
@@ -19,9 +20,10 @@ Disassembly of section .text:
   1c:	c1 e9 02             	shr    \$0x2,%ecx
   1f:	f6 c2 02             	test   \$0x2,%dl
   22:	f3 ab                	rep stos %eax,%es:\(%edi\)
-  24:	75 dd                	jne    3 <foo\+0x3>
+  24:	75 dd                	jne    (0x)?3( .*)?
   26:	31 c0                	xor    %eax,%eax
   28:	c1 e9 02             	shr    \$0x2,%ecx
+#...
   2b:	c1 e9 02             	shr    \$0x2,%ecx
   2e:	c1 e9 02             	shr    \$0x2,%ecx
   31:	89 d1                	mov    %edx,%ecx
@@ -31,6 +33,6 @@ Disassembly of section .text:
   3b:	c1 e9 02             	shr    \$0x2,%ecx
   3e:	f6 c2 02             	test   \$0x2,%dl
   41:	e8 [0-9a-f ]+       	call   .*
-  46:	75 e3                	jne    2b <foo\+0x2b>
+  46:	75 e3                	jne    (0x)?2b( .*)?
   48:	31 c0                	xor    %eax,%eax
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1a.d b/gas/testsuite/gas/i386/x86-64-align-branch-1a.d
index f96808ac21..0a5c8afcd3 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1a.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1a.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   20:	48 39 c5             	cmp    %rax,%rbp
-  23:	74 5d                	je     82 <foo\+0x82>
+  23:	74 5d                	je     (0x)?82( .*)?
   25:	2e 89 75 f4          	mov    %esi,%cs:-0xc\(%rbp\)
   29:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   2c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   3b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3e:	5d                   	pop    %rbp
   3f:	5d                   	pop    %rbp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %rbp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	2e 89 45 fc          	mov    %eax,%cs:-0x4\(%rbp\)
   49:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   4c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   5b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5e:	5d                   	pop    %rbp
   5f:	5d                   	pop    %rbp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,11 +54,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %rbp
   79:	5d                   	pop    %rbp
   7a:	48 39 c5             	cmp    %rax,%rbp
-  7d:	74 03                	je     82 <foo\+0x82>
+  7d:	74 03                	je     (0x)?82( .*)?
   7f:	90                   	nop
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -69,7 +71,7 @@ Disassembly of section .text:
   b2:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b8:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   be:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c4:	eb c2                	jmp    88 <foo\+0x88>
+  c4:	eb c2                	jmp    (0x)?88( .*)?
   c6:	5d                   	pop    %rbp
   c7:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1b.d b/gas/testsuite/gas/i386/x86-64-align-branch-1b.d
index 10b3476796..375a31a8b2 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1b.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1b.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   20:	48 39 c5             	cmp    %rax,%rbp
-  23:	74 5d                	je     82 <foo\+0x82>
+  23:	74 5d                	je     (0x)?82( .*)?
   25:	2e 89 75 f4          	mov    %esi,%cs:-0xc\(%rbp\)
   29:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   2c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   3b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3e:	5d                   	pop    %rbp
   3f:	5d                   	pop    %rbp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %rbp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	2e 89 45 fc          	mov    %eax,%cs:-0x4\(%rbp\)
   49:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   4c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   5b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5e:	5d                   	pop    %rbp
   5f:	5d                   	pop    %rbp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,11 +54,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %rbp
   79:	5d                   	pop    %rbp
   7a:	48 39 c5             	cmp    %rax,%rbp
-  7d:	74 03                	je     82 <foo\+0x82>
+  7d:	74 03                	je     (0x)?82( .*)?
   7f:	90                   	nop
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -69,7 +71,7 @@ Disassembly of section .text:
   b2:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b8:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   be:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c4:	eb c2                	jmp    88 <foo\+0x88>
+  c4:	eb c2                	jmp    (0x)?88( .*)?
   c6:	5d                   	pop    %rbp
   c7:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1c.d b/gas/testsuite/gas/i386/x86-64-align-branch-1c.d
index 53c848aed4..b4e1c77bf9 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1c.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1c.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   20:	48 39 c5             	cmp    %rax,%rbp
-  23:	74 5d                	je     82 <foo\+0x82>
+  23:	74 5d                	je     (0x)?82( .*)?
   25:	2e 89 75 f4          	mov    %esi,%cs:-0xc\(%rbp\)
   29:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   2c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   3b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3e:	5d                   	pop    %rbp
   3f:	5d                   	pop    %rbp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %rbp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	2e 89 45 fc          	mov    %eax,%cs:-0x4\(%rbp\)
   49:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   4c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   5b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5e:	5d                   	pop    %rbp
   5f:	5d                   	pop    %rbp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,11 +54,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %rbp
   79:	5d                   	pop    %rbp
   7a:	48 39 c5             	cmp    %rax,%rbp
-  7d:	74 03                	je     82 <foo\+0x82>
+  7d:	74 03                	je     (0x)?82( .*)?
   7f:	90                   	nop
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -69,7 +71,7 @@ Disassembly of section .text:
   b2:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b8:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   be:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c4:	eb c2                	jmp    88 <foo\+0x88>
+  c4:	eb c2                	jmp    (0x)?88( .*)?
   c6:	5d                   	pop    %rbp
   c7:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1d.d b/gas/testsuite/gas/i386/x86-64-align-branch-1d.d
index ae6445b29e..c72b017627 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1d.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1d.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   20:	48 39 c5             	cmp    %rax,%rbp
-  23:	74 5b                	je     80 <foo\+0x80>
+  23:	74 5b                	je     (0x)?80( .*)?
   25:	2e 89 75 f4          	mov    %esi,%cs:-0xc\(%rbp\)
   29:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   2c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   3b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3e:	5d                   	pop    %rbp
   3f:	5d                   	pop    %rbp
-  40:	74 3e                	je     80 <foo\+0x80>
+  40:	74 3e                	je     (0x)?80( .*)?
   42:	5d                   	pop    %rbp
-  43:	74 3b                	je     80 <foo\+0x80>
+  43:	74 3b                	je     (0x)?80( .*)?
   45:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   48:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   4b:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   5a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5d:	5d                   	pop    %rbp
   5e:	5d                   	pop    %rbp
-  5f:	eb 25                	jmp    86 <foo\+0x86>
-  61:	eb 23                	jmp    86 <foo\+0x86>
-  63:	eb 21                	jmp    86 <foo\+0x86>
+  5f:	eb 25                	jmp    (0x)?86( .*)?
+  61:	eb 23                	jmp    (0x)?86( .*)?
+  63:	eb 21                	jmp    (0x)?86( .*)?
   65:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   68:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6b:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,10 +54,12 @@ Disassembly of section .text:
   77:	5d                   	pop    %rbp
   78:	5d                   	pop    %rbp
   79:	48 39 c5             	cmp    %rax,%rbp
-  7c:	74 02                	je     80 <foo\+0x80>
-  7e:	eb 06                	jmp    86 <foo\+0x86>
+  7c:	74 02                	je     (0x)?80( .*)?
+  7e:	eb 06                	jmp    (0x)?86( .*)?
+#...
   80:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   83:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   86:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8c:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   92:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -68,7 +70,7 @@ Disassembly of section .text:
   b0:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b6:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   bc:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c2:	eb c2                	jmp    86 <foo\+0x86>
+  c2:	eb c2                	jmp    (0x)?86( .*)?
   c4:	5d                   	pop    %rbp
   c5:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1e.d b/gas/testsuite/gas/i386/x86-64-align-branch-1e.d
index beb7744f65..77b6253ac1 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1e.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1e.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   17:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	48 39 c5             	cmp    %rax,%rbp
-  20:	74 5b                	je     7d <foo\+0x7d>
+  20:	74 5b                	je     (0x)?7d( .*)?
   22:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   25:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   28:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   37:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3a:	5d                   	pop    %rbp
   3b:	5d                   	pop    %rbp
-  3c:	74 3f                	je     7d <foo\+0x7d>
+  3c:	74 3f                	je     (0x)?7d( .*)?
   3e:	2e 5d                	cs pop %rbp
-  40:	74 3b                	je     7d <foo\+0x7d>
+  40:	74 3b                	je     (0x)?7d( .*)?
   42:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   45:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   48:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   57:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5a:	5d                   	pop    %rbp
   5b:	5d                   	pop    %rbp
-  5c:	eb 25                	jmp    83 <foo\+0x83>
-  5e:	eb 23                	jmp    83 <foo\+0x83>
-  60:	eb 21                	jmp    83 <foo\+0x83>
+  5c:	eb 25                	jmp    (0x)?83( .*)?
+  5e:	eb 23                	jmp    (0x)?83( .*)?
+  60:	eb 21                	jmp    (0x)?83( .*)?
   62:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   65:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   68:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,10 +54,12 @@ Disassembly of section .text:
   74:	5d                   	pop    %rbp
   75:	5d                   	pop    %rbp
   76:	48 39 c5             	cmp    %rax,%rbp
-  79:	74 02                	je     7d <foo\+0x7d>
-  7b:	eb 06                	jmp    83 <foo\+0x83>
+  79:	74 02                	je     (0x)?7d( .*)?
+  7b:	eb 06                	jmp    (0x)?83( .*)?
+#...
   7d:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   80:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   83:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   89:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8f:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -68,7 +70,7 @@ Disassembly of section .text:
   ad:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b3:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b9:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  bf:	eb c2                	jmp    83 <foo\+0x83>
+  bf:	eb c2                	jmp    (0x)?83( .*)?
   c1:	5d                   	pop    %rbp
   c2:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1f.d b/gas/testsuite/gas/i386/x86-64-align-branch-1f.d
index 24fbf45eec..aed8169873 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1f.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1f.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   17:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	48 39 c5             	cmp    %rax,%rbp
-  20:	74 5d                	je     7f <foo\+0x7f>
+  20:	74 5d                	je     (0x)?7f( .*)?
   22:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   25:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   28:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   37:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3a:	5d                   	pop    %rbp
   3b:	5d                   	pop    %rbp
-  3c:	74 41                	je     7f <foo\+0x7f>
+  3c:	74 41                	je     (0x)?7f( .*)?
   3e:	2e 5d                	cs pop %rbp
-  40:	74 3d                	je     7f <foo\+0x7f>
+  40:	74 3d                	je     (0x)?7f( .*)?
   42:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   45:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   48:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,10 +42,10 @@ Disassembly of section .text:
   57:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5a:	5d                   	pop    %rbp
   5b:	5d                   	pop    %rbp
-  5c:	eb 27                	jmp    85 <foo\+0x85>
+  5c:	eb 27                	jmp    (0x)?85( .*)?
   5e:	66 90                	xchg   %ax,%ax
-  60:	eb 23                	jmp    85 <foo\+0x85>
-  62:	eb 21                	jmp    85 <foo\+0x85>
+  60:	eb 23                	jmp    (0x)?85( .*)?
+  62:	eb 21                	jmp    (0x)?85( .*)?
   64:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   67:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6a:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -55,10 +55,12 @@ Disassembly of section .text:
   76:	5d                   	pop    %rbp
   77:	5d                   	pop    %rbp
   78:	48 39 c5             	cmp    %rax,%rbp
-  7b:	74 02                	je     7f <foo\+0x7f>
-  7d:	eb 06                	jmp    85 <foo\+0x85>
+  7b:	74 02                	je     (0x)?7f( .*)?
+  7d:	eb 06                	jmp    (0x)?85( .*)?
+#...
   7f:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   82:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   85:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8b:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   91:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -69,7 +71,7 @@ Disassembly of section .text:
   af:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b5:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   bb:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c1:	eb c2                	jmp    85 <foo\+0x85>
+  c1:	eb c2                	jmp    (0x)?85( .*)?
   c3:	5d                   	pop    %rbp
   c4:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1g.d b/gas/testsuite/gas/i386/x86-64-align-branch-1g.d
index 624494064b..d468c385b3 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1g.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1g.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   20:	48 39 c5             	cmp    %rax,%rbp
-  23:	74 5d                	je     82 <foo\+0x82>
+  23:	74 5d                	je     (0x)?82( .*)?
   25:	2e 89 75 f4          	mov    %esi,%cs:-0xc\(%rbp\)
   29:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   2c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   3b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3e:	5d                   	pop    %rbp
   3f:	5d                   	pop    %rbp
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %rbp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	2e 89 45 fc          	mov    %eax,%cs:-0x4\(%rbp\)
   49:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   4c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   5b:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   5e:	5d                   	pop    %rbp
   5f:	5d                   	pop    %rbp
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,11 +54,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %rbp
   79:	5d                   	pop    %rbp
   7a:	48 39 c5             	cmp    %rax,%rbp
-  7d:	74 03                	je     82 <foo\+0x82>
+  7d:	74 03                	je     (0x)?82( .*)?
   7f:	90                   	nop
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -69,7 +71,7 @@ Disassembly of section .text:
   b2:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b8:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   be:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c4:	eb c2                	jmp    88 <foo\+0x88>
+  c4:	eb c2                	jmp    (0x)?88( .*)?
   c6:	5d                   	pop    %rbp
   c7:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1h.d b/gas/testsuite/gas/i386/x86-64-align-branch-1h.d
index a6022be821..cee73617af 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1h.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1h.d
@@ -18,7 +18,7 @@ Disassembly of section .text:
   17:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	48 39 c5             	cmp    %rax,%rbp
-  20:	74 5a                	je     7c <foo\+0x7c>
+  20:	74 5a                	je     (0x)?7c( .*)?
   22:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   25:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   28:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -29,9 +29,9 @@ Disassembly of section .text:
   37:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   3a:	5d                   	pop    %rbp
   3b:	5d                   	pop    %rbp
-  3c:	74 3e                	je     7c <foo\+0x7c>
+  3c:	74 3e                	je     (0x)?7c( .*)?
   3e:	5d                   	pop    %rbp
-  3f:	74 3b                	je     7c <foo\+0x7c>
+  3f:	74 3b                	je     (0x)?7c( .*)?
   41:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   44:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   47:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -42,9 +42,9 @@ Disassembly of section .text:
   56:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   59:	5d                   	pop    %rbp
   5a:	5d                   	pop    %rbp
-  5b:	eb 25                	jmp    82 <foo\+0x82>
-  5d:	eb 23                	jmp    82 <foo\+0x82>
-  5f:	eb 21                	jmp    82 <foo\+0x82>
+  5b:	eb 25                	jmp    (0x)?82( .*)?
+  5d:	eb 23                	jmp    (0x)?82( .*)?
+  5f:	eb 21                	jmp    (0x)?82( .*)?
   61:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   64:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   67:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -54,10 +54,12 @@ Disassembly of section .text:
   73:	5d                   	pop    %rbp
   74:	5d                   	pop    %rbp
   75:	48 39 c5             	cmp    %rax,%rbp
-  78:	74 02                	je     7c <foo\+0x7c>
-  7a:	eb 06                	jmp    82 <foo\+0x82>
+  78:	74 02                	je     (0x)?7c( .*)?
+  7a:	eb 06                	jmp    (0x)?82( .*)?
+#...
   7c:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   7f:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   82:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -68,7 +70,7 @@ Disassembly of section .text:
   ac:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b2:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b8:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  be:	eb c2                	jmp    82 <foo\+0x82>
+  be:	eb c2                	jmp    (0x)?82( .*)?
   c0:	5d                   	pop    %rbp
   c1:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-1i.d b/gas/testsuite/gas/i386/x86-64-align-branch-1i.d
index 2493626fde..67b1b1507c 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-1i.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-1i.d
@@ -19,7 +19,7 @@ Disassembly of section .text:
   1a:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   1d:	0f 1f 00             	nopl   \(%rax\)
   20:	48 39 c5             	cmp    %rax,%rbp
-  23:	74 5d                	je     82 <foo\+0x82>
+  23:	74 5d                	je     (0x)?82( .*)?
   25:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   28:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   2b:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -31,9 +31,9 @@ Disassembly of section .text:
   3d:	5d                   	pop    %rbp
   3e:	5d                   	pop    %rbp
   3f:	90                   	nop
-  40:	74 40                	je     82 <foo\+0x82>
+  40:	74 40                	je     (0x)?82( .*)?
   42:	5d                   	pop    %rbp
-  43:	74 3d                	je     82 <foo\+0x82>
+  43:	74 3d                	je     (0x)?82( .*)?
   45:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   48:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   4b:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -45,9 +45,9 @@ Disassembly of section .text:
   5d:	5d                   	pop    %rbp
   5e:	5d                   	pop    %rbp
   5f:	90                   	nop
-  60:	eb 26                	jmp    88 <foo\+0x88>
-  62:	eb 24                	jmp    88 <foo\+0x88>
-  64:	eb 22                	jmp    88 <foo\+0x88>
+  60:	eb 26                	jmp    (0x)?88( .*)?
+  62:	eb 24                	jmp    (0x)?88( .*)?
+  64:	eb 22                	jmp    (0x)?88( .*)?
   66:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
   69:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
   6c:	89 7d f8             	mov    %edi,-0x8\(%rbp\)
@@ -57,11 +57,13 @@ Disassembly of section .text:
   78:	5d                   	pop    %rbp
   79:	5d                   	pop    %rbp
   7a:	48 39 c5             	cmp    %rax,%rbp
-  7d:	74 03                	je     82 <foo\+0x82>
+  7d:	74 03                	je     (0x)?82( .*)?
   7f:	90                   	nop
-  80:	eb 06                	jmp    88 <foo\+0x88>
+  80:	eb 06                	jmp    (0x)?88( .*)?
+#...
   82:	8b 45 f4             	mov    -0xc\(%rbp\),%eax
   85:	89 45 fc             	mov    %eax,-0x4\(%rbp\)
+#...
   88:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   8e:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   94:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
@@ -72,7 +74,7 @@ Disassembly of section .text:
   b2:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   b8:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
   be:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%rbp\)
-  c4:	eb c2                	jmp    88 <foo\+0x88>
+  c4:	eb c2                	jmp    (0x)?88( .*)?
   c6:	5d                   	pop    %rbp
   c7:	c3                   	retq   
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-2.s b/gas/testsuite/gas/i386/x86-64-align-branch-2.s
index 54999f85b0..5c615e693b 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-2.s
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-2.s
@@ -40,5 +40,5 @@ foo:
   movl  %eax, %fs:0x1
   movq  %rsp, %rbp
   movl  %esi, -12(%rbp)
-  call  *foo
+  call  *0x123456(%rdi,%rsi,8)
   pushq  %rbp
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-2a.d b/gas/testsuite/gas/i386/x86-64-align-branch-2a.d
index aaf759d42e..691dff263b 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-2a.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-2a.d
@@ -45,6 +45,6 @@ Disassembly of section .text:
   62:	64 89 04 25 01 00 00 00 	mov    %eax,%fs:0x1
   6a:	48 89 e5             	mov    %rsp,%rbp
   6d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
-  70:	ff 14 25 00 00 00 00 	callq  \*0x0
+  70:	ff 94 f7 56 34 12 00 	callq  \*0x123456\(%rdi,%rsi,8\)
   77:	55                   	push   %rbp
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-2b.d b/gas/testsuite/gas/i386/x86-64-align-branch-2b.d
index 720868e363..9824aa71cb 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-2b.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-2b.d
@@ -45,6 +45,6 @@ Disassembly of section .text:
   66:	64 89 04 25 01 00 00 00 	mov    %eax,%fs:0x1
   6e:	48 89 e5             	mov    %rsp,%rbp
   71:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
-  74:	ff 14 25 00 00 00 00 	callq  \*0x0
+  74:	ff 94 f7 56 34 12 00 	callq  \*0x123456\(%rdi,%rsi,8\)
   7b:	55                   	push   %rbp
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-2c.d b/gas/testsuite/gas/i386/x86-64-align-branch-2c.d
index fb87c49cd5..7919f2f2ce 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-2c.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-2c.d
@@ -45,6 +45,6 @@ Disassembly of section .text:
   72:	64 89 04 25 01 00 00 00 	mov    %eax,%fs:0x1
   7a:	48 89 e5             	mov    %rsp,%rbp
   7d:	89 75 f4             	mov    %esi,-0xc\(%rbp\)
-  80:	ff 14 25 00 00 00 00 	callq  \*0x0
+  80:	ff 94 f7 56 34 12 00 	callq  \*0x123456\(%rdi,%rsi,8\)
   87:	55                   	push   %rbp
 #pass
diff --git a/gas/testsuite/gas/i386/x86-64-align-branch-5.d b/gas/testsuite/gas/i386/x86-64-align-branch-5.d
index 3a16c1bef1..9770a4a07f 100644
--- a/gas/testsuite/gas/i386/x86-64-align-branch-5.d
+++ b/gas/testsuite/gas/i386/x86-64-align-branch-5.d
@@ -8,6 +8,7 @@ Disassembly of section .text:
 
 0+ <foo>:
    0:	c1 e9 02             	shr    \$0x2,%ecx
+#...
    3:	c1 e9 02             	shr    \$0x2,%ecx
    6:	c1 e9 02             	shr    \$0x2,%ecx
    9:	89 d1                	mov    %edx,%ecx
@@ -20,9 +21,10 @@ Disassembly of section .text:
   1c:	c1 e9 02             	shr    \$0x2,%ecx
   1f:	f6 c2 02             	test   \$0x2,%dl
   22:	f3 ab                	rep stos %eax,%es:\(%rdi\)
-  24:	75 dd                	jne    3 <foo\+0x3>
+  24:	75 dd                	jne    (0x)?3( .*)?
   26:	31 c0                	xor    %eax,%eax
   28:	c1 e9 02             	shr    \$0x2,%ecx
+#...
   2b:	c1 e9 02             	shr    \$0x2,%ecx
   2e:	c1 e9 02             	shr    \$0x2,%ecx
   31:	89 d1                	mov    %edx,%ecx
@@ -31,7 +33,7 @@ Disassembly of section .text:
   38:	c1 e9 02             	shr    \$0x2,%ecx
   3b:	c1 e9 02             	shr    \$0x2,%ecx
   3e:	f6 c2 02             	test   \$0x2,%dl
-  41:	e8 00 00 00 00       	callq  46 <foo\+0x46>
-  46:	75 e3                	jne    2b <foo\+0x2b>
+  41:	e8 00 00 00 00       	callq  (0x)?46( .*)?
+  46:	75 e3                	jne    (0x)?2b( .*)?
   48:	31 c0                	xor    %eax,%eax
 #pass
diff --git a/ld/testsuite/ld-i386/align-branch-1.d b/ld/testsuite/ld-i386/align-branch-1.d
index 9eb728728d..b1347e5055 100644
--- a/ld/testsuite/ld-i386/align-branch-1.d
+++ b/ld/testsuite/ld-i386/align-branch-1.d
@@ -10,16 +10,16 @@ Disassembly of section .text:
 
 [a-f0-9]+ <_start>:
  +[a-f0-9]+:	85 d2                	test   %edx,%edx
- +[a-f0-9]+:	74 20                	je     8049024 <_start\+0x24>
+ +[a-f0-9]+:	74 20                	je     +[a-f0-9]+ <_start\+0x24>
  +[a-f0-9]+:	85 d2                	test   %edx,%edx
- +[a-f0-9]+:	74 1c                	je     8049024 <_start\+0x24>
+ +[a-f0-9]+:	74 1c                	je     +[a-f0-9]+ <_start\+0x24>
  +[a-f0-9]+:	85 ff                	test   %edi,%edi
- +[a-f0-9]+:	74 18                	je     8049024 <_start\+0x24>
+ +[a-f0-9]+:	74 18                	je     +[a-f0-9]+ <_start\+0x24>
  +[a-f0-9]+:	65 a1 00 00 00 00    	mov    %gs:0x0,%eax
  +[a-f0-9]+:	90                   	nop
  +[a-f0-9]+:	8d 74 26 00          	lea    0x0\(%esi,%eiz,1\),%esi
  +[a-f0-9]+:	3e 3e 3e 8b 90 fc ff ff ff 	ds ds mov %ds:-0x4\(%eax\),%edx
  +[a-f0-9]+:	85 d2                	test   %edx,%edx
- +[a-f0-9]+:	74 00                	je     8049024 <_start\+0x24>
+ +[a-f0-9]+:	74 00                	je     +[a-f0-9]+ <_start\+0x24>
  +[a-f0-9]+:	c3                   	ret    
 #pass
-- 
2.17.1


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