Blame SOURCES/gdb-test-ivy-bridge.patch

e1d87d
Index: gdb-7.12/gdb/testsuite/gdb.arch/amd64-ivy-bridge.exp
e1d87d
===================================================================
e1d87d
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
e1d87d
+++ gdb-7.12/gdb/testsuite/gdb.arch/amd64-ivy-bridge.exp	2016-10-20 20:57:31.652630455 +0200
e1d87d
@@ -0,0 +1,170 @@
e1d87d
+# Copyright 2011 Free Software Foundation, Inc.
e1d87d
+
e1d87d
+# This program is free software; you can redistribute it and/or modify
e1d87d
+# it under the terms of the GNU General Public License as published by
e1d87d
+# the Free Software Foundation; either version 3 of the License, or
e1d87d
+# (at your option) any later version.
e1d87d
+#
e1d87d
+# This program is distributed in the hope that it will be useful,
e1d87d
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
e1d87d
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e1d87d
+# GNU General Public License for more details.
e1d87d
+#
e1d87d
+# You should have received a copy of the GNU General Public License
e1d87d
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
e1d87d
+
e1d87d
+if {![istarget "x86_64-*-*"]} then {
e1d87d
+    return
e1d87d
+}
e1d87d
+
e1d87d
+set testfile amd64-ivy-bridge
e1d87d
+set test compilation
e1d87d
+if [prepare_for_testing ${testfile}.exp ${testfile}.x ${testfile}.S [list debug "additional_flags=-m64 -nostdlib"]] {
e1d87d
+    fail $test
e1d87d
+    return -1
e1d87d
+}
e1d87d
+pass $test
e1d87d
+
e1d87d
+gdb_test_no_output "set disassembly-flavor att"
e1d87d
+# gas/i386/x86-64-rdrnd.d
e1d87d
+# gas/i386/x86-64-f16c.d
e1d87d
+# gas/i386/x86-64-fsgs.d
e1d87d
+gdb_test "disassemble/r _start" "\r
e1d87d
+Dump of assembler code for function _start:\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand %bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand %ebx\r
e1d87d
+\[^\r\n\]+:\t48 0f c7 f3\t\(             \)?rdrand %rbx\r
e1d87d
+\[^\r\n\]+:\t66 41 0f c7 f0\t\(          \)?rdrand %r8w\r
e1d87d
+\[^\r\n\]+:\t41 0f c7 f0\t\(             \)?rdrand %r8d\r
e1d87d
+\[^\r\n\]+:\t49 0f c7 f0\t\(             \)?rdrand %r8\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand %bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand %ebx\r
e1d87d
+\[^\r\n\]+:\t48 0f c7 f3\t\(             \)?rdrand %rbx\r
e1d87d
+\[^\r\n\]+:\t66 41 0f c7 f0\t\(          \)?rdrand %r8w\r
e1d87d
+\[^\r\n\]+:\t41 0f c7 f0\t\(             \)?rdrand %r8d\r
e1d87d
+\[^\r\n\]+:\t49 0f c7 f0\t\(             \)?rdrand %r8\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps %xmm4,%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 42 7d 13 00\t\(          \)?vcvtph2ps \\(%r8\\),%ymm8\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps %xmm4,%xmm6\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps \\(%rcx\\),%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 43 7d 1d 00 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm8,\\(%r8\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,\\(%rcx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps %xmm4,%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 42 7d 13 00\t\(          \)?vcvtph2ps \\(%r8\\),%ymm8\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps \\(%rcx\\),%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps %xmm4,%xmm6\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps \\(%rcx\\),%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps \\(%rcx\\),%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,\\(%rcx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,\\(%rcx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 43 79 1d 00 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm8,\\(%r8\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,\\(%rcx\\)\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae c3\t\(          \)?rdfsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c0\t\(          \)?rdfsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c0\t\(          \)?rdfsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae cb\t\(          \)?rdgsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c8\t\(          \)?rdgsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c8\t\(          \)?rdgsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae d3\t\(          \)?wrfsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d0\t\(          \)?wrfsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d0\t\(          \)?wrfsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae db\t\(          \)?wrgsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d8\t\(          \)?wrgsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d8\t\(          \)?wrgsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae c3\t\(          \)?rdfsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c0\t\(          \)?rdfsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c0\t\(          \)?rdfsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae cb\t\(          \)?rdgsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c8\t\(          \)?rdgsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c8\t\(          \)?rdgsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae d3\t\(          \)?wrfsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d0\t\(          \)?wrfsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d0\t\(          \)?wrfsbase %r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae db\t\(          \)?wrgsbase %rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d8\t\(          \)?wrgsbase %r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d8\t\(          \)?wrgsbase %r8\r
e1d87d
+End of assembler dump\\." "att"
e1d87d
+
e1d87d
+gdb_test_no_output "set disassembly-flavor intel"
e1d87d
+# gas/i386/x86-64-rdrnd-intel.d
e1d87d
+# gas/i386/x86-64-f16c-intel.d
e1d87d
+# gas/i386/x86-64-fsgs-intel.d
e1d87d
+gdb_test "disassemble/r _start" "\r
e1d87d
+Dump of assembler code for function _start:\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand ebx\r
e1d87d
+\[^\r\n\]+:\t48 0f c7 f3\t\(             \)?rdrand rbx\r
e1d87d
+\[^\r\n\]+:\t66 41 0f c7 f0\t\(          \)?rdrand r8w\r
e1d87d
+\[^\r\n\]+:\t41 0f c7 f0\t\(             \)?rdrand r8d\r
e1d87d
+\[^\r\n\]+:\t49 0f c7 f0\t\(             \)?rdrand r8\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand ebx\r
e1d87d
+\[^\r\n\]+:\t48 0f c7 f3\t\(             \)?rdrand rbx\r
e1d87d
+\[^\r\n\]+:\t66 41 0f c7 f0\t\(          \)?rdrand r8w\r
e1d87d
+\[^\r\n\]+:\t41 0f c7 f0\t\(             \)?rdrand r8d\r
e1d87d
+\[^\r\n\]+:\t49 0f c7 f0\t\(             \)?rdrand r8\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps ymm4,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 42 7d 13 00\t\(          \)?vcvtph2ps ymm8,XMMWORD PTR \\\[r8\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps xmm6,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps xmm4,QWORD PTR \\\[rcx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph xmm4,ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 43 7d 1d 00 02\t\(       \)?vcvtps2ph XMMWORD PTR \\\[r8\\\],ymm8,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph xmm4,xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph QWORD PTR \\\[rcx\\\],xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps ymm4,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 42 7d 13 00\t\(          \)?vcvtph2ps ymm8,XMMWORD PTR \\\[r8\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps ymm4,XMMWORD PTR \\\[rcx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps xmm6,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps xmm4,QWORD PTR \\\[rcx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps xmm4,QWORD PTR \\\[rcx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph xmm4,ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph XMMWORD PTR \\\[rcx\\\],ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph XMMWORD PTR \\\[rcx\\\],ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph xmm4,xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 43 79 1d 00 02\t\(       \)?vcvtps2ph QWORD PTR \\\[r8\\\],xmm8,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph QWORD PTR \\\[rcx\\\],xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae c3\t\(          \)?rdfsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c0\t\(          \)?rdfsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c0\t\(          \)?rdfsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae cb\t\(          \)?rdgsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c8\t\(          \)?rdgsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c8\t\(          \)?rdgsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae d3\t\(          \)?wrfsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d0\t\(          \)?wrfsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d0\t\(          \)?wrfsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae db\t\(          \)?wrgsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d8\t\(          \)?wrgsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d8\t\(          \)?wrgsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae c3\t\(          \)?rdfsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c0\t\(          \)?rdfsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c0\t\(          \)?rdfsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae cb\t\(          \)?rdgsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae c8\t\(          \)?rdgsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae c8\t\(          \)?rdgsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae d3\t\(          \)?wrfsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d0\t\(          \)?wrfsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d0\t\(          \)?wrfsbase r8\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 48 0f ae db\t\(          \)?wrgsbase rbx\r
e1d87d
+\[^\r\n\]+:\tf3 41 0f ae d8\t\(          \)?wrgsbase r8d\r
e1d87d
+\[^\r\n\]+:\tf3 49 0f ae d8\t\(          \)?wrgsbase r8\r
e1d87d
+End of assembler dump\\." "intel"
e1d87d
Index: gdb-7.12/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp
e1d87d
===================================================================
e1d87d
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
e1d87d
+++ gdb-7.12/gdb/testsuite/gdb.arch/i386-ivy-bridge.exp	2016-10-20 20:57:43.251721147 +0200
e1d87d
@@ -0,0 +1,106 @@
e1d87d
+# Copyright 2011 Free Software Foundation, Inc.
e1d87d
+
e1d87d
+# This program is free software; you can redistribute it and/or modify
e1d87d
+# it under the terms of the GNU General Public License as published by
e1d87d
+# the Free Software Foundation; either version 3 of the License, or
e1d87d
+# (at your option) any later version.
e1d87d
+#
e1d87d
+# This program is distributed in the hope that it will be useful,
e1d87d
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
e1d87d
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e1d87d
+# GNU General Public License for more details.
e1d87d
+#
e1d87d
+# You should have received a copy of the GNU General Public License
e1d87d
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
e1d87d
+
e1d87d
+if {![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]} then {
e1d87d
+    return
e1d87d
+}
e1d87d
+
e1d87d
+set testfile i386-ivy-bridge
e1d87d
+set test compilation
e1d87d
+if [prepare_for_testing ${testfile}.exp ${testfile}.x ${testfile}.S [list debug "additional_flags=-m32 -nostdlib"]] {
e1d87d
+    fail $test
e1d87d
+    return -1
e1d87d
+}
e1d87d
+pass $test
e1d87d
+
e1d87d
+gdb_test_no_output "set disassembly-flavor att"
e1d87d
+# gas/i386/rdrnd.d
e1d87d
+# gas/i386/f16c.d
e1d87d
+# gas/i386/fsgs.d
e1d87d
+gdb_test "disassemble/r _start" "\r
e1d87d
+Dump of assembler code for function _start:\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand %bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand %ebx\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand %bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand %ebx\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps %xmm4,%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps \\(%ecx\\),%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps %xmm4,%xmm6\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps \\(%ecx\\),%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,\\(%ecx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,\\(%ecx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps %xmm4,%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps \\(%ecx\\),%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps \\(%ecx\\),%ymm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps %xmm4,%xmm6\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps \\(%ecx\\),%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps \\(%ecx\\),%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,\\(%ecx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%ymm4,\\(%ecx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,%xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,\\(%ecx\\)\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph \\\$0x2,%xmm4,\\(%ecx\\)\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase %ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase %ebx\r
e1d87d
+End of assembler dump\\." "att"
e1d87d
+
e1d87d
+gdb_test_no_output "set disassembly-flavor intel"
e1d87d
+# gas/i386/rdrnd-intel.d
e1d87d
+# gas/i386/f16c-intel.d
e1d87d
+# gas/i386/fsgs-intel.d
e1d87d
+gdb_test "disassemble/r _start" "\r
e1d87d
+Dump of assembler code for function _start:\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand ebx\r
e1d87d
+\[^\r\n\]+:\t66 0f c7 f3\t\(             \)?rdrand bx\r
e1d87d
+\[^\r\n\]+:\t0f c7 f3\t\(                \)?rdrand ebx\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps ymm4,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps ymm4,XMMWORD PTR \\\[ecx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps xmm6,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps xmm4,QWORD PTR \\\[ecx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph xmm4,ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph XMMWORD PTR \\\[ecx\\\],ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph xmm4,xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph QWORD PTR \\\[ecx\\\],xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 e4\t\(          \)?vcvtph2ps ymm4,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps ymm4,XMMWORD PTR \\\[ecx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 7d 13 21\t\(          \)?vcvtph2ps ymm4,XMMWORD PTR \\\[ecx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 f4\t\(          \)?vcvtph2ps xmm6,xmm4\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps xmm4,QWORD PTR \\\[ecx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e2 79 13 21\t\(          \)?vcvtph2ps xmm4,QWORD PTR \\\[ecx\\\]\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d e4 02\t\(       \)?vcvtps2ph xmm4,ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph XMMWORD PTR \\\[ecx\\\],ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 7d 1d 21 02\t\(       \)?vcvtps2ph XMMWORD PTR \\\[ecx\\\],ymm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d e4 02\t\(       \)?vcvtps2ph xmm4,xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph QWORD PTR \\\[ecx\\\],xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tc4 e3 79 1d 21 02\t\(       \)?vcvtps2ph QWORD PTR \\\[ecx\\\],xmm4,0x2\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae c3\t\(             \)?rdfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae cb\t\(             \)?rdgsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae d3\t\(             \)?wrfsbase ebx\r
e1d87d
+\[^\r\n\]+:\tf3 0f ae db\t\(             \)?wrgsbase ebx\r
e1d87d
+End of assembler dump\\." "intel"
e1d87d
Index: gdb-7.12/gdb/testsuite/gdb.arch/amd64-ivy-bridge.S
e1d87d
===================================================================
e1d87d
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
e1d87d
+++ gdb-7.12/gdb/testsuite/gdb.arch/amd64-ivy-bridge.S	2016-10-20 20:55:50.853842324 +0200
e1d87d
@@ -0,0 +1,98 @@
e1d87d
+/* Copyright 2011 Free Software Foundation, Inc.
e1d87d
+
e1d87d
+   This program is free software; you can redistribute it and/or modify
e1d87d
+   it under the terms of the GNU General Public License as published by
e1d87d
+   the Free Software Foundation; either version 3 of the License, or
e1d87d
+   (at your option) any later version.
e1d87d
+
e1d87d
+   This program is distributed in the hope that it will be useful,
e1d87d
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
e1d87d
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e1d87d
+   GNU General Public License for more details.
e1d87d
+
e1d87d
+   You should have received a copy of the GNU General Public License
e1d87d
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
e1d87d
+
e1d87d
+   This file is part of the gdb testsuite.  */
e1d87d
+
e1d87d
+	.globl _start
e1d87d
+_start:	.text
e1d87d
+
e1d87d
+/* gas/i386/x86-64-rdrnd.s */
e1d87d
+	.att_syntax prefix
e1d87d
+	rdrand %bx
e1d87d
+	rdrand %ebx
e1d87d
+	rdrand %rbx
e1d87d
+	rdrand %r8w
e1d87d
+	rdrand %r8d
e1d87d
+	rdrand %r8
e1d87d
+
e1d87d
+	.intel_syntax noprefix
e1d87d
+	rdrand bx
e1d87d
+	rdrand ebx
e1d87d
+	rdrand rbx
e1d87d
+	rdrand r8w
e1d87d
+	rdrand r8d
e1d87d
+	rdrand r8
e1d87d
+
e1d87d
+/* gas/i386/x86-64-f16c.s */
e1d87d
+	.att_syntax prefix
e1d87d
+	vcvtph2ps %xmm4,%ymm4
e1d87d
+	vcvtph2ps (%r8),%ymm8
e1d87d
+	vcvtph2ps %xmm4,%xmm6
e1d87d
+	vcvtph2ps (%rcx),%xmm4
e1d87d
+	vcvtps2ph $0x2,%ymm4,%xmm4
e1d87d
+	vcvtps2ph $0x2,%ymm8,(%r8)
e1d87d
+	vcvtps2ph $0x2,%xmm4,%xmm4
e1d87d
+	vcvtps2ph $0x2,%xmm4,(%rcx) 
e1d87d
+
e1d87d
+	.intel_syntax noprefix
e1d87d
+	vcvtph2ps ymm4,xmm4
e1d87d
+	vcvtph2ps ymm8,XMMWORD PTR [r8]
e1d87d
+	vcvtph2ps ymm4,[rcx]
e1d87d
+	vcvtph2ps xmm6,xmm4
e1d87d
+	vcvtph2ps xmm4,QWORD PTR [rcx]          
e1d87d
+	vcvtph2ps xmm4,[rcx]
e1d87d
+	vcvtps2ph xmm4,ymm4,0x2
e1d87d
+	vcvtps2ph XMMWORD PTR [rcx],ymm4,0x2    
e1d87d
+	vcvtps2ph [rcx],ymm4,0x2 
e1d87d
+	vcvtps2ph xmm4,xmm4,0x2
e1d87d
+	vcvtps2ph QWORD PTR [r8],xmm8,0x2       
e1d87d
+	vcvtps2ph [rcx],xmm4,0x2 
e1d87d
+
e1d87d
+/* gas/i386/x86-64-fsgs.s */
e1d87d
+	.att_syntax prefix
e1d87d
+	rdfsbase %ebx
e1d87d
+	rdfsbase %rbx
e1d87d
+	rdfsbase %r8d
e1d87d
+	rdfsbase %r8
e1d87d
+	rdgsbase %ebx
e1d87d
+	rdgsbase %rbx   
e1d87d
+	rdgsbase %r8d   
e1d87d
+	rdgsbase %r8    
e1d87d
+	wrfsbase %ebx   
e1d87d
+	wrfsbase %rbx   
e1d87d
+	wrfsbase %r8d   
e1d87d
+	wrfsbase %r8    
e1d87d
+	wrgsbase %ebx   
e1d87d
+	wrgsbase %rbx   
e1d87d
+	wrgsbase %r8d   
e1d87d
+	wrgsbase %r8    
e1d87d
+
e1d87d
+	.intel_syntax noprefix
e1d87d
+	rdfsbase ebx    
e1d87d
+	rdfsbase rbx    
e1d87d
+	rdfsbase r8d    
e1d87d
+	rdfsbase r8
e1d87d
+	rdgsbase ebx    
e1d87d
+	rdgsbase rbx    
e1d87d
+	rdgsbase r8d    
e1d87d
+	rdgsbase r8
e1d87d
+	wrfsbase ebx    
e1d87d
+	wrfsbase rbx    
e1d87d
+	wrfsbase r8d    
e1d87d
+	wrfsbase r8
e1d87d
+	wrgsbase ebx    
e1d87d
+	wrgsbase rbx    
e1d87d
+	wrgsbase r8d    
e1d87d
+	wrgsbase r8
e1d87d
Index: gdb-7.12/gdb/testsuite/gdb.arch/i386-ivy-bridge.S
e1d87d
===================================================================
e1d87d
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
e1d87d
+++ gdb-7.12/gdb/testsuite/gdb.arch/i386-ivy-bridge.S	2016-10-20 20:55:50.853842324 +0200
e1d87d
@@ -0,0 +1,67 @@
e1d87d
+/* Copyright 2011 Free Software Foundation, Inc.
e1d87d
+
e1d87d
+   This program is free software; you can redistribute it and/or modify
e1d87d
+   it under the terms of the GNU General Public License as published by
e1d87d
+   the Free Software Foundation; either version 3 of the License, or
e1d87d
+   (at your option) any later version.
e1d87d
+
e1d87d
+   This program is distributed in the hope that it will be useful,
e1d87d
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
e1d87d
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e1d87d
+   GNU General Public License for more details.
e1d87d
+
e1d87d
+   You should have received a copy of the GNU General Public License
e1d87d
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
e1d87d
+
e1d87d
+   This file is part of the gdb testsuite.  */
e1d87d
+
e1d87d
+	.globl _start
e1d87d
+_start:	.text
e1d87d
+
e1d87d
+/* gas/i386/rdrnd.s */
e1d87d
+	.att_syntax prefix
e1d87d
+	rdrand %bx
e1d87d
+	rdrand %ebx
e1d87d
+
e1d87d
+	.intel_syntax noprefix
e1d87d
+	rdrand bx
e1d87d
+	rdrand ebx
e1d87d
+
e1d87d
+/* gas/i386/f16c.s */
e1d87d
+	.att_syntax prefix
e1d87d
+	vcvtph2ps %xmm4,%ymm4
e1d87d
+	vcvtph2ps (%ecx),%ymm4
e1d87d
+	vcvtph2ps %xmm4,%xmm6
e1d87d
+	vcvtph2ps (%ecx),%xmm4
e1d87d
+	vcvtps2ph $0x2,%ymm4,%xmm4
e1d87d
+	vcvtps2ph $0x2,%ymm4,(%ecx) 
e1d87d
+	vcvtps2ph $0x2,%xmm4,%xmm4
e1d87d
+	vcvtps2ph $0x2,%xmm4,(%ecx) 
e1d87d
+
e1d87d
+	.intel_syntax noprefix
e1d87d
+	vcvtph2ps ymm4,xmm4
e1d87d
+	vcvtph2ps ymm4,XMMWORD PTR [ecx]
e1d87d
+	vcvtph2ps ymm4,[ecx]
e1d87d
+	vcvtph2ps xmm6,xmm4
e1d87d
+	vcvtph2ps xmm4,QWORD PTR [ecx]          
e1d87d
+	vcvtph2ps xmm4,[ecx]
e1d87d
+	vcvtps2ph xmm4,ymm4,0x2
e1d87d
+	vcvtps2ph XMMWORD PTR [ecx],ymm4,0x2    
e1d87d
+	vcvtps2ph [ecx],ymm4,0x2 
e1d87d
+	vcvtps2ph xmm4,xmm4,0x2
e1d87d
+	vcvtps2ph QWORD PTR [ecx],xmm4,0x2      
e1d87d
+	vcvtps2ph [ecx],xmm4,0x2 
e1d87d
+
e1d87d
+/* gas/i386/fsgs.s */
e1d87d
+	.att_syntax prefix
e1d87d
+	rdfsbase %ebx
e1d87d
+	rdgsbase %ebx
e1d87d
+	wrfsbase %ebx
e1d87d
+	wrgsbase %ebx
e1d87d
+
e1d87d
+	.intel_syntax noprefix
e1d87d
+	rdfsbase ebx    
e1d87d
+	rdgsbase ebx    
e1d87d
+	wrfsbase ebx    
e1d87d
+	wrgsbase ebx    
e1d87d
+