aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-07-22 20:22:38 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-07-22 20:22:38 +0000
commit7a9068fe16462c35cdccd371fe588111dd1866ea (patch)
treefc029bfd43870ee5597a6fbf0544b20a1601bbc2 /gas
parent9ccb86e77ea83a18c9fc336ac16a73bcbeb8030d (diff)
downloadgdb-7a9068fe16462c35cdccd371fe588111dd1866ea.zip
gdb-7a9068fe16462c35cdccd371fe588111dd1866ea.tar.gz
gdb-7a9068fe16462c35cdccd371fe588111dd1866ea.tar.bz2
Add initial Intel K1OM support.
bfd/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (ALL_MACHINES): Add cpu-k1om.lo. (ALL_MACHINES_CFILES): Add cpu-k1om.c. * Makefile.in: Regenerated. * archures.c (bfd_architecture): Add bfd_arch_k1om. (bfd_k1om_arch): New. (bfd_archures_list): Add &bfd_k1om_arch. * bfd-in2.h: Regenerated. * config.bfd (targ64_selvecs): Add bfd_elf64_k1om_vec if bfd_elf64_x86_64_vec is supported. Add bfd_elf64_k1om_freebsd_vec if bfd_elf64_x86_64_freebsd_vec is supported. (targ_selvecs): Likewise. * configure.in: Support bfd_elf64_k1om_vec and bfd_elf64_k1om_freebsd_vec. * configure: Regenerated. * cpu-k1om.c: New. * elf64-x86-64.c (elf64_k1om_elf_object_p): New. (bfd_elf64_k1om_vec): Likewise. (bfd_elf64_k1om_freebsd_vec): Likewise. * targets.c (bfd_elf64_k1om_vec): New. (bfd_elf64_k1om_freebsd_vec): Likewise. (_bfd_target_vector): Add bfd_elf64_k1om_vec and bfd_elf64_k1om_freebsd_vec. binutils/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * dwarf.c (init_dwarf_regnames): Handle EM_K1OM. * elfedit.c (elf_machine): Support EM_K1OM. (elf_class): Likewise. * readelf.c (guess_is_rela): Handle EM_K1OM. (dump_relocations): Likewise. (get_machine_name): Likewise. (get_section_type_name): Likewise. (get_elf_section_flags): Likewise. (process_section_headers): Likewise. (get_symbol_index_type): Likewise. (is_32bit_abs_reloc): Likewise. (is_32bit_pcrel_reloc): Likewise. (is_64bit_abs_reloc): Likewise. (is_64bit_pcrel_reloc): Likewise. (is_none_reloc): Likewise. * doc/binutils.texi: Mention K1OM for elfedit. binutils/testsuite/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/elfedit.exp: Run elfedit-4. * binutils-all/elfedit-4.d: New. gas/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (cpu_arch): Add k1om. (i386_align_code): Handle PROCESSOR_K1OM. (check_cpu_arch_compatible): Check EM_K1OM. (i386_arch): Handle Intel K1OM. (i386_mach): Return bfd_mach_k1om for Intel K1OM. (i386_target_format): Return ELF_TARGET_K1OM_FORMAT for Intel K1OM. * config/tc-i386.h (ELF_TARGET_K1OM_FORMAT): New. (processor_type): Add PROCESSOR_K1OM. * doc/c-i386.texi: Document k1om. gas/testsuite/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/k1om.d: New. * gas/i386/k1om-inval.l: Likewise. * gas/i386/k1om-inval.s: Likewise. * gas/i386/i386.exp: Run k1om-inval and k1om. include/elf/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * common.h (EM_K1OM): New. ld/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (ALL_64_EMULATIONS): Add eelf_k1om.o and eelf_k1om_fbsd.o (eelf_k1om.c): New. (eelf_k1om_fbsd.c): Likewise. * Makefile.in: Regenerated. * configure.tgt (targ64_extra_emuls): Add elf_k1om if elf_x86_64 is supported. Add elf_k1om_fbsd if elf_x86_64_fbsd is supported. (targ_extra_emuls): Likewise. * emulparams/elf_k1om.sh: New. * emulparams/elf_k1om_fbsd.sh: Likewise. ld/testsuite/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * ld-x86-64/abs-k1om.d: New. * ld-x86-64/protected2-k1om.d: Likewise. * ld-x86-64/protected3-k1om.d: Likewise. * ld-x86-64/x86-64.exp: Run abs-k1om, protected2-k1om and protected3-k1om. opcodes/ 2011-07-22 H.J. Lu <hongjiu.lu@intel.com> * configure.in: Handle bfd_k1om_arch. * configure: Regenerated. * disassemble.c (disassembler): Handle bfd_k1om_arch. * i386-dis.c (print_insn): Handle bfd_mach_k1om and bfd_mach_k1om_intel_syntax. * i386-gen.c (cpu_flag_init): Set CPU_UNKNOWN_FLAGS to ~(CpuL1OM|CpuK1OM). Add CPU_K1OM_FLAGS. (cpu_flags): Add CpuK1OM. * i386-opc.h (CpuK1OM): New. (i386_cpu_flags): Add cpuk1om. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog15
-rw-r--r--gas/config/tc-i386.c29
-rw-r--r--gas/config/tc-i386.h5
-rw-r--r--gas/doc/c-i386.texi3
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/i386/i386.exp2
-rw-r--r--gas/testsuite/gas/i386/k1om-inval.l2
-rw-r--r--gas/testsuite/gas/i386/k1om-inval.s2
-rw-r--r--gas/testsuite/gas/i386/k1om.d259
9 files changed, 324 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index bf23ec2..d0d2693 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,18 @@
+2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (cpu_arch): Add k1om.
+ (i386_align_code): Handle PROCESSOR_K1OM.
+ (check_cpu_arch_compatible): Check EM_K1OM.
+ (i386_arch): Handle Intel K1OM.
+ (i386_mach): Return bfd_mach_k1om for Intel K1OM.
+ (i386_target_format): Return ELF_TARGET_K1OM_FORMAT for Intel
+ K1OM.
+
+ * config/tc-i386.h (ELF_TARGET_K1OM_FORMAT): New.
+ (processor_type): Add PROCESSOR_K1OM.
+
+ * doc/c-i386.texi: Document k1om.
+
2011-07-18 H.J. Lu <hongjiu.lu@intel.com>
* doc/c-i386.texi: Fix a typo.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index f67e0c4..1159572 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -633,6 +633,8 @@ static const arch_entry cpu_arch[] =
CPU_COREI7_FLAGS, 0, 0 },
{ STRING_COMMA_LEN ("l1om"), PROCESSOR_L1OM,
CPU_L1OM_FLAGS, 0, 0 },
+ { STRING_COMMA_LEN ("k1om"), PROCESSOR_K1OM,
+ CPU_K1OM_FLAGS, 0, 0 },
{ STRING_COMMA_LEN ("k6"), PROCESSOR_K6,
CPU_K6_FLAGS, 0, 0 },
{ STRING_COMMA_LEN ("k6_2"), PROCESSOR_K6,
@@ -1081,6 +1083,7 @@ i386_align_code (fragS *fragP, int count)
case PROCESSOR_CORE2:
case PROCESSOR_COREI7:
case PROCESSOR_L1OM:
+ case PROCESSOR_K1OM:
case PROCESSOR_GENERIC64:
patt = alt_long_patt;
break;
@@ -1133,6 +1136,7 @@ i386_align_code (fragS *fragP, int count)
case PROCESSOR_CORE2:
case PROCESSOR_COREI7:
case PROCESSOR_L1OM:
+ case PROCESSOR_K1OM:
if (fragP->tc_frag_data.isa_flags.bitfield.cpunop)
patt = alt_long_patt;
else
@@ -2125,6 +2129,11 @@ check_cpu_arch_compatible (const char *name ATTRIBUTE_UNUSED,
|| new_flag.bitfield.cpul1om)
return;
+ /* If we are targeting Intel K1OM, we must enable it. */
+ if (get_elf_backend_data (stdoutput)->elf_machine_code != EM_K1OM
+ || new_flag.bitfield.cpuk1om)
+ return;
+
as_bad (_("`%s' is not supported on `%s'"), name, arch);
#endif
}
@@ -2236,6 +2245,13 @@ i386_arch (void)
as_fatal (_("Intel L1OM is 64bit ELF only"));
return bfd_arch_l1om;
}
+ else if (cpu_arch_isa == PROCESSOR_K1OM)
+ {
+ if (OUTPUT_FLAVOR != bfd_target_elf_flavour
+ || flag_code != CODE_64BIT)
+ as_fatal (_("Intel K1OM is 64bit ELF only"));
+ return bfd_arch_k1om;
+ }
else
return bfd_arch_i386;
}
@@ -2252,6 +2268,13 @@ i386_mach (void)
as_fatal (_("Intel L1OM is 64bit ELF only"));
return bfd_mach_l1om;
}
+ else if (cpu_arch_isa == PROCESSOR_K1OM)
+ {
+ if (OUTPUT_FLAVOR != bfd_target_elf_flavour
+ || default_arch[6] != '\0')
+ as_fatal (_("Intel K1OM is 64bit ELF only"));
+ return bfd_mach_k1om;
+ }
else if (default_arch[6] == '\0')
return bfd_mach_x86_64;
else
@@ -8740,6 +8763,12 @@ i386_target_format (void)
as_fatal (_("Intel L1OM is 64bit only"));
return ELF_TARGET_L1OM_FORMAT;
}
+ if (cpu_arch_isa == PROCESSOR_K1OM)
+ {
+ if (x86_elf_abi != X86_64_ABI)
+ as_fatal (_("Intel K1OM is 64bit only"));
+ return ELF_TARGET_K1OM_FORMAT;
+ }
else
return format;
}
diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h
index 092e8c6..deb2e9f 100644
--- a/gas/config/tc-i386.h
+++ b/gas/config/tc-i386.h
@@ -84,6 +84,10 @@ extern unsigned long i386_mach (void);
#define ELF_TARGET_L1OM_FORMAT "elf64-l1om"
#endif
+#ifndef ELF_TARGET_K1OM_FORMAT
+#define ELF_TARGET_K1OM_FORMAT "elf64-k1om"
+#endif
+
#if ((defined (OBJ_MAYBE_COFF) && defined (OBJ_MAYBE_AOUT)) \
|| defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) \
|| defined (TE_PE) || defined (TE_PEP) || defined (OBJ_MACH_O))
@@ -224,6 +228,7 @@ enum processor_type
PROCESSOR_CORE2,
PROCESSOR_COREI7,
PROCESSOR_L1OM,
+ PROCESSOR_K1OM,
PROCESSOR_K6,
PROCESSOR_ATHLON,
PROCESSOR_K8,
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi
index 4397e60..30745b4 100644
--- a/gas/doc/c-i386.texi
+++ b/gas/doc/c-i386.texi
@@ -111,6 +111,7 @@ processor names are recognized:
@code{core2},
@code{corei7},
@code{l1om},
+@code{k1om},
@code{k6},
@code{k6_2},
@code{athlon},
@@ -1003,7 +1004,7 @@ supported on the CPU specified. The choices for @var{cpu_type} are:
@item @samp{i486} @tab @samp{i586} @tab @samp{i686} @tab @samp{pentium}
@item @samp{pentiumpro} @tab @samp{pentiumii} @tab @samp{pentiumiii} @tab @samp{pentium4}
@item @samp{prescott} @tab @samp{nocona} @tab @samp{core} @tab @samp{core2}
-@item @samp{corei7} @tab @samp{l1om}
+@item @samp{corei7} @tab @samp{l1om} @tab @samp{k1om}
@item @samp{k6} @tab @samp{k6_2} @tab @samp{athlon} @tab @samp{k8}
@item @samp{amdfam10} @tab @samp{bdver1} @tab @samp{bdver2}
@item @samp{generic32} @tab @samp{generic64}
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index e2ac6b8..b23fdb4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/k1om.d: New.
+ * gas/i386/k1om-inval.l: Likewise.
+ * gas/i386/k1om-inval.s: Likewise.
+
+ * gas/i386/i386.exp: Run k1om-inval and k1om.
+
2011-07-04 Maciej W. Rozycki <macro@codesourcery.com>
* gas/mips/loc-swap.d: New test case for DWARF-2 location with
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 67f4175..e38cd27 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -237,6 +237,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_list_test "ifunc-2"
run_dump_test "ifunc-3"
run_list_test "l1om-inval" "-march=l1om --32"
+ run_list_test "k1om-inval" "-march=k1om --32"
run_dump_test "localpic"
run_dump_test "debug1"
@@ -448,6 +449,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
run_dump_test "x86-64-opcode-inval-intel"
run_dump_test "intel-got64"
run_dump_test "l1om"
+ run_dump_test "k1om"
run_dump_test "x86-64-localpic"
run_dump_test "debug1"
diff --git a/gas/testsuite/gas/i386/k1om-inval.l b/gas/testsuite/gas/i386/k1om-inval.l
new file mode 100644
index 0000000..607bc62
--- /dev/null
+++ b/gas/testsuite/gas/i386/k1om-inval.l
@@ -0,0 +1,2 @@
+Assembler messages:
+Fatal error: Intel K1OM is 64bit only
diff --git a/gas/testsuite/gas/i386/k1om-inval.s b/gas/testsuite/gas/i386/k1om-inval.s
new file mode 100644
index 0000000..1ff7c29
--- /dev/null
+++ b/gas/testsuite/gas/i386/k1om-inval.s
@@ -0,0 +1,2 @@
+ .text
+ nop
diff --git a/gas/testsuite/gas/i386/k1om.d b/gas/testsuite/gas/i386/k1om.d
new file mode 100644
index 0000000..0682444
--- /dev/null
+++ b/gas/testsuite/gas/i386/k1om.d
@@ -0,0 +1,259 @@
+#source: x86_64.s
+#as: -J -march=k1om
+#objdump: -dw
+#name: k1om
+
+.*: +file format elf64-k1om.*
+
+Disassembly of section .text:
+
+0+ <.*>:
+[ ]*[a-f0-9]+: 01 ca add %ecx,%edx
+[ ]*[a-f0-9]+: 44 01 ca add %r9d,%edx
+[ ]*[a-f0-9]+: 41 01 ca add %ecx,%r10d
+[ ]*[a-f0-9]+: 48 01 ca add %rcx,%rdx
+[ ]*[a-f0-9]+: 4d 01 ca add %r9,%r10
+[ ]*[a-f0-9]+: 41 01 c0 add %eax,%r8d
+[ ]*[a-f0-9]+: 66 41 01 c0 add %ax,%r8w
+[ ]*[a-f0-9]+: 49 01 c0 add %rax,%r8
+[ ]*[a-f0-9]+: 05 11 22 33 44 add \$0x44332211,%eax
+[ ]*[a-f0-9]+: 48 05 11 22 33 f4 add \$0xfffffffff4332211,%rax
+[ ]*[a-f0-9]+: 66 05 33 44 add \$0x4433,%ax
+[ ]*[a-f0-9]+: 48 05 11 22 33 44 add \$0x44332211,%rax
+[ ]*[a-f0-9]+: 00 ca add %cl,%dl
+[ ]*[a-f0-9]+: 00 f7 add %dh,%bh
+[ ]*[a-f0-9]+: 40 00 f7 add %sil,%dil
+[ ]*[a-f0-9]+: 41 00 f7 add %sil,%r15b
+[ ]*[a-f0-9]+: 44 00 f7 add %r14b,%dil
+[ ]*[a-f0-9]+: 45 00 f7 add %r14b,%r15b
+[ ]*[a-f0-9]+: 50 push %rax
+[ ]*[a-f0-9]+: 41 50 push %r8
+[ ]*[a-f0-9]+: 41 59 pop %r9
+[ ]*[a-f0-9]+: 04 11 add \$0x11,%al
+[ ]*[a-f0-9]+: 80 c4 11 add \$0x11,%ah
+[ ]*[a-f0-9]+: 40 80 c4 11 add \$0x11,%spl
+[ ]*[a-f0-9]+: 41 80 c0 11 add \$0x11,%r8b
+[ ]*[a-f0-9]+: 41 80 c4 11 add \$0x11,%r12b
+[ ]*[a-f0-9]+: 0f 20 c0 mov %cr0,%rax
+[ ]*[a-f0-9]+: 41 0f 20 c0 mov %cr0,%r8
+[ ]*[a-f0-9]+: 44 0f 20 c0 mov %cr8,%rax
+[ ]*[a-f0-9]+: 44 0f 22 c0 mov %rax,%cr8
+[ ]*[a-f0-9]+: f3 48 a5 rep movsq %ds:\(%rsi\),%es:\(%rdi\)
+[ ]*[a-f0-9]+: 66 f3 a5 rep movsw %ds:\(%rsi\),%es:\(%rdi\)
+[ ]*[a-f0-9]+: f3 48 a5 rep movsq %ds:\(%rsi\),%es:\(%rdi\)
+[ ]*[a-f0-9]+: b0 11 mov \$0x11,%al
+[ ]*[a-f0-9]+: b4 11 mov \$0x11,%ah
+[ ]*[a-f0-9]+: 40 b4 11 mov \$0x11,%spl
+[ ]*[a-f0-9]+: 41 b4 11 mov \$0x11,%r12b
+[ ]*[a-f0-9]+: b8 44 33 22 11 mov \$0x11223344,%eax
+[ ]*[a-f0-9]+: 41 b8 44 33 22 11 mov \$0x11223344,%r8d
+[ ]*[a-f0-9]+: 48 b8 88 77 66 55 44 33 22 11 movabs \$0x1122334455667788,%rax
+[ ]*[a-f0-9]+: 49 b8 88 77 66 55 44 33 22 11 movabs \$0x1122334455667788,%r8
+[ ]*[a-f0-9]+: 03 00 add \(%rax\),%eax
+[ ]*[a-f0-9]+: 41 03 00 add \(%r8\),%eax
+[ ]*[a-f0-9]+: 45 03 00 add \(%r8\),%r8d
+[ ]*[a-f0-9]+: 49 03 00 add \(%r8\),%rax
+[ ]*[a-f0-9]+: 03 05 22 22 22 22 add 0x22222222\(%rip\),%eax # 222222c7 <foo\+0x222220c4>
+[ ]*[a-f0-9]+: 03 45 00 add 0x0\(%rbp\),%eax
+[ ]*[a-f0-9]+: 03 04 25 22 22 22 22 add 0x22222222,%eax
+[ ]*[a-f0-9]+: 41 03 45 00 add 0x0\(%r13\),%eax
+[ ]*[a-f0-9]+: 03 04 80 add \(%rax,%rax,4\),%eax
+[ ]*[a-f0-9]+: 41 03 04 80 add \(%r8,%rax,4\),%eax
+[ ]*[a-f0-9]+: 45 03 04 80 add \(%r8,%rax,4\),%r8d
+[ ]*[a-f0-9]+: 43 03 04 80 add \(%r8,%r8,4\),%eax
+[ ]*[a-f0-9]+: 46 01 04 81 add %r8d,\(%rcx,%r8,4\)
+[ ]*[a-f0-9]+: 03 14 c0 add \(%rax,%rax,8\),%edx
+[ ]*[a-f0-9]+: 03 14 c8 add \(%rax,%rcx,8\),%edx
+[ ]*[a-f0-9]+: 03 14 d0 add \(%rax,%rdx,8\),%edx
+[ ]*[a-f0-9]+: 03 14 d8 add \(%rax,%rbx,8\),%edx
+[ ]*[a-f0-9]+: 03 10 add \(%rax\),%edx
+[ ]*[a-f0-9]+: 03 14 e8 add \(%rax,%rbp,8\),%edx
+[ ]*[a-f0-9]+: 03 14 f0 add \(%rax,%rsi,8\),%edx
+[ ]*[a-f0-9]+: 03 14 f8 add \(%rax,%rdi,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 c0 add \(%rax,%r8,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 c8 add \(%rax,%r9,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 d0 add \(%rax,%r10,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 d8 add \(%rax,%r11,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 e0 add \(%rax,%r12,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 e8 add \(%rax,%r13,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 f0 add \(%rax,%r14,8\),%edx
+[ ]*[a-f0-9]+: 42 03 14 f8 add \(%rax,%r15,8\),%edx
+[ ]*[a-f0-9]+: 83 c1 11 add \$0x11,%ecx
+[ ]*[a-f0-9]+: 83 00 11 addl \$0x11,\(%rax\)
+[ ]*[a-f0-9]+: 48 83 00 11 addq \$0x11,\(%rax\)
+[ ]*[a-f0-9]+: 41 83 00 11 addl \$0x11,\(%r8\)
+[ ]*[a-f0-9]+: 83 04 81 11 addl \$0x11,\(%rcx,%rax,4\)
+[ ]*[a-f0-9]+: 41 83 04 81 11 addl \$0x11,\(%r9,%rax,4\)
+[ ]*[a-f0-9]+: 42 83 04 81 11 addl \$0x11,\(%rcx,%r8,4\)
+[ ]*[a-f0-9]+: 83 05 22 22 22 22 33 addl \$0x33,0x22222222\(%rip\) # 22222342 <foo\+0x2222213f>
+[ ]*[a-f0-9]+: 48 83 05 22 22 22 22 33 addq \$0x33,0x22222222\(%rip\) # 2222234a <foo\+0x22222147>
+[ ]*[a-f0-9]+: 81 05 22 22 22 22 33 33 33 33 addl \$0x33333333,0x22222222\(%rip\) # 22222354 <foo\+0x22222151>
+[ ]*[a-f0-9]+: 48 81 05 22 22 22 22 33 33 33 33 addq \$0x33333333,0x22222222\(%rip\) # 2222235f <foo\+0x2222215c>
+[ ]*[a-f0-9]+: 83 04 c5 22 22 22 22 33 addl \$0x33,0x22222222\(,%rax,8\)
+[ ]*[a-f0-9]+: 83 80 22 22 22 22 33 addl \$0x33,0x22222222\(%rax\)
+[ ]*[a-f0-9]+: 83 80 22 22 22 22 33 addl \$0x33,0x22222222\(%rax\)
+[ ]*[a-f0-9]+: 41 83 04 e8 33 addl \$0x33,\(%r8,%rbp,8\)
+[ ]*[a-f0-9]+: 83 04 25 22 22 22 22 33 addl \$0x33,0x22222222
+[ ]*[a-f0-9]+: a0 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%al
+[ ]*[a-f0-9]+: a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%eax
+[ ]*[a-f0-9]+: a2 11 22 33 44 55 66 77 88 movabs %al,0x8877665544332211
+[ ]*[a-f0-9]+: a3 11 22 33 44 55 66 77 88 movabs %eax,0x8877665544332211
+[ ]*[a-f0-9]+: 48 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%rax
+[ ]*[a-f0-9]+: 48 a3 11 22 33 44 55 66 77 88 movabs %rax,0x8877665544332211
+[ ]*[a-f0-9]+: 48 99 cqto
+[ ]*[a-f0-9]+: 48 98 cltq
+[ ]*[a-f0-9]+: 48 63 c0 movslq %eax,%rax
+[ ]*[a-f0-9]+: 48 0f bf c0 movswq %ax,%rax
+[ ]*[a-f0-9]+: 48 0f be c0 movsbq %al,%rax
+
+0+1a7 <bar>:
+[ ]*[a-f0-9]+: b0 00 mov \$0x0,%al
+[ ]*[a-f0-9]+: 66 b8 00 00 mov \$0x0,%ax
+[ ]*[a-f0-9]+: b8 00 00 00 00 mov \$0x0,%eax
+[ ]*[a-f0-9]+: 48 c7 c0 00 00 00 00 mov \$0x0,%rax
+[ ]*[a-f0-9]+: a1 00 00 00 00 00 00 00 00 movabs 0x0,%eax
+[ ]*[a-f0-9]+: 8b 04 25 00 00 00 00 mov 0x0,%eax
+[ ]*[a-f0-9]+: 8b 80 00 00 00 00 mov 0x0\(%rax\),%eax
+[ ]*[a-f0-9]+: 8b 05 00 00 00 00 mov 0x0\(%rip\),%eax # 1d5 <bar\+0x2e>
+[ ]*[a-f0-9]+: b0 00 mov \$0x0,%al
+[ ]*[a-f0-9]+: 66 b8 00 00 mov \$0x0,%ax
+[ ]*[a-f0-9]+: b8 00 00 00 00 mov \$0x0,%eax
+[ ]*[a-f0-9]+: 48 c7 c0 00 00 00 00 mov \$0x0,%rax
+[ ]*[a-f0-9]+: a1 00 00 00 00 00 00 00 00 movabs 0x0,%eax
+[ ]*[a-f0-9]+: 8b 04 25 00 00 00 00 mov 0x0,%eax
+[ ]*[a-f0-9]+: 8b 80 00 00 00 00 mov 0x0\(%rax\),%eax
+[ ]*[a-f0-9]+: 8b 05 00 00 00 00 mov 0x0\(%rip\),%eax # 203 <foo>
+
+0+203 <foo>:
+[ ]*[a-f0-9]+: a0 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%al
+[ ]*[a-f0-9]+: 66 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%ax
+[ ]*[a-f0-9]+: a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%eax
+[ ]*[a-f0-9]+: 48 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%rax
+[ ]*[a-f0-9]+: a2 11 22 33 44 55 66 77 88 movabs %al,0x8877665544332211
+[ ]*[a-f0-9]+: 66 a3 11 22 33 44 55 66 77 88 movabs %ax,0x8877665544332211
+[ ]*[a-f0-9]+: a3 11 22 33 44 55 66 77 88 movabs %eax,0x8877665544332211
+[ ]*[a-f0-9]+: 48 a3 11 22 33 44 55 66 77 88 movabs %rax,0x8877665544332211
+[ ]*[a-f0-9]+: a0 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%al
+[ ]*[a-f0-9]+: 66 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%ax
+[ ]*[a-f0-9]+: a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%eax
+[ ]*[a-f0-9]+: 48 a1 11 22 33 44 55 66 77 88 movabs 0x8877665544332211,%rax
+[ ]*[a-f0-9]+: a2 11 22 33 44 55 66 77 88 movabs %al,0x8877665544332211
+[ ]*[a-f0-9]+: 66 a3 11 22 33 44 55 66 77 88 movabs %ax,0x8877665544332211
+[ ]*[a-f0-9]+: a3 11 22 33 44 55 66 77 88 movabs %eax,0x8877665544332211
+[ ]*[a-f0-9]+: 48 a3 11 22 33 44 55 66 77 88 movabs %rax,0x8877665544332211
+[ ]*[a-f0-9]+: 8a 04 25 11 22 33 ff mov 0xffffffffff332211,%al
+[ ]*[a-f0-9]+: 66 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%ax
+[ ]*[a-f0-9]+: 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%eax
+[ ]*[a-f0-9]+: 48 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%rax
+[ ]*[a-f0-9]+: 88 04 25 11 22 33 ff mov %al,0xffffffffff332211
+[ ]*[a-f0-9]+: 66 89 04 25 11 22 33 ff mov %ax,0xffffffffff332211
+[ ]*[a-f0-9]+: 89 04 25 11 22 33 ff mov %eax,0xffffffffff332211
+[ ]*[a-f0-9]+: 48 89 04 25 11 22 33 ff mov %rax,0xffffffffff332211
+[ ]*[a-f0-9]+: 8a 04 25 11 22 33 ff mov 0xffffffffff332211,%al
+[ ]*[a-f0-9]+: 66 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%ax
+[ ]*[a-f0-9]+: 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%eax
+[ ]*[a-f0-9]+: 48 8b 04 25 11 22 33 ff mov 0xffffffffff332211,%rax
+[ ]*[a-f0-9]+: 88 04 25 11 22 33 ff mov %al,0xffffffffff332211
+[ ]*[a-f0-9]+: 66 89 04 25 11 22 33 ff mov %ax,0xffffffffff332211
+[ ]*[a-f0-9]+: 89 04 25 11 22 33 ff mov %eax,0xffffffffff332211
+[ ]*[a-f0-9]+: 48 89 04 25 11 22 33 ff mov %rax,0xffffffffff332211
+[ ]*[a-f0-9]+: 48 0f c7 08 cmpxchg16b \(%rax\)
+[ ]*[a-f0-9]+: 48 0f c7 08 cmpxchg16b \(%rax\)
+[ ]*[a-f0-9]+: 66 0f be f0 movsbw %al,%si
+[ ]*[a-f0-9]+: 0f be f0 movsbl %al,%esi
+[ ]*[a-f0-9]+: 48 0f be f0 movsbq %al,%rsi
+[ ]*[a-f0-9]+: 0f bf f0 movswl %ax,%esi
+[ ]*[a-f0-9]+: 48 0f bf f0 movswq %ax,%rsi
+[ ]*[a-f0-9]+: 48 63 f0 movslq %eax,%rsi
+[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f bf 10 movswl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f bf 10 movswq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f b6 f0 movzbw %al,%si
+[ ]*[a-f0-9]+: 0f b6 f0 movzbl %al,%esi
+[ ]*[a-f0-9]+: 48 0f b6 f0 movzbq %al,%rsi
+[ ]*[a-f0-9]+: 0f b7 f0 movzwl %ax,%esi
+[ ]*[a-f0-9]+: 48 0f b7 f0 movzwq %ax,%rsi
+[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f be f0 movsbw %al,%si
+[ ]*[a-f0-9]+: 0f be f0 movsbl %al,%esi
+[ ]*[a-f0-9]+: 48 0f be f0 movsbq %al,%rsi
+[ ]*[a-f0-9]+: 0f bf f0 movswl %ax,%esi
+[ ]*[a-f0-9]+: 48 0f bf f0 movswq %ax,%rsi
+[ ]*[a-f0-9]+: 48 63 f0 movslq %eax,%rsi
+[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f bf 10 movswl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f bf 10 movswq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f b6 f0 movzbw %al,%si
+[ ]*[a-f0-9]+: 0f b6 f0 movzbl %al,%esi
+[ ]*[a-f0-9]+: 48 0f b6 f0 movzbq %al,%rsi
+[ ]*[a-f0-9]+: 0f b7 f0 movzwl %ax,%esi
+[ ]*[a-f0-9]+: 48 0f b7 f0 movzwq %ax,%rsi
+[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
+[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%rsp\),%xmm1
+[ ]*[a-f0-9]+: f3 0f 7e 0c 24 movq \(%rsp\),%xmm1
+[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%rsp\)
+[ ]*[a-f0-9]+: 66 0f d6 0c 24 movq %xmm1,\(%rsp\)
+[ ]*[a-f0-9]+: df e0 fnstsw %ax
+[ ]*[a-f0-9]+: df e0 fnstsw %ax
+[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
+[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
+[ ]*[a-f0-9]+: df e0 fnstsw %ax
+[ ]*[a-f0-9]+: df e0 fnstsw %ax
+[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
+[ ]*[a-f0-9]+: 9b df e0 fstsw %ax
+[ ]*[a-f0-9]+: 66 0f be 00 movsbw \(%rax\),%ax
+[ ]*[a-f0-9]+: 0f be 00 movsbl \(%rax\),%eax
+[ ]*[a-f0-9]+: 48 0f be 00 movsbq \(%rax\),%rax
+[ ]*[a-f0-9]+: 66 0f be 10 movsbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f be 10 movsbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f be 10 movsbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 0f bf 10 movswl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f bf 10 movswq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 48 63 10 movslq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 48 63 00 movslq \(%rax\),%rax
+[ ]*[a-f0-9]+: 66 0f b6 00 movzbw \(%rax\),%ax
+[ ]*[a-f0-9]+: 0f b6 00 movzbl \(%rax\),%eax
+[ ]*[a-f0-9]+: 48 0f b6 00 movzbq \(%rax\),%rax
+[ ]*[a-f0-9]+: 66 0f b6 10 movzbw \(%rax\),%dx
+[ ]*[a-f0-9]+: 0f b6 10 movzbl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b6 10 movzbq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 0f b7 10 movzwl \(%rax\),%edx
+[ ]*[a-f0-9]+: 48 0f b7 10 movzwq \(%rax\),%rdx
+[ ]*[a-f0-9]+: 0f c3 00 movnti %eax,\(%rax\)
+[ ]*[a-f0-9]+: 0f c3 00 movnti %eax,\(%rax\)
+[ ]*[a-f0-9]+: 48 0f c3 00 movnti %rax,\(%rax\)
+[ ]*[a-f0-9]+: 48 0f c3 00 movnti %rax,\(%rax\)
+[ ]*[a-f0-9]+: 66 0f be 00 movsbw \(%rax\),%ax
+[ ]*[a-f0-9]+: 0f be 00 movsbl \(%rax\),%eax
+[ ]*[a-f0-9]+: 0f bf 00 movswl \(%rax\),%eax
+[ ]*[a-f0-9]+: 48 0f bf 00 movswq \(%rax\),%rax
+[ ]*[a-f0-9]+: 48 63 00 movslq \(%rax\),%rax
+[ ]*[a-f0-9]+: 48 63 00 movslq \(%rax\),%rax
+[ ]*[a-f0-9]+: 66 0f b6 00 movzbw \(%rax\),%ax
+[ ]*[a-f0-9]+: 0f b6 00 movzbl \(%rax\),%eax
+[ ]*[a-f0-9]+: 0f b7 00 movzwl \(%rax\),%eax
+[ ]*[a-f0-9]+: 48 0f b7 00 movzwq \(%rax\),%rax
+[ ]*[a-f0-9]+: 0f c3 00 movnti %eax,\(%rax\)
+[ ]*[a-f0-9]+: 48 0f c3 00 movnti %rax,\(%rax\)
+#pass