⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h8300s.exp

📁 这个是LINUX下的GDB调度工具的源码
💻 EXP
📖 第 1 页 / 共 2 页
字号:
# Copyright (C) 2000 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.  # Please email any bugs, comments, and/or additions to this file to:# bug-gdb@prep.ai.mit.edu# This file was written by Kazu Hirata. (kazu@hxi.com)if $tracelevel then {	strace $tracelevel}if ![istarget "h8300*-*-*"] {    verbose "Tests ignored for all but h8300s based targets."    return}set prms_id 0set bug_id 0set testfile "h8300s"set srcfile ${srcdir}/${subdir}/${testfile}.sset binfile ${objdir}/${subdir}/${testfile}if  { [gdb_compile "${srcfile}" "${binfile}" executable {debug additional_flags=-ms}] != "" } {     gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."}proc all_set_machine_h8300s { } {    global gdb_prompt    global hex    global decimal    send_gdb "set machine h8300s\n"    gdb_expect {	-re "$gdb_prompt $" {}    }}proc all_movb_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/9i movb_tests\n"    gdb_expect {	-re ".*mov.b\tr0l,r0h.*.*mov.b\t#0x12,r1l.*.*mov.b\t@er0,r1h.*.*mov.b\t@\\(0x1234:16,er0\\),r2l.*.*mov.b\t@\\(0x12345678:32,er0\\),r2h.*.*mov.b\t@er0\\+,r3l.*.*mov.b\t@0x12:8,r3h.*.*mov.b\t@0x1234:16,r4l.*.*mov.b\t@0x12345678:32,r4h.*.*$gdb_prompt $" { pass "movb_tests" }	-re "$gdb_prompt $" { fail "movb_tests" }	timeout { fail "(timeout) movb_tests" }    }}proc all_movw_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/8i movw_tests\n"    gdb_expect {	-re ".*mov.w\te0,r0.*.*mov.w\t#0x1234,r1.*.*mov.w\t@er0,r2.*.*mov.w\t@\\(0x1234:16,er0\\),r3.*.*mov.w\t@\\(0x12345678:32,er0\\),r4.*.*mov.w\t@er0\\+,r5.*.*mov.w\t@0x1234:16,r6.*.*mov.w\t@0x12345678:32,r7.*.*$gdb_prompt $" { pass "movw_tests" }	-re "$gdb_prompt $" { fail "movw_tests" }	timeout { fail "(timeout) movw_tests" }    }}proc all_movl_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/8i movl_tests\n"    gdb_expect {	-re ".*mov.l\ter0,er1.*.*mov.l\t#0x12345678,er1.*.*mov.l\t@er0,er2.*.*mov.l\t@\\(0x1234:16,er0\\),er3.*.*mov.l\t@\\(0x12345678:32,er0\\),er4.*.*mov.l\t@er0\\+,er5.*.*mov.l\t@0x1234:16,er6.*.*mov.l\t@0x12345678:32,er7.*.*$gdb_prompt $" { pass "movl_tests" }	-re "$gdb_prompt $" { fail "movl_tests" }	timeout { fail "(timeout) movl_tests" }    }}proc all_ldm_stm_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/6i ldm_stm_tests\n"    gdb_expect {	-re ".*ldm.l\t@sp\\+,er0-er1.*.*ldm.l\t@sp\\+,er0-er2.*.*ldm.l\t@sp\\+,er0-er3.*.*stm.l\ter0\\-er1,@-sp.*.*stm.l\ter0\\-er2,@-sp.*.*stm.l\ter0\\-er3,@-sp.*.*$gdb_prompt $" { pass "ldm_stm_tests" }	-re "$gdb_prompt $" { fail "ldm_stm_tests" }	timeout { fail "(timeout) ldm_stm_tests" }    }}proc all_movfpe_movtpe_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/2i movfpe_movtpe_tests\n"    gdb_expect {	-re ".*movfpe\t@0x1234:16,r2l.*.*movtpe\tr2l,@0x1234:16.*.*$gdb_prompt $" { pass "movfpe_movtpe_tests" }	-re "$gdb_prompt $" { fail "movfpe_movtpe_tests" }	timeout { fail "(timeout) movfpe_movtpe_tests" }    }}proc all_add_sub_addx_subx_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/15i add_sub_addx_subx_tests\n"    gdb_expect {	-re ".*add.b\t#0x12,r0l.*.*add.b\tr1l,r1h.*.*add.w\t#0x1234,r2.*.*add.w\tr3,r4.*.*add.l\t#0x12345678,er5.*.*add.l\ter6,er7.*.*sub.b\tr1l,r1h.*.*sub.w\t#0x1234,r2.*.*sub.w\tr3,r4.*.*sub.l\t#0x12345678,er5.*.*sub.l\ter6,er7.*.*addx\t#0x12,r0l.*.*addx\tr1l,r1h.*.*subx\t#0x12,r0l.*.*subx\tr1l,r1h.*.*$gdb_prompt $" { pass "add_sub_addx_subx_tests" }	-re "$gdb_prompt $" { fail "add_sub_addx_subx_tests" }	timeout { fail "(timeout) add_sub_addx_subx_tests" }    }}proc all_inc_dec_adds_subs_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/16i inc_dec_adds_subs_tests\n"    gdb_expect {	-re ".*inc(.b|)\tr0l.*.*inc.w\t#(0x|)1,r4.*.*inc.w\t#(0x|)2,r3.*.*inc.l\t#(0x|)1,er2.*.*inc.l\t#(0x|)2,er1.*.*dec.b\tr0l.*.*dec.w\t#(0x|)1,r4.*.*dec.w\t#(0x|)2,r3.*.*dec.l\t#(0x|)1,er2.*.*dec.l\t#(0x|)2,er1.*.*adds\t#(0x|)1,er7.*.*adds\t#(0x|)2,er6.*.*adds\t#(0x|)4,er5.*.*subs\t#(0x|)1,er7.*.*subs\t#(0x|)2,er6.*.*subs\t#(0x|)4,er5.*.*$gdb_prompt $" { pass "inc_dec_adds_subs_tests" }	-re "$gdb_prompt $" { fail "inc_dec_adds_subs_tests" }	timeout { fail "(timeout) inc_dec_adds_subs_tests" }    }}proc all_daa_das_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/2i daa_das_tests\n"    gdb_expect {	-re ".*daa\tr0l.*.*das\tr0h.*.*$gdb_prompt $" { pass "daa_das_tests" }	-re "$gdb_prompt $" { fail "daa_das_tests" }	timeout { fail "(timeout) daa_das_tests" }    }}proc all_mul_div_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/8i mul_div_tests\n"    gdb_expect {	-re ".*mulxs.b\tr0l,r1.*.*mulxs.w\tr2,er3.*.*mulxu.b\tr0l,e1.*.*mulxu.w\te2,er3.*.*divxs.b\tr0l,r1.*.*divxs.w\tr2,er3.*.*divxu.b\tr0l,e1.*.*divxu.w\te2,er3.*.*$gdb_prompt $" { pass "mul_div_tests" }	-re "$gdb_prompt $" { fail "mul_div_tests" }	timeout { fail "(timeout) mul_div_tests" }    }}proc all_cmp_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/8i cmp_tests\n"    gdb_expect {	-re ".*cmp.b\t#0x12,r0l.*.*cmp.b\tr1l,r1h.*.*cmp.w\t#0x1234,r2.*.*cmp.w\tr3,e3.*.*cmp.l\t#0x12345678,er4.*.*cmp.l\ter5,er6.*.*$gdb_prompt $" { pass "cmp_tests" }	-re "$gdb_prompt $" { fail "cmp_tests" }	timeout { fail "(timeout) cmp_tests" }    }}proc all_neg_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/3i neg_tests\n"    gdb_expect {	-re ".*neg.b\tr0l.*.*neg.w\tr2.*.*neg.l\ter3.*.*$gdb_prompt $" { pass "neg_tests" }	-re "$gdb_prompt $" { fail "neg_tests" }	timeout { fail "(timeout) neg_tests" }    }}proc all_ext_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/4i ext_tests\n"    gdb_expect {	-re ".*exts.w\tr0.*.*exts.l\ter1.*.*extu.w\tr2.*.*extu.l\ter3.*.*$gdb_prompt $" { pass "ext_tests" }	-re "$gdb_prompt $" { fail "ext_tests" }	timeout { fail "(timeout) ext_tests" }    }}proc all_tas_mac_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/7i tas_mac_tests\n"    gdb_expect {	-re ".*tas\t@er0.*.*mac\t@er1\\+,@er2\\+.*.*clrmac.*.*ldmac\ter4,mach.*.*ldmac\ter5,macl.*.*stmac\tmach,er6.*.*stmac\tmacl,er7.*.*$gdb_prompt $" { pass "tas_mac_tests" }	-re "$gdb_prompt $" { fail "tas_mac_tests" }	timeout { fail "(timeout) tas_mac_tests" }    }}proc all_logic_operations_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/21i logic_operations_tests\n"    gdb_expect {	-re ".*and.b\t#0x12,r0l.*.*and.b\tr1l,r2h.*.*and.w\t#0x1234,r0.*.*and.w\tr1,r2.*.*and.l\t#0x12345678,er0.*.*and.l\ter1,er2.*.*or.b\t#0x12,r0l.*.*or.b\tr1l,r2h.*.*or.w\t#0x1234,r0.*.*or.w\tr1,r2.*.*or.l\t#0x12345678,er0.*.*or.l\ter1,er2.*.*xor(.b|)\t#0x12,r0l.*.*xor(.b|)\tr1l,r2h.*.*xor.w\t#0x1234,r0.*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -