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