aad703f07a
230000). - Disable some known timeouting/failing testcases to reduce the build time. - Fix crash on missing filenames debug info (BZ 242155).
84 lines
3.2 KiB
Diff
84 lines
3.2 KiB
Diff
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230000
|
|
|
|
The original testcase
|
|
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230000#c1
|
|
requires too recent GCC.
|
|
|
|
|
|
--- /dev/null 1 Jan 1970 00:00:00 -0000
|
|
+++ ./gdb/testsuite/gdb.arch/powerpc-power6.exp 25 Feb 2007 18:27:39 -0000
|
|
@@ -0,0 +1,54 @@
|
|
+# Copyright 2007 Free Software Foundation, Inc.
|
|
+
|
|
+# This program is free software; you can redistribute it and/or modify
|
|
+# it under the terms of the GNU General Public License as published by
|
|
+# the Free Software Foundation; either version 2 of the License, or
|
|
+# (at your option) any later version.
|
|
+#
|
|
+# This program is distributed in the hope that it will be useful,
|
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
+# GNU General Public License for more details.
|
|
+#
|
|
+# You should have received a copy of the GNU General Public License
|
|
+# along with this program; if not, write to the Free Software
|
|
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
+
|
|
+# Test PowerPC Power6 instructions disassembly.
|
|
+
|
|
+if {![istarget "powerpc*-*-*"]} then {
|
|
+ verbose "Skipping PowerPC Power6 instructions disassembly."
|
|
+ return
|
|
+}
|
|
+
|
|
+set testfile "powerpc-power6"
|
|
+set srcfile ${testfile}.s
|
|
+set objfile ${objdir}/${subdir}/${testfile}.o
|
|
+
|
|
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
|
|
+ untested "PowerPC prologue tests"
|
|
+ return -1
|
|
+}
|
|
+
|
|
+
|
|
+gdb_exit
|
|
+gdb_start
|
|
+gdb_reinitialize_dir $srcdir/$subdir
|
|
+gdb_load ${objfile}
|
|
+
|
|
+# Disassemble the function.
|
|
+
|
|
+gdb_test "disass func" ":\tblr\r\n.*" "Basic disassembly"
|
|
+
|
|
+gdb_test "disass func" ":\tdcbzl *r8,r9\r\n.*" "Power5 disassembly dcbzl"
|
|
+gdb_test "disass func" ":\tfrsqrtes *f10,f11\r\n.*" "Power5 disassembly frsqrtes"
|
|
+gdb_test "disass func" ":\tdadd *f1,f2,f1\r\n.*" "Power6 disassembly dadd"
|
|
+gdb_test "disass func" ":\tdaddq *f1,f2,f1\r\n.*" "Power6 disassembly daddq"
|
|
+gdb_test "disass func" ":\tdsub *f1,f2,f1\r\n.*" "Power6 disassembly dsub"
|
|
+gdb_test "disass func" ":\tdsubq *f1,f2,f1\r\n.*" "Power6 disassembly dsubq"
|
|
+gdb_test "disass func" ":\tdmul *f1,f2,f1\r\n.*" "Power6 disassembly dmul"
|
|
+gdb_test "disass func" ":\tdmulq *f1,f2,f1\r\n.*" "Power6 disassembly dmulq"
|
|
+gdb_test "disass func" ":\tddiv *f1,f2,f1\r\n.*" "Power6 disassembly ddiv"
|
|
+gdb_test "disass func" ":\tddivq *f1,f2,f1\r\n.*" "Power6 disassembly ddivq"
|
|
+gdb_test "disass func" ":\tdcmpu *cr1,f2,f1\r\n.*" "Power6 disassembly dcmpu"
|
|
+gdb_test "disass func" ":\tdcmpuq *cr1,f2,f1\r\n.*" "Power6 disassembly dcmpuq"
|
|
--- /dev/null 1 Jan 1970 00:00:00 -0000
|
|
+++ ./gdb/testsuite/gdb.arch/powerpc-power6.s 25 Feb 2007 18:27:39 -0000
|
|
@@ -0,0 +1,16 @@
|
|
+ .text
|
|
+ .globl func
|
|
+func:
|
|
+ blr
|
|
+ .long 0x7c284fec /* dcbzl r8,r9 */
|
|
+ .long 0xed405834 /* frsqrtes f10,f11 */
|
|
+ .long 0xec220804 /* dadd f1,f2,f1 */
|
|
+ .long 0xfc220804 /* daddq f1,f2,f1 */
|
|
+ .long 0xec220c04 /* dsub f1,f2,f1 */
|
|
+ .long 0xfc220c04 /* dsubq f1,f2,f1 */
|
|
+ .long 0xec220844 /* dmul f1,f2,f1 */
|
|
+ .long 0xfc220844 /* dmulq f1,f2,f1 */
|
|
+ .long 0xec220c44 /* ddiv f1,f2,f1 */
|
|
+ .long 0xfc220c44 /* ddivq f1,f2,f1 */
|
|
+ .long 0xec820d04 /* dcmpu cr1,f2,f1 */
|
|
+ .long 0xfc820d04 /* dcmpuq cr1,f2,f1 */
|