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

📄 hppa.exp

📁 lwip在ucos上的移植
💻 EXP
📖 第 1 页 / 共 3 页
字号:
    global gdb_prompt    global hex    global decimal    send_gdb "x/20i fpu_memory_indexing_tests\n"    gdb_expect {	-re ".*fldwx r4\\(sr0,r5\\),fr6.*.*fldwx,s r4\\(sr0,r5\\),fr6.*.*fldwx,m r4\\(sr0,r5\\),fr6.*.*fldwx,sm r4\\(sr0,r5\\),fr6.*.*flddx r4\\(sr0,r5\\),fr6.*.*flddx,s r4\\(sr0,r5\\),fr6.*.*flddx,m r4\\(sr0,r5\\),fr6.*.*flddx,sm r4\\(sr0,r5\\),fr6.*.*fstwx fr6,r4\\(sr0,r5\\).*.*fstwx,s fr6,r4\\(sr0,r5\\).*.*fstwx,m fr6,r4\\(sr0,r5\\).*.*fstwx,sm fr6,r4\\(sr0,r5\\).*.*fstdx fr6,r4\\(sr0,r5\\).*.*fstdx,s fr6,r4\\(sr0,r5\\).*.*fstdx,m fr6,r4\\(sr0,r5\\).*.*fstdx,sm fr6,r4\\(sr0,r5\\).*.*fstqx fr6,r4\\(sr0,r5\\).*.*fstqx,s fr6,r4\\(sr0,r5\\).*.*fstqx,m fr6,r4\\(sr0,r5\\).*.*fstqx,sm fr6,r4\\(sr0,r5\\).*.*$gdb_prompt $" { pass "fpu_memory_indexing_tests" }	-re "$gdb_prompt $" { fail "fpu_memory_indexing_tests" }	timeout { file "(timeout) fpu_memory_indexing_tests" }    }    send_gdb "x/15i fpu_short_memory_tests\n"    gdb_expect {	-re ".*fldws 0\\(sr0,r5\\),fr6.*.*fldws,mb 0\\(sr0,r5\\),fr6.*.*fldws,ma 0\\(sr0,r5\\),fr6.*.*fldds 0\\(sr0,r5\\),fr6.*.*fldds,mb 0\\(sr0,r5\\),fr6.*.*fldds,ma 0\\(sr0,r5\\),fr6.*.*fstws fr6,0\\(sr0,r5\\).*.*fstws,mb fr6,0\\(sr0,r5\\).*.*fstws,ma fr6,0\\(sr0,r5\\).*.*fstds fr6,0\\(sr0,r5\\).*.*fstds,mb fr6,0\\(sr0,r5\\).*.*fstds,ma fr6,0\\(sr0,r5\\).*.*fstqs fr6,0\\(sr0,r5\\).*.*fstqs,mb fr6,0\\(sr0,r5\\).*.*fstqs,ma fr6,0\\(sr0,r5\\).*.*$gdb_prompt $" { pass "fpu_short_memory_tests" }	-re "$gdb_prompt $" { fail "fpu_short_memory_tests" }	timeout { file "(timeout) fpu_short_memory_tests" }    }}proc all_fpu_computational_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/1i fpu_misc_tests\n"    gdb_expect {	-re ".*ftest.*.*$gdb_prompt $" { pass "fpu_misc_tests" }	-re "$gdb_prompt $" { fail "fpu_misc_tests" }	timeout { file "(timeout) fpu_misc_tests" }    }    set fpu_two_op_insns [list {fcpy} {fabs} {fsqrt} {frnd} ]    foreach i $fpu_two_op_insns {	send_gdb "x/5i $i"; send_gdb "_tests\n"	gdb_expect {	    -re ".*$i,sgl fr5,fr10.*.*$i,dbl fr5,fr10.*.*$i,quad fr5,fr10.*.*$i,sgl fr20,fr24.*.*$i,dbl fr20,fr24.*.*$gdb_prompt $" { pass "$i tests" }	    -re "$gdb_prompt $" { fail "$i tests" }	    timeout { fail "(timeout) $i tests" }	}    }    set fpu_conversions [list {fcnvff} {fcnvxf} {fcnvfx} {fcnvfxt} ]    foreach i $fpu_conversions {	send_gdb "x/18i $i"; send_gdb "_tests\n"	gdb_expect {	    -re ".*$i,sgl,sgl fr5,fr10.*.*$i,sgl,dbl fr5,fr10.*.*$i,sgl,quad fr5,fr10.*.*$i,dbl,sgl fr5,fr10.*.*$i,dbl,dbl fr5,fr10.*.*$i,dbl,quad fr5,fr10.*.*$i,quad,sgl fr5,fr10.*.*$i,quad,dbl fr5,fr10.*.*$i,quad,quad fr5,fr10.*.*$i,sgl,sgl fr20,fr24.*.*$i,sgl,dbl fr20,fr24.*.*$i,sgl,quad fr20,fr24.*.*$i,dbl,sgl fr20,fr24.*.*$i,dbl,dbl fr20,fr24.*.*$i,dbl,quad fr20,fr24.*.*$i,quad,sgl fr20,fr24.*.*$i,quad,dbl fr20,fr24.*.*$i,quad,quad fr20,fr24.*.*$gdb_prompt $" { pass "$i tests" }	    -re "$gdb_prompt $" { fail "$i tests" }	    timeout { fail "(timeout) $i tests" }	}    }    set fpu_three_op_insns [list {fadd} {fsub} {fmpy} {fdiv} {frem} ]    foreach i $fpu_three_op_insns {	send_gdb "x/6i $i"; send_gdb "_tests\n"	gdb_expect {	    -re ".*$i,sgl fr4,fr8,fr12.*.*$i,dbl fr4,fr8,fr12.*.*$i,quad fr4,fr8,fr12.*.*$i,sgl fr20,fr24,fr28.*.*$i,dbl fr20,fr24,fr28.*.*$i,quad fr20,fr24,fr28.*.*$gdb_prompt $" { pass "$i tests" }	    -re "$gdb_prompt $" { fail "$i tests" }	    timeout { fail "(timeout) $i tests" }	}    }    send_gdb "x/4i fmpy_addsub_tests\n"    gdb_expect {	-re ".*fmpyadd,sgl fr16,fr17,fr18,fr19,fr20.*.*fmpyadd,dbl fr16,fr17,fr18,fr19,fr20.*.*fmpysub,sgl fr16,fr17,fr18,fr19,fr20.*.*fmpysub,dbl fr16,fr17,fr18,fr19,fr20.*.*$gdb_prompt $" { pass "fmpy_addsub_tests" }	-re "$gdb_prompt $" { fail "fmpy_addsub_tests" }	timeout { fail "(timeout) fmpy_addsub_tests" }    }    send_gdb "x/i xmpyu_tests\n"    gdb_expect {	-re ".*xmpyu fr4,fr5,fr6.*.*$gdb_prompt $" {pass "xmpyu_tests" }	-re "$gdb_prompt $" {fail "xmpyu_tests" }	timeout { fail "(timeout) xmpyu_tests" }    }}proc all_fpu_comparison_tests { } {    global gdb_prompt    global hex    global decimal    set fpu_comparison_formats [list {sgl} {dbl} {quad} ]    foreach i $fpu_comparison_formats {	send_gdb "x/8i fcmp_$i"; send_gdb "_tests_1\n"	gdb_expect {	    -re ".*fcmp,$i,false\\? fr4,fr5.*.*fcmp,$i,false fr4,fr5.*.*fcmp,$i,\\? fr4,fr5.*.*fcmp,$i,!<=> fr4,fr5.*.*fcmp,$i,= fr4,fr5.*.*fcmp,$i,=t fr4,fr5.*.*fcmp,$i,\\?= fr4,fr5.*.*fcmp,$i,!<> fr4,fr5.*.*$gdb_prompt $" { pass "$i tests (part1) " }	    -re "$gdb_prompt $" { fail "fcmp_$i tests (part1) " }	    timeout { fail "(timeout) fcmp_$i tests (part1) " }	}	send_gdb "x/8i fcmp_$i"; send_gdb "_tests_2\n"	gdb_expect {	    -re ".*fcmp,$i,!\\?>= fr4,fr5.*.*fcmp,$i,< fr4,fr5.*.*fcmp,$i,\\?< fr4,fr5.*.*fcmp,$i,!>= fr4,fr5.*.*fcmp,$i,!\\?> fr4,fr5.*.*fcmp,$i,<= fr4,fr5.*.*fcmp,$i,\\?<= fr4,fr5.*.*fcmp,$i,!> fr4,fr5.*.*$gdb_prompt $" { pass "$i tests (part2) " }	    -re "$gdb_prompt $" { fail "fcmp_$i tests (part2) " }	    timeout { fail "(timeout) fcmp_$i tests (part2) " }	}	send_gdb "x/8i fcmp_$i"; send_gdb "_tests_3\n"	gdb_expect {	    -re ".*fcmp,$i,!\\?<= fr4,fr5.*.*fcmp,$i,> fr4,fr5.*.*fcmp,$i,\\?> fr4,fr5.*.*fcmp,$i,!<= fr4,fr5.*.*fcmp,$i,!\\?< fr4,fr5.*.*fcmp,$i,>= fr4,fr5.*.*fcmp,$i,\\?>= fr4,fr5.*.*fcmp,$i,!< fr4,fr5.*.*$gdb_prompt $" { pass "$i tests (part3) " }	    -re "$gdb_prompt $" { fail "fcmp_$i tests (part3) " }	    timeout { fail "(timeout) fcmp_$i tests (part3) " }	}	send_gdb "x/8i fcmp_$i"; send_gdb "_tests_4\n"	gdb_expect {	    -re ".*fcmp,$i,!\\?= fr4,fr5.*.*fcmp,$i,<> fr4,fr5.*.*fcmp,$i,!= fr4,fr5.*.*fcmp,$i,!=t fr4,fr5.*.*fcmp,$i,!\\? fr4,fr5.*.*fcmp,$i,<=> fr4,fr5.*.*fcmp,$i,true\\? fr4,fr5.*.*fcmp,$i,true fr4,fr5.*.*$gdb_prompt $" { pass "$i tests (part4) " }	    -re "$gdb_prompt $" { fail "fcmp_$i tests (part4) " }	    timeout { fail "(timeout) fcmp_$i tests (part4) " }	}    }}proc all_special_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/4i special_tests\n"    gdb_expect {	-re ".*gfw r4\\(sr0,r5\\).*.*gfw,m r4\\(sr0,r5\\).*.*gfr r4\\(sr0,r5\\).*.*gfr,m r4\\(sr0,r5\\).*.*$gdb_prompt $" { pass "special tests" }	-re "$gdb_prompt $" { fail "special tests" }	timeout { fail "(timeout) special tests " }    }}proc all_sfu_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/16i sfu_tests\n"    gdb_expect {	-re ".*spop0,4,5.*.*spop0,4,73.*.*spop0,4,5,n.*.*spop0,4,73,n.*.*spop1,4,5 r5.*.*spop1,4,73 r5.*.*spop1,4,5,n r5.*.*spop1,4,73,n r5.*.*spop2,4,5 r5.*.*spop2,4,73 r5.*.*spop2,4,5,n r5.*.*spop2,4,73,n r5.*.*spop3,4,5 r5,r6.*.*spop3,4,73 r5,r6.*.*spop3,4,5,n r5,r6.*.*spop3,4,73,n r5,r6.*.*$gdb_prompt $" { pass "sfu tests" }	-re "$gdb_prompt $" { fail "sfu tests" }	timeout { fail "(timeout) sfu tests " }    }}proc all_copr_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/4i copr_tests\n"    gdb_expect {	-re ".*copr,4,5.*.*copr,4,73.*.*copr,4,5,n.*.*copr,4,73,n.*.*$gdb_prompt $" { pass "copr tests" }	-re "$gdb_prompt $" { fail "copr tests" }	timeout { fail "(timeout) copr tests " }    }}proc all_copr_mem_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/8i copr_indexing_load\n"    gdb_expect {	-re ".*cldwx,4 r5\\(sr0,r4\\),r26.*.*cldwx,4,s r5\\(sr0,r4\\),r26.*.*cldwx,4,m r5\\(sr0,r4\\),r26.*.*cldwx,4,sm r5\\(sr0,r4\\),r26.*.*clddx,4 r5\\(sr0,r4\\),r26.*.*clddx,4,s r5\\(sr0,r4\\),r26.*.*clddx,4,m r5\\(sr0,r4\\),r26.*.*clddx,4,sm r5\\(sr0,r4\\),r26.*.*$gdb_prompt $" { pass "copr indexed load tests" }	-re "$gdb_prompt $" { fail "copr indexed load tests" }	timeout { fail "(timeout) copr indexed load tests " }    }    send_gdb "x/8i copr_indexing_store\n"    gdb_expect {	-re ".*cstwx,4 r26,r5\\(sr0,r4\\).*.*cstwx,4,s r26,r5\\(sr0,r4\\).*.*cstwx,4,m r26,r5\\(sr0,r4\\).*.*cstwx,4,sm r26,r5\\(sr0,r4\\).*.*cstdx,4 r26,r5\\(sr0,r4\\).*.*cstdx,4,s r26,r5\\(sr0,r4\\).*.*cstdx,4,m r26,r5\\(sr0,r4\\).*.*cstdx,4,sm r26,r5\\(sr0,r4\\).*.*$gdb_prompt $" { pass "copr indexed store tests" }	-re "$gdb_prompt $" { fail "copr indexed store tests" }	timeout { fail "(timeout) copr indexed load tests " }    }    send_gdb "x/12i copr_short_memory\n"    gdb_expect {	-re ".*cldws,4 0\\(sr0,r4\\),r26.*.*cldws,4,mb 0\\(sr0,r4\\),r26.*.*cldws,4,ma 0\\(sr0,r4\\),r26.*.*cldds,4 0\\(sr0,r4\\),r26.*.*cldds,4,mb 0\\(sr0,r4\\),r26.*.*cldds,4,ma 0\\(sr0,r4\\),r26.*.*cstws,4 r26,0\\(sr0,r4\\).*.*cstws,4,mb r26,0\\(sr0,r4\\).*.*cstws,4,ma r26,0\\(sr0,r4\\).*.*cstds,4 r26,0\\(sr0,r4\\).*.*cstds,4,mb r26,0\\(sr0,r4\\).*.*cstds,4,ma r26,0\\(sr0,r4\\).*.*$gdb_prompt $" { pass "copr short memory tests" }	-re "$gdb_prompt $" { fail "copr short memory tests" }	timeout { fail "(timeout) copr short memory tests " }    }}proc fmemLRbug_tests { } {    global gdb_prompt    global hex    global decimal    send_gdb "x/12i fmemLRbug_tests_1\n"    gdb_expect {	-re ".*fstws fr6R,0\\(sr0,r26\\).*.*fstws fr6,4\\(sr0,r26\\).*.*fstws fr6,8\\(sr0,r26\\).*.*fstds fr6,0\\(sr0,r26\\).*.*fstds fr6,4\\(sr0,r26\\).*.*fstds fr6,8\\(sr0,r26\\).*.*fldws 0\\(sr0,r26\\),fr6R.*.*fldws 4\\(sr0,r26\\),fr6.*.*fldws 8\\(sr0,r26\\),fr6.*.*fldds 0\\(sr0,r26\\),fr6.*.*fldds 4\\(sr0,r26\\),fr6.*.*fldds 8\\(sr0,r26\\),fr6.*.*$gdb_prompt $" { pass "fmem LR register selector tests (part1)" }	-re "$gdb_prompt $" { fail "fmem LR register selector tests (part1)" }	timeout { fail "(timeout) fmem LR register selector tests  (part1)" }    }    send_gdb "x/12i fmemLRbug_tests_2\n"    gdb_expect {	-re ".*fstws fr6R,0\\(sr0,r26\\).*.*fstws fr6,4\\(sr0,r26\\).*.*fstws fr6,8\\(sr0,r26\\).*.*fstds fr6,0\\(sr0,r26\\).*.*fstds fr6,4\\(sr0,r26\\).*.*fstds fr6,8\\(sr0,r26\\).*.*fldws 0\\(sr0,r26\\),fr6R.*.*fldws 4\\(sr0,r26\\),fr6.*.*fldws 8\\(sr0,r26\\),fr6.*.*fldds 0\\(sr0,r26\\),fr6.*.*fldds 4\\(sr0,r26\\),fr6.*.*fldds 8\\(sr0,r26\\),fr6.*.*$gdb_prompt $" { pass "fmem LR register selector tests (part2)" }	-re "$gdb_prompt $" { fail "fmem LR register selector tests (part2)" }	timeout { fail "(timeout) fmem LR register selector tests  (part2)" }    }    send_gdb "x/12i fmemLRbug_tests_3\n"    gdb_expect {	-re ".*fstwx fr6R,r25\\(sr0,r26\\).*.*fstwx fr6,r25\\(sr0,r26\\).*.*fstwx fr6,r25\\(sr0,r26\\).*.*fstdx fr6,r25\\(sr0,r26\\).*.*fstdx fr6,r25\\(sr0,r26\\).*.*fstdx fr6,r25\\(sr0,r26\\).*.*fldwx r25\\(sr0,r26\\),fr6R.*.*fldwx r25\\(sr0,r26\\),fr6.*.*fldwx r25\\(sr0,r26\\),fr6.*.*flddx r25\\(sr0,r26\\),fr6.*.*flddx r25\\(sr0,r26\\),fr6.*.*flddx r25\\(sr0,r26\\),fr6.*.*$gdb_prompt $" { pass "fmem LR register selector tests (part3)" }	-re "$gdb_prompt $" { fail "fmem LR register selector tests (part3)" }	timeout { fail "(timeout) fmem LR register selector tests  (part3)" }    }    send_gdb "x/12i fmemLRbug_tests_4\n"    gdb_expect {	-re ".*fstwx fr6R,r25\\(sr0,r26\\).*.*fstwx fr6,r25\\(sr0,r26\\).*.*fstwx fr6,r25\\(sr0,r26\\).*.*fstdx fr6,r25\\(sr0,r26\\).*.*fstdx fr6,r25\\(sr0,r26\\).*.*fstdx fr6,r25\\(sr0,r26\\).*.*fldwx r25\\(sr0,r26\\),fr6R.*.*fldwx r25\\(sr0,r26\\),fr6.*.*fldwx r25\\(sr0,r26\\),fr6.*.*flddx r25\\(sr0,r26\\),fr6.*.*flddx r25\\(sr0,r26\\),fr6.*.*flddx r25\\(sr0,r26\\),fr6.*.*$gdb_prompt $" { pass "fmem LR register selector tests (part4)" }	-re "$gdb_prompt $" { fail "fmem LR register selector tests (part4)" }	timeout { fail "(timeout) fmem LR register selector tests  (part4)" }    }}# Start with a fresh gdb.gdb_exitgdb_startgdb_reinitialize_dir $srcdir/$subdirgdb_load $binfileall_integer_memory_testsall_immediate_testsall_branch_testsall_integer_computational_testsall_system_control_testsall_fpu_memory_testsall_fpu_computational_testsall_fpu_comparison_testsall_special_testsall_sfu_testsall_copr_testsall_copr_mem_tests# Regression test for a bug Tege found.fmemLRbug_tests

⌨️ 快捷键说明

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