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

📄 mips32-dsp.s

📁 gdb-6.8 Linux下的调试程序 最新版本
💻 S
📖 第 1 页 / 共 3 页
字号:
# MIPS32 DSP ASE test# mach:  mips32r2 mips64r2#as:		-mdsp#ld:		-N -Ttext=0x80010000#output:	*\\npass\\n# Copyright (C) 2005 Free Software Foundation, Inc.# Contributed by MIPS Technologies, Inc.  Written by Chao-ying Fu.## This file is part of the GNU simulators.## 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 3 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, see <http://www.gnu.org/licenses/>.	.include "testutils.inc"	.include "utils-dsp.inc"	setup	.set noreorder	.ent DIAGDIAG:	writemsg "[1] Test addq.ph"	dspck_dstio addq.ph, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio addq.ph, 0x20002, 0x10001, 0x10001, 0x0, 0x0	dspck_dstio addq.ph, 0xfffefffe, 0xffffffff, 0xffffffff, 0x0, 0x0	dspck_dstio addq.ph, 0xffff0000, 0xffffffff, 0x1, 0x0, 0x0	dspck_dstio addq.ph, 0x0, 0xffffffff, 0x10001, 0x0, 0x0	writemsg "[2] Test addq_s.ph"	dspck_dstio addq_s.ph, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio addq_s.ph, 0x20002, 0x10001, 0x10001, 0x0, 0x0	dspck_dstio addq_s.ph, 0xfffefffe, 0xffffffff, 0xffffffff, 0x0, 0x0	dspck_dstio addq_s.ph, 0xffff0000, 0xffffffff, 0x1, 0x0, 0x0	dspck_dstio addq_s.ph, 0xffff0000, 0x1, 0xffffffff, 0x0, 0x0	writemsg "[3] Test addq_s.w"	dspck_dsti addq_s.w, 0x0, 0x0, 0x0, 0x0	dspck_dstio addq_s.w, 0x2, 0x1, 0x1, 0x0, 0x0	dspck_dstio addq_s.w, 0xfffffffe, 0xffffffff, 0xffffffff, 0x0, 0x0	dspck_dstio addq_s.w, 0x0, 0xffffffff, 0x1, 0x0, 0x0	dspck_dstio addq_s.w, 0xffff, 0xffffffff, 0x10000, 0x0, 0x0	writemsg "[4] Test addu.qb"	dspck_dstio addu.qb, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio addu.qb, 0x2040000, 0x102ff01, 0x10201ff, 0x0, 0x100000	dspck_dstio addu.qb, 0xfe0001fe, 0x7f80ffff, 0x7f8002ff, 0x0, 0x100000	dspck_dstio addu.qb, 0xffffffff, 0x10203, 0xfffefdfc, 0x0, 0x0	dspck_dstio addu.qb, 0xffffffff, 0xfbfaf9f8, 0x4050607, 0x0, 0x0	writemsg "[5] Test addu_s.qb"	dspck_dstio addu_s.qb, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio addu_s.qb, 0x204ffff, 0x102ff01, 0x10201ff, 0x0, 0x100000	dspck_dstio addu_s.qb, 0xfeffffff, 0x7f80ffff, 0x7f8002ff, 0x0, 0x100000	dspck_dstio addu_s.qb, 0xffffffff, 0x10203, 0xfffefdfc, 0x0, 0x0	dspck_dstio addu_s.qb, 0xffffffff, 0xfbfaf9f8, 0x4050607, 0x0, 0x0	writemsg "[6] Test subq.ph"	dspck_dstio subq.ph, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio subq.ph, 0x10001, 0x20002, 0x10001, 0x0, 0x0	dspck_dstio subq.ph, 0x1ffff, 0x2fffe, 0x1ffff, 0x0, 0x0	dspck_dstio subq.ph, 0x7fff0000, 0xfffe8000, 0x7fff8000, 0x0, 0x100000	dspck_dstio subq.ph, 0x1ffff, 0x7fff8000, 0x7ffe8001, 0x0, 0x0	writemsg "[7] Test subq_s.ph"	dspck_dstio subq_s.ph, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio subq_s.ph, 0x10001, 0x20002, 0x10001, 0x0, 0x0	dspck_dstio subq_s.ph, 0x1ffff, 0x2fffe, 0x1ffff, 0x0, 0x0	dspck_dstio subq_s.ph, 0x0, 0x7fff8000, 0x7fff8000, 0x0, 0x0	dspck_dstio subq_s.ph, 0x1ffff, 0x7fff8000, 0x7ffe8001, 0x0, 0x0	writemsg "[8] Test subq_s.w"	dspck_dsti subq_s.w, 0x0, 0x0, 0x0, 0x0	dspck_dsti subq_s.w, 0x0, 0x7fffffff, 0x7fffffff, 0x0	dspck_dstio subq_s.w, 0x7fffffff, 0x0, 0x80000000, 0x0, 0x100000	dspck_dstio subq_s.w, 0x1, 0x2, 0x1, 0x0, 0x0	dspck_dstio subq_s.w, 0xffffffff, 0xfffffffe, 0xffffffff, 0x0, 0x0	writemsg "[9] Test subu.qb"	dspck_dstio subu.qb, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio subu.qb, 0x4030201, 0x8060402, 0x4030201, 0x0, 0x0	dspck_dstio subu.qb, 0xfcfdfeff, 0x4030201, 0x8060402, 0x0, 0x100000	dspck_dstio subu.qb, 0x102ff01, 0x2040000, 0x10201ff, 0x0, 0x100000	dspck_dstio subu.qb, 0x7f80ffff, 0xfe0001fe, 0x7f8002ff, 0x0, 0x100000	writemsg "[10] Test subu_s.qb"	dspck_dstio subu_s.qb, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio subu_s.qb, 0x4030201, 0x8060402, 0x4030201, 0x0, 0x0	dspck_dstio subu_s.qb, 0x0, 0x4030201, 0x8060402, 0x0, 0x100000	dspck_dstio subu_s.qb, 0x1020000, 0x2040000, 0x10201ff, 0x0, 0x100000	dspck_dstio subu_s.qb, 0x7f000000, 0xfe0001fe, 0x7f8002ff, 0x0, 0x100000	writemsg "[11] Test addsc"	dspck_dstio addsc, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio addsc, 0x1000000, 0x84000000, 0x7d000000, 0x0, 0x2000	dspck_dstio addsc, 0xf1000000, 0x74000000, 0x7d000000, 0x0, 0x0	dspck_dstio addsc, 0x2, 0x1, 0x1, 0x0, 0x0	dspck_dstio addsc, 0xffffffff, 0xfffffffe, 0x1, 0x0, 0x0	writemsg "[12] Test addwc"	dspck_dstio addwc, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio addwc, 0x2, 0x1, 0x1, 0x0, 0x0	dspck_dstio addwc, 0x3, 0x1, 0x1, 0x2000, 0x2000	dspck_dsti addwc, 0x1, 0xffffffff, 0x1, 0x2000	dspck_dsti addwc, 0x11, 0xa, 0x6, 0x2000	writemsg "[13] Test modsub"	dspck_dstio modsub, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio modsub, 0x76, 0x78, 0x7802, 0x0, 0x0	dspck_dstio modsub, 0x74, 0x76, 0x7802, 0x0, 0x0	dspck_dstio modsub, 0x78, 0x0, 0x7802, 0x0, 0x0	dspck_dstio modsub, 0xf9, 0xfc, 0xfe03, 0x0, 0x0	writemsg "[14] Test raddu.w.qb"	dspck_dsio raddu.w.qb, 0x0, 0x0, 0x0, 0x0	dspck_dsio raddu.w.qb, 0x2, 0x1000100, 0x0, 0x0	dspck_dsio raddu.w.qb, 0x4, 0x1010101, 0x0, 0x0	dspck_dsio raddu.w.qb, 0x200, 0xff01ff01, 0x0, 0x0	dspck_dsio raddu.w.qb, 0x3fc, 0xffffffff, 0x0, 0x0	writemsg "[15] Test absq_s.ph"	dspck_dsio absq_s.ph, 0x0, 0x0, 0x0, 0x0	dspck_dsio absq_s.ph, 0x10001, 0xffffffff, 0x0, 0x0	dspck_dsio absq_s.ph, 0x7fff7fff, 0x80008000, 0x0, 0x100000	dspck_dsio absq_s.ph, 0x60000002, 0xa000fffe, 0x0, 0x0	dspck_dsio absq_s.ph, 0x70000004, 0x9000fffc, 0x0, 0x0	writemsg "[16] Test absq_s.w"	dspck_dsio absq_s.w, 0x0, 0x0, 0x0, 0x0	dspck_dsio absq_s.w, 0x1, 0xffffffff, 0x0, 0x0	dspck_dsio absq_s.w, 0x7fffffff, 0x80000000, 0x0, 0x100000	dspck_dsio absq_s.w, 0x40000001, 0xbfffffff, 0x0, 0x0	dspck_dsio absq_s.w, 0x8000001, 0xf7ffffff, 0x0, 0x0	writemsg "[17] Test precrq.qb.ph"	dspck_dstio precrq.qb.ph, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio precrq.qb.ph, 0xff7f4020, 0xffff7fff, 0x40002000, 0x0, 0x0	dspck_dstio precrq.qb.ph, 0xfeba7632, 0xfedcba98, 0x76543210, 0x0, 0x0	dspck_dstio precrq.qb.ph, 0x7632feba, 0x76543210, 0xfedcba98, 0x0, 0x0	dspck_dstio precrq.qb.ph, 0x14589cd, 0x1234567, 0x89abcdef, 0x0, 0x0	writemsg "[18] Test precrq.ph.w"	dspck_dstio precrq.ph.w, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio precrq.ph.w, 0xffff4000, 0xffff7fff, 0x40002000, 0x0, 0x0	dspck_dstio precrq.ph.w, 0xfedc7654, 0xfedcba98, 0x76543210, 0x0, 0x0	dspck_dstio precrq.ph.w, 0x7654fedc, 0x76543210, 0xfedcba98, 0x0, 0x0	dspck_dstio precrq.ph.w, 0x12389ab, 0x1234567, 0x89abcdef, 0x0, 0x0	writemsg "[19] Test precrq_rs.ph.w"	dspck_dstio precrq_rs.ph.w, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio precrq_rs.ph.w, 0x7fff0000, 0x7fffffff, 0xffffffff, 0x0, 0x400000	dspck_dstio precrq_rs.ph.w, 0x80008001, 0x80007fff, 0x8000ffff, 0x0, 0x0	dspck_dstio precrq_rs.ph.w, 0xfedd7654, 0xfedcba98, 0x76543210, 0x0, 0x0	dspck_dstio precrq_rs.ph.w, 0x7654fedd, 0x76543210, 0xfedcba98, 0x0, 0x0	writemsg "[20] Test precrqu_s.qb.ph"	dspck_dstio precrqu_s.qb.ph, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dstio precrqu_s.qb.ph, 0xff8040, 0xffff7fff, 0x40002000, 0x0, 0x400000	dspck_dstio precrqu_s.qb.ph, 0xec64, 0xfedcba98, 0x76543210, 0x0, 0x400000	dspck_dstio precrqu_s.qb.ph, 0xec640000, 0x76543210, 0xfedcba98, 0x0, 0x400000	dspck_dstio precrqu_s.qb.ph, 0x28a0000, 0x1234567, 0x89abcdef, 0x0, 0x400000	writemsg "[21] Test preceq.w.phl"	dspck_dsio preceq.w.phl, 0x0, 0x0, 0x0, 0x0	dspck_dsio preceq.w.phl, 0xffff0000, 0xffffffff, 0x0, 0x0	dspck_dsio preceq.w.phl, 0x80000000, 0x80004000, 0x0, 0x0	dspck_dsio preceq.w.phl, 0xc0010000, 0xc0012001, 0x0, 0x0	dspck_dsio preceq.w.phl, 0x76540000, 0x76543210, 0x0, 0x0	writemsg "[22] Test preceq.w.phr"	dspck_dsio preceq.w.phr, 0x0, 0x0, 0x0, 0x0	dspck_dsio preceq.w.phr, 0xffff0000, 0xffffffff, 0x0, 0x0	dspck_dsio preceq.w.phr, 0x40000000, 0x80004000, 0x0, 0x0	dspck_dsio preceq.w.phr, 0x20010000, 0xc0012001, 0x0, 0x0	dspck_dsio preceq.w.phr, 0x32100000, 0x76543210, 0x0, 0x0	writemsg "[23] Test precequ.ph.qbl"	dspck_dsio precequ.ph.qbl, 0x0, 0x0, 0x0, 0x0	dspck_dsio precequ.ph.qbl, 0x7f807f80, 0xffffffff, 0x0, 0x0	dspck_dsio precequ.ph.qbl, 0x40000000, 0x80004000, 0x0, 0x0	dspck_dsio precequ.ph.qbl, 0x60000080, 0xc0012001, 0x0, 0x0	dspck_dsio precequ.ph.qbl, 0x3b002a00, 0x76543210, 0x0, 0x0	writemsg "[24] Test precequ.ph.qbr"	dspck_dsio precequ.ph.qbr, 0x0, 0x0, 0x0, 0x0	dspck_dsio precequ.ph.qbr, 0x7f807f80, 0xffffffff, 0x0, 0x0	dspck_dsio precequ.ph.qbr, 0x20000000, 0x80004000, 0x0, 0x0	dspck_dsio precequ.ph.qbr, 0x10000080, 0xc0012001, 0x0, 0x0	dspck_dsio precequ.ph.qbr, 0x19000800, 0x76543210, 0x0, 0x0	writemsg "[25] Test precequ.ph.qbla"	dspck_dsio precequ.ph.qbla, 0x0, 0x0, 0x0, 0x0	dspck_dsio precequ.ph.qbla, 0x7f807f80, 0xffffffff, 0x0, 0x0	dspck_dsio precequ.ph.qbla, 0x40002000, 0x80004000, 0x0, 0x0	dspck_dsio precequ.ph.qbla, 0x60001000, 0xc0012001, 0x0, 0x0	dspck_dsio precequ.ph.qbla, 0x3b001900, 0x76543210, 0x0, 0x0	writemsg "[26] Test precequ.ph.qbra"	dspck_dsio precequ.ph.qbra, 0x0, 0x0, 0x0, 0x0	dspck_dsio precequ.ph.qbra, 0x7f807f80, 0xffffffff, 0x0, 0x0	dspck_dsio precequ.ph.qbra, 0x0, 0x80004000, 0x0, 0x0	dspck_dsio precequ.ph.qbra, 0x800080, 0xc0012001, 0x0, 0x0	dspck_dsio precequ.ph.qbra, 0x2a000800, 0x76543210, 0x0, 0x0	writemsg "[27] Test preceu.ph.qbl"	dspck_dsio preceu.ph.qbl, 0x0, 0x0, 0x0, 0x0	dspck_dsio preceu.ph.qbl, 0xff00ff, 0xffffffff, 0x0, 0x0	dspck_dsio preceu.ph.qbl, 0x800000, 0x80004000, 0x0, 0x0	dspck_dsio preceu.ph.qbl, 0xc00001, 0xc0012001, 0x0, 0x0	dspck_dsio preceu.ph.qbl, 0x760054, 0x76543210, 0x0, 0x0	writemsg "[28] Test preceu.ph.qbr"	dspck_dsio preceu.ph.qbr, 0x0, 0x0, 0x0, 0x0	dspck_dsio preceu.ph.qbr, 0xff00ff, 0xffffffff, 0x0, 0x0	dspck_dsio preceu.ph.qbr, 0x400000, 0x80004000, 0x0, 0x0	dspck_dsio preceu.ph.qbr, 0x200001, 0xc0012001, 0x0, 0x0	dspck_dsio preceu.ph.qbr, 0x320010, 0x76543210, 0x0, 0x0	writemsg "[29] Test preceu.ph.qbla"	dspck_dsio preceu.ph.qbla, 0x0, 0x0, 0x0, 0x0	dspck_dsio preceu.ph.qbla, 0xff00ff, 0xffffffff, 0x0, 0x0	dspck_dsio preceu.ph.qbla, 0x800040, 0x80004000, 0x0, 0x0	dspck_dsio preceu.ph.qbla, 0xc00020, 0xc0012001, 0x0, 0x0	dspck_dsio preceu.ph.qbla, 0x760032, 0x76543210, 0x0, 0x0	writemsg "[30] Test preceu.ph.qbra"	dspck_dsio preceu.ph.qbra, 0x0, 0x0, 0x0, 0x0	dspck_dsio preceu.ph.qbra, 0xff00ff, 0xffffffff, 0x0, 0x0	dspck_dsio preceu.ph.qbra, 0x0, 0x80004000, 0x0, 0x0	dspck_dsio preceu.ph.qbra, 0x10001, 0xc0012001, 0x0, 0x0	dspck_dsio preceu.ph.qbra, 0x540010, 0x76543210, 0x0, 0x0	writemsg "[31] Test shll.qb"	dspck_dtsaio shll.qb, 0x0, 0x0, 0, 0x0, 0x0	dspck_dtsai shll.qb, 0x202fefe, 0x101ffff, 1, 0x0	dspck_dtsai shll.qb, 0xfefe0002, 0x7fff8081, 1, 0x0	dspck_dtsai shll.qb, 0xfcfc0020, 0x7fff8008, 2, 0x0	dspck_dtsai shll.qb, 0x68b0d868, 0x6db6db6d, 3, 0x0	writemsg "[32] Test shllv.qb"	dspck_dstio shllv.qb, 0x0, 0x0, 0x0, 0x0, 0x0	dspck_dsti shllv.qb, 0x202fefe, 0x101ffff, 0x1, 0x0	dspck_dsti shllv.qb, 0xfefe0002, 0x7fff8081, 0x1, 0x0	dspck_dsti shllv.qb, 0xfcfc0020, 0x7fff8008, 0x2, 0x0	dspck_dsti shllv.qb, 0x68b0d868, 0x6db6db6d, 0x3, 0x0	writemsg "[33] Test shll.ph"	dspck_dtsaio shll.ph, 0x0, 0x0, 0, 0x0, 0x0	dspck_dtsaio shll.ph, 0x2fffe, 0x1ffff, 1, 0x0, 0x0	dspck_dtsaio shll.ph, 0xfffe0000, 0x7fff8000, 1, 0x0, 0x400000	dspck_dtsaio shll.ph, 0xfffc0020, 0x7fff8008, 2, 0x0, 0x400000

⌨️ 快捷键说明

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