tests: add riscv-compliance

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-05-27 23:04:07 +08:00
parent eb65d0badc
commit 7d877c3348
338 changed files with 64960 additions and 0 deletions

7
tests/README.md Normal file
View File

@ -0,0 +1,7 @@
# 目录说明
example包含C语言程序例程。
isa旧的指令兼容性测试源码。RISC-V官方已经不更新了。
riscv-compliance新的指令兼容性测试源码RISC-V官方一直在更新。

View File

@ -0,0 +1,9 @@
Copyright (c) <year> <owner>. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -0,0 +1,395 @@
Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor's permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution 4.0 International Public License ("Public License"). To the
extent this Public License may be interpreted as a contract, You are
granted the Licensed Rights in consideration of Your acceptance of
these terms and conditions, and the Licensor grants You such rights in
consideration of benefits the Licensor receives from making the
Licensed Material available under these terms and conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar
Rights that is derived from or based upon the Licensed Material
and in which the Licensed Material is translated, altered,
arranged, transformed, or otherwise modified in a manner requiring
permission under the Copyright and Similar Rights held by the
Licensor. For purposes of this Public License, where the Licensed
Material is a musical work, performance, or sound recording,
Adapted Material is always produced where the Licensed Material is
synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights
closely related to copyright including, without limitation,
performance, broadcast, sound recording, and Sui Generis Database
Rights, without regard to how the rights are labeled or
categorized. For purposes of this Public License, the rights
specified in Section 2(b)(1)-(2) are not Copyright and Similar
Rights.
d. Effective Technological Measures means those measures that, in the
absence of proper authority, may not be circumvented under laws
fulfilling obligations under Article 11 of the WIPO Copyright
Treaty adopted on December 20, 1996, and/or similar international
agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or
any other exception or limitation to Copyright and Similar Rights
that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
License.
g. Licensed Rights means the rights granted to You subject to the
terms and conditions of this Public License, which are limited to
all Copyright and Similar Rights that apply to Your use of the
Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.
i. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License,
the Licensor hereby grants You a worldwide, royalty-free,
non-sublicensable, non-exclusive, irrevocable license to
exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or
in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
License does not apply, and You do not need to comply with
its terms and conditions.
3. Term. The term of this Public License is specified in Section
6(a).
4. Media and formats; technical modifications allowed. The
Licensor authorizes You to exercise the Licensed Rights in
all media and formats whether now known or hereafter created,
and to make technical modifications necessary to do so. The
Licensor waives and/or agrees not to assert any right or
authority to forbid You from making technical modifications
necessary to exercise the Licensed Rights, including
technical modifications necessary to circumvent Effective
Technological Measures. For purposes of this Public License,
simply making modifications authorized by this Section 2(a)
(4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.
6. No endorsement. Nothing in this Public License constitutes or
may be construed as permission to assert or imply that You
are, or that Your use of the Licensed Material is, connected
with, or sponsored, endorsed, or granted official status by,
the Licensor or others designated to receive attribution as
provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not
licensed under this Public License, nor are publicity,
privacy, and/or other similar personality rights; however, to
the extent possible, the Licensor waives and/or agrees not to
assert any such rights held by the Licensor to the limited
extent necessary to allow You to exercise the Licensed
Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this
Public License.
3. To the extent possible, the Licensor waives any right to
collect royalties from You for the exercise of the Licensed
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the
following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified
form), You must:
a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any
reasonable manner based on the medium, means, and context in
which You Share the Licensed Material. For example, it may be
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.
3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's
License You apply must not prevent recipients of the Adapted
Material from complying with this Public License.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Rights, then the database in which You have Sui Generis Database
Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share
all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided
above shall be interpreted in a manner that, to the extent
possible, most closely approximates an absolute disclaimer and
waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided
it is cured within 30 days of Your discovery of the
violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different
terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the
Licensed Material not stated herein are separate from and
independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is
deemed unenforceable, it shall be automatically reformed to the
minimum extent necessary to make it enforceable. If the provision
cannot be reformed, it shall be severed from this Public License
without affecting the enforceability of the remaining terms and
conditions.
c. No term or condition of this Public License will be waived and no
failure to comply consented to unless expressly agreed to by the
Licensor.
d. Nothing in this Public License constitutes or may be interpreted
as a limitation upon, or waiver of, any privileges and immunities
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its public
licenses. Notwithstanding, Creative Commons may elect to apply one of
its public licenses to material it publishes and in those instances
will be considered the “Licensor.” The text of the Creative Commons
public licenses is dedicated to the public domain under the CC0 Public
Domain Dedication. Except for the limited purpose of indicating that
material is shared under a Creative Commons public license or as
otherwise permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the
public licenses.
Creative Commons may be contacted at creativecommons.org.

View File

@ -0,0 +1,281 @@
2020-04-24 Allen Baum <allen.baum@esperantotech.com>
* fixed the I-SB-01.S and I-SH-01.S tests and associated reference signatures to account
of tests with negative offsets (which causes stores outside the signature area)
2020-03-19 Neel Gala <neelgala@gmail.com>
* restructuring the riscv-test-suite to indicate clearly what is deprecated, wip and usable
tests.
* based on the above fixed the directory structure for riscv-targets where-ever applicable. Only
tested riscvOVPsim and spike.
* fixed script bugs for spike as well
* renamed rv32i/I-IO.S to rv32i/I-IO-01.S along with necessary changes to the reference files
and Makefrag
* renamed mbadaddr csr to mtval as raised in issue #31
* C.SWSP-01.S test updated to fix issue #37
2020-03-18 Neel Gala <neelgala@gmail.com>
* fixed doc/README.adoc with correct version to pass the sanity-check in the doc/Makefile
2020-02-07 Prashanth Mundkur <prashanth.mundkur@gmail.com>
* Support F extension on RV32 sail-riscv-c.
2019-12-01 Allen Baum <allen.baum@esperantotech.com>
* modified macro names to conformn to riscof naming convention of model specific vs. pre-defined
* add more complete list of macros, their uses, parameters, and whether they are required or optional
* minor structural changes (moving sentences, renumbering) and typo fixes
* clarified impact of debug macros
* clarified how SIGUPD and BASEUPD must be used
* remove section about test taxonomy, binary tests, emulated ops
* clarify/fix boundary between test target and framework responsibilities
(split test target into test target and test shell)
* remove To Be discussed items that have been discussed
* remove default case condition; if conditions are unchanged, part of same case
* minor grammatical changes related to the above
2019-10-16 Allen Baum <allen.baum@esperantotech.com>
* spec/TestFormatSpec.adoc: changed the format of the signature to fixed physical address size, fixed 32b data size extracted from COMPLIANCE_DATA_BEGIN/END range.
* more gramatical fixes, clarifications added
* added To Be Discussed items regarding emulated instruction and binary tests
2019-09-11 Allen Baum <allen.baum@esperantotech.com>
* spec/TestFormatSpec.adoc: more grammar and typo corrections and changes
clarified and added To Be Discussed issues
2019-09-11 Allen Baum <allen.baum@esperantotech.com>
* spec/TestFormatSpec.adoc: many grammar and typo corrections and changes
removed many "to Be Discussed items and made them official
Added wording to clarify spec intent (work in progress/goal rather than final)
Added macros to ease test authoring: RVTEST_SIGBASE, RVTEST_SIGUPDATE, RVTEST_CASE
Added detail on proposals for connection to framework (how framework selects tests).
Expanded definition of signature format
Changed the (proposed) directory structure and naming convention to eliminate ambiguities, add consistancy and slightly better match existing structure
Added many "future work" items related to the above
Added examples and comments to code examples to indicate how proposed macros would be used
* .gitignore: added condition to ignore Mac file system artifacts
2019-11-05 Lee Moore <moore@imperas.com>
* Restructured RV32I to move Zicsr and Zifencei into their own suites
2019-10-14 Lee Moore <moore@imperas.com>
* Added Ability to run a single test by using the Make Variable RISCV_TEST
for example, to only run the test I-ADD-01 from the rv32i suite
make RISCV_ISA=rv32i RISCV_TEST=I-ADD-01
* Added Top Level Variable to Makefile RISCV_TARGET_FLAGS,
in the case of the RISCV_TARGET this can be passed and appended to the invocation
commandline configuration, for example to pass a command line flag to the RISCV_TARGET
to perform tracing. The value of this flag will be target specific
make RISCV_ISA=rv32i RISCV_TEST=I-ADD-01 RISCV_TARGET_FLAGS="--trace"
This is has also been added to all other targets to allow target configuration from
the commandline
2019-10-07 Philipp Wagner <phw@lowrisc.org>
* When executing the test suite, Ibex always writes an instruction
log. Update the Makefile to write it to a test-specific location
(next to all other log files).
* On Ibex, provide an additional .objdump-noalias disassembly file
with no aliases and numeric register names (instead of ABI names).
This file matches the Ibex trace and can be used to debug the test
runs.
2019-08-29 Robert Balas <balasr@iis.ee.ethz.ch>
* Added support for using RI5CY as a target.
* Added subdirectory riscv-target/ri5cy
2019-08-08 Lee Moore <moore@imperas.com>
* Added support for lowRISC/ibex RTL as a target using Verilator.
In conjunction with Philipp Wagner of lowRISC phw@lowrisc.org
2019-07-18 Paul Donahue <pdonahue@ventanamicro.com>
* Fix typos/grammar and use correct architectural terms.
2019-06-21 Ben Selfridge <benselfridge@galois.com>
* Added support for using the the GRIFT simulator as a target.
* Added subdirectory riscv-target/grift
* updated README.md and doc/README.adoc
2019-05-23 Prashanth Mundkur <prashanth.mundkur@gmail.com>
* Added support and instructions for using the C and OCaml simulators from the Sail RISC-V formal model as targets.
* added subdirectories riscv-target/sail-riscv-c and riscv-target/sail-riscv-ocaml
* updated README.md and doc/README.adoc
2019-04-05 Allen Baum <allen.baum@esperantotech.com>
* spec/TestFormatSpec.adoc: Adding details, minor corrections, ToBeDiscussed
items and clarifications to the specification of the future compliance test
suite. Also removing restrictions on having absolate addresses in signature
2019-02-21 Lee Moore <moore@imperas.com>
* Fixed bug in RVTEST_IO_ASSERT_GPR_EQ which was not preserving register t0
* Corrected commit I-LUI-01.S, register target changed but missed assertion
2019-02-21 Deborah Soung <debs@sifive.com>
* added RiscvFormalSpec as a target with its own unique environment
2019-02-15 Radek Hajek <radek.hajek@codasip.com>
* updated rv32i tests to support all registers (x31) with assertions
* updated spec/TestFormatSpec.adoc example ISA test with new assertions
2019-02-05 Deborah Soung <debs@sifive.com>
* [Issue #33] fixing rv32si/ma_fetch.S test
* [Issue #32] fixing breakpoint test
2019-02-01 Lee Moore <moore@imperas.com>
* updated Infrastructure macros to support non-volatile registers
* updated riscvOVPsim
2019-01-29 Deborah Soung <debs@sifive.com>
* Added Rocket Chip generated cores as a target
* riscv-target/rocket/compliance_io.h created
* riscv-target/rocket/compliance_test.h created
* riscv-target/rocket/*/Makefile.include created for existing test suites
* README.adoc updated with instructions for using Rocket cores as targets
2019-01-22 Premysl Vaclavik <pvaclavik@codasip.com>
* feature: initial version of Compliance Test Format Specification
* This new document outlines how we should like the compliance
system to work going forward. By contrast the doc/README.adoc file
describes the current system as it is.
* Approved at Compliance TG meeting of 9 Jan 2019.
2019-01-02 Radek Hajek <radek.hajek@codasip.com>
* unified macros in all compliance tests
2018-12-20 Lee Moore <moore@imperas.com>
* fixed riscvOVPsim
2018-11-22 Simon Davidmann <simond@imperas.com>
* added information on test suite status
2018-11-21 Olof Kindgren <olof.kindgren@gmail.com>
* Added support for using external target directories with $TARGETDIR
2018-11-21 Neel Gala <neelgala@incoresemi.com>
* riscv-test-suite/rv_/references/_.reference_output: changed signature
format for all tests to include only 4-bytes per line starting with the
most significant byte on the left.
* riscv-target/spike/device/rv_/Makefile.include: Added a patch for
spike-device Makefiles where the old-signature format is post-processed
to generate a signature in the new format at the end of each test.
* riscv-target/riscvOVPsim/device/rv_/Makefile.include: same patch as above.
* Makefile: default target for Makefile is now to run all tests supported by
the target mentioned defined by RISCV_TARGET variable.
2018-10-11 Simon Davidmann <simond@imperas.com>
* Ported github riscv/riscv-tests for RV32 processors to this compliance env
* rv32ua rv32uc rv32ud rv32uf rv32ud rv32ui
2018-09-10 Lee Moore <moore@imperas.com>
* Added tests to RV32I to improve coverage, usage of Imperas Mutating Fault Simulator to
identify untested usage cases
* Macro renames to support GPR, (S)FPR, (D)FPR
* Added test suite RV32IM to test 32 bit Multiply and Divide instructions
* Added test suite RV32IMC to test 32 bit Compressed instructions
* Added test suite RV64I to test 64 bit Integer instructions
* Added test suite RV64IM to test 64 bit Multiply and Divide instructions
2018-06-15 Radek Hajek <hajek@codasip.com>
Modifications to support Codasip simulator.
The simulator is renamed as Codasip-simulator (was
Codasip-IA-simulator), compliance_test.h has been moved to target
directories and a COMPILE_TARGET has been added to Makefile to
allow use of LLVM.
* Makefile: Include Codasip simulator target.
* riscv-target/codasip-IA-simulator/compliance_io.h: Renamed as
riscv-target/Codasip-simulator/compliance_io.h.
* riscv-target/Codasip-simulator/compliance_io.h: Renamed from
riscv-target/codasip-IA-simulator/compliance_io.
* riscv-target/Codasip-simulator/compliance_test.h: Created.
* riscv-target/codasip-IA-simulator/device/rv32i/Makefile.include:
Renamed as
riscv-target/Codasip-simulator/device/rv32i/Makefile.include
* riscv-target/Codasip-simulator/device/rv32i/Makefile.include:
Renamed from
riscv-target/codasip-IA-simulator/device/rv32i/Makefile.include.
* riscv-test-env/compliance_test.h: Renamed as
riscv-target/riscvOVPsim/compliance_test.h.
* riscv-target/riscvOVPsim/compliance_test.h: Renamed from
riscv-test-env/compliance_test.h.
* riscv-target/riscvOVPsim/device/rv32i/Makefile.include: Updated
for new environment.
* riscv-target/spike/compliance_test.h: Created.
* riscv-target/spike/device/rv32i/Makefile.include: Updated for
new environment.
* riscv-test-suite/rv32i/Makefile: Likewise.
2018-06-10 Jeremy Bennett <jeremy.bennett@embecosm.com>
Put placeholders in empty directories to make sure they show in
the GitHub hierarchy.
* riscv-test-suite/rv32i/.gitignore: Created.
* riscv-test-suite/rv32m/.gitignore: Created.
2018-06-10 Jeremy Bennett <jeremy.bennett@embecosm.com>
* README.md: Make references to files in the repo into links.
2018-06-09 Jeremy Bennett <jeremy.bennett@embecosm.com>
* .gitignore: Ignore editor backup files.
2018-06-09 Jeremy Bennett <jeremy.bennett@embecosm.com>
* README.md: Add better link to documentation README.md.
2018-06-08 Jeremy Bennett <jeremy.bennett@embecosm.com>
* README.md: Move AsciiDoc details into new README.md in the doc
directory.
2018-06-08 Jeremy Bennett <jeremy.bennett@embecosm.com>
* README.md: Fix typo in link to AsciiDoc cheat sheet
2018-06-08 Jeremy Bennett <jeremy.bennett@embecosm.com>
* COPYING.BSD: Created.
* COPYING.CC: Created.
* README.md: Add git process, licensing and engineering process.
2018-06-08 Jeremy Bennett <jeremy.bennett@embecosm.com>
* README.md: Correct details for running the compliance tests and
directory for OVPsim.
2018-06-08 Jeremy Bennett <jeremy.bennett@embecosm.com>
Clean restructuring to just the work of interest.
* thought-experiments: Directory removed.
* .gitignore: Merged with TestStructure/.gitignore
* Makefile: Renamed from TestStructure/Makefile.
* TestStructure/Makefile: Renamed as Makefile.
* README.md: Merged with TestStructure/README.md.
* TestStructure/.gitignore: Deleted and contents moved into
.gitignore.
* TestStructure/README.md: Deleted and contents moved into
README.md.
* TestStructure/doc: Directory deleted.
* TestStructure/riscv-target: Directory moved to riscv-target.
* riscv-target: Directory moved from TestStructure/riscv-target
* TestStructure/riscv-test-env: Directory moved to riscv-test-env.
* riscv-test-env: Directory moved from
TestStructure/riscv-test-env.
* TestStructure/riscv-test-suite: Directory moved to
riscv-test-suite.
* riscv-test-suite: Directory moved from
TestStructure/riscv-test-suite.
* thought-experiments: Directory deleted.
2018-05-21 Jeremy Bennett <jeremy.bennett@embecosm.com>
Initial commit to populate the repository.
* ChangeLog: Created.
* README.md: Created.

View File

@ -0,0 +1,26 @@
SHELL=cmd
export RISCV_TARGET ?= tinyriscv
export RISCV_PREFIX ?= ../../../../tools/gnu-mcu-eclipse-riscv-none-gcc-8.2.0-2.2-20190521-0004-win64/bin/riscv-none-embed-
CURDIR = $(shell echo %cd%)
export ROOTDIR = $(subst \,/,$(CURDIR))
export TARGETDIR ?= $(ROOTDIR)/riscv-target
default: all
all:
$(MAKE) RISCV_TARGET=$(RISCV_TARGET) RISCV_DEVICE=rv32i RISCV_PREFIX=$(RISCV_PREFIX) RISCV_ISA=rv32i run -C $(ROOTDIR)/riscv-test-suite/rv32i
$(MAKE) RISCV_TARGET=$(RISCV_TARGET) RISCV_DEVICE=rv32im RISCV_PREFIX=$(RISCV_PREFIX) RISCV_ISA=rv32im run -C $(ROOTDIR)/riscv-test-suite/rv32im
clean:
clean -C $(ROOTDIR)/riscv-test-suite/rv32i
clean -C $(ROOTDIR)/riscv-test-suite/rv32im

View File

@ -0,0 +1,101 @@
本项目fork from https://github.com/riscv/riscv-compliance对其进行了修改以便适配tinyriscv。
使用方法:
1.编译make
2.重新编译先make clean 然后再make编译生成的文件在build_generated目录下。
# RISC-V Compliance Task Group
This is a repository for the work of the RISC-V Foundation Compliance Task Group. The repository owners are:
- Jeremy Bennett (Embecosm)
- Lee Moore (Imperas)
Details of the RISC-V Foundation, the work of its task groups, and how to become a member can be found at [riscv.org](https://riscv.org/).
## Contribution process
You are encouraged to contribute to this repository by submitting pull requests and by commenting on pull requests submitted by other people.
- Where a pull request is non-controversial one of the repository owners will immediately merge it. The repository uses rebase merges to maintain a linear history.
- Other pull requests will be publicised to the task group for comment and decision at a subsequent meeting of the group. Everyone is encouraged to comment on a pull request. Such pull requests will be merged by when a consensus/decision has been reached by the task group.
## Licensing
In general:
- code is licensed under the BSD 3-clause license (SPDX license identifier `BSD-3-Clause`); while
- documentation is licensed under the Creative Commons Attribution 4.0 International license (SPDX license identifier `CC-BY-4.0`).
The files [`COPYING.BSD`](./COPYING.BSD) and [`COPYING.CC`](./COPYING.CC) in the top level directory contain the complete text of these licenses.
## Engineering practice
- Documentation uses the structured text format _AsciiDoc_. See [`doc/README.adoc`](doc/README.adoc) for more details.
- Some directories use `ChangeLog` files to track changes in the code and documentation. Please honor these, keeping them up to date and including the ChangeLog entry in the _git_ commit message.
- Please include a comment with the SPDX license identifier in all source files, for example:
```
// SPDX-License-Identifier: BSD-3-Clause
```
## Running the compliance tests
The only setup required is to define where the toolchain is found, and where the target / device is found.
For the toolchain, the binaries must be in the search path and the compiler prefix is defined on the make line. The default value for this is
RISCV_PREFIX ?= riscv64-unknown-elf-
The path to the RUN_TARGET is defined within the riscv-target Makefile.include.
To run the rv32i test suite on riscvOVPsim
make RISCV_TARGET=riscvOVPsim RISCV_DEVICE=rv32i
### Accessing riscvOVPsim
As we create the RISCV.org compliance test suite, the Imperas developed _riscvOVPsim_ compliance simulator is included as part of this GitHub repository. For more information please contact info@ovpworld.org or info@imperas.com.
For more information on riscvOVPsim look here: [riscv-ovpsim/README.md](riscv-ovpsim/README.md) and here: [riscv-ovpsim/doc/riscvOVPsim_User_Guide.pdf](riscv-ovpsim/doc/riscvOVPsim_User_Guide.pdf).
### Using the simulators from the Sail RISC-V formal model
The [Sail RISC-V formal model](https://github.com/rems-project/sail-riscv) generates two
simulators, in C and OCaml. They can be used as test targets for this compliance suite.
For this purpose, the Sail model needs to be checked out and built on
the machine running the compliance suite. Follow the build
instructions described the README for building the RV32 and RV64
models. Once built, please add `$SAIL_RISCV/c_emulator` and
`$SAIL_RISCV/ocaml_emulator` to your path, where $SAIL_RISCV is the
top-level directory containing the model.
To test the compliance of the C simulator for the current RV32 and RV64 tests, use
make RISCV_TARGET=sail-riscv-c all_variant
while the corresponding command for the OCaml simulator is
make RISCV_TARGET=sail-riscv-ocaml all_variant
### Using the GRIFT simulator
The [GRIFT](https://github.com/GaloisInc/grift) formal model and simulation tool
can be used as a test target for this compliance suite.
GRIFT needs to be cloned and built on the machine running the compliance
suite. Follow the build instructions described in the README for building the
GRIFT simulator. Once build, add the generated `grift-sim` executable to your
path.
To test the compliance of the GRIFT simulator for the current RV32 and RV64
tests, use
make RISCV_TARGET=grift all_variant
Note that the I-MISALIGN_LDST test fails for GRIFT because GRIFT currently
supports misaligned loads and stores in hardware, while the test is specifically
written for systems that trap on misaligned loads and stores.

View File

@ -0,0 +1,339 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ADD-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: fff00f93 li t6,-1
8c: 00000813 li a6,0
90: 010f8033 add zero,t6,a6
94: 0002a023 sw zero,0(t0)
98: 00100f13 li t5,1
9c: 80100793 li a5,-2047
a0: 00ff00b3 add ra,t5,a5
a4: 0012a223 sw ra,4(t0)
a8: 00000e93 li t4,0
ac: fff00713 li a4,-1
b0: 00ee8133 add sp,t4,a4
b4: 0022a423 sw sp,8(t0)
b8: 7ff00e13 li t3,2047
bc: fffff6b7 lui a3,0xfffff
c0: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
c4: 00de01b3 add gp,t3,a3
c8: 0032a623 sw gp,12(t0)
cc: 00000d93 li s11,0
d0: 80000637 lui a2,0x80000
d4: 00cd8233 add tp,s11,a2
d8: 0042a823 sw tp,16(t0)
dc: 00002097 auipc ra,0x2
e0: f3808093 addi ra,ra,-200 # 2014 <test_2_res>
e4: 00001d37 lui s10,0x1
e8: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x4b4>
ec: 000015b7 lui a1,0x1
f0: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
f4: 00bd02b3 add t0,s10,a1
f8: 0050a023 sw t0,0(ra)
fc: 07654cb7 lui s9,0x7654
100: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
104: fff00513 li a0,-1
108: 00ac8333 add t1,s9,a0
10c: 0060a223 sw t1,4(ra)
110: 80000c37 lui s8,0x80000
114: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
118: 00100493 li s1,1
11c: 009c03b3 add t2,s8,s1
120: 0070a423 sw t2,8(ra)
124: 00100b93 li s7,1
128: 80000437 lui s0,0x80000
12c: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
130: 008b8433 add s0,s7,s0
134: 0080a623 sw s0,12(ra)
138: fff00b13 li s6,-1
13c: 076543b7 lui t2,0x7654
140: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
144: 007b04b3 add s1,s6,t2
148: 0090a823 sw s1,16(ra)
14c: 00002097 auipc ra,0x2
150: edc08093 addi ra,ra,-292 # 2028 <test_3_res>
154: 00001ab7 lui s5,0x1
158: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
15c: 00001337 lui t1,0x1
160: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x4b4>
164: 006a8533 add a0,s5,t1
168: 00a0a023 sw a0,0(ra)
16c: 80000a37 lui s4,0x80000
170: 00000293 li t0,0
174: 005a05b3 add a1,s4,t0
178: 00b0a223 sw a1,4(ra)
17c: fffff9b7 lui s3,0xfffff
180: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
184: 7ff00213 li tp,2047
188: 00498633 add a2,s3,tp
18c: 00c0a423 sw a2,8(ra)
190: fff00913 li s2,-1
194: fff00193 li gp,-1
198: 003906b3 add a3,s2,gp
19c: 00d0a623 sw a3,12(ra)
1a0: 80100893 li a7,-2047
1a4: 00100113 li sp,1
1a8: 00288733 add a4,a7,sp
1ac: 00e0a823 sw a4,16(ra)
1b0: 00002117 auipc sp,0x2
1b4: e8c10113 addi sp,sp,-372 # 203c <test_4_res>
1b8: 00000813 li a6,0
1bc: 00000093 li ra,0
1c0: 001807b3 add a5,a6,ra
1c4: 00f12023 sw a5,0(sp)
1c8: fff00793 li a5,-1
1cc: 00000013 nop
1d0: 00078833 add a6,a5,zero
1d4: 01012223 sw a6,4(sp)
1d8: 00100713 li a4,1
1dc: 80100f93 li t6,-2047
1e0: 01f708b3 add a7,a4,t6
1e4: 01112423 sw a7,8(sp)
1e8: 00000693 li a3,0
1ec: fff00f13 li t5,-1
1f0: 01e68933 add s2,a3,t5
1f4: 01212623 sw s2,12(sp)
1f8: 7ff00613 li a2,2047
1fc: fffffeb7 lui t4,0xfffff
200: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
204: 01d609b3 add s3,a2,t4
208: 01312823 sw s3,16(sp)
20c: 00002097 auipc ra,0x2
210: e4408093 addi ra,ra,-444 # 2050 <test_5_res>
214: 00000593 li a1,0
218: 80000e37 lui t3,0x80000
21c: 01c58a33 add s4,a1,t3
220: 0140a023 sw s4,0(ra)
224: 00001537 lui a0,0x1
228: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x4b4>
22c: 00001db7 lui s11,0x1
230: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
234: 01b50ab3 add s5,a0,s11
238: 0150a223 sw s5,4(ra)
23c: 076544b7 lui s1,0x7654
240: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
244: fff00d13 li s10,-1
248: 01a48b33 add s6,s1,s10
24c: 0160a423 sw s6,8(ra)
250: 80000437 lui s0,0x80000
254: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
258: 00100c93 li s9,1
25c: 01940bb3 add s7,s0,s9
260: 0170a623 sw s7,12(ra)
264: 00100393 li t2,1
268: 80000c37 lui s8,0x80000
26c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
270: 01838c33 add s8,t2,s8
274: 0180a823 sw s8,16(ra)
278: 00002097 auipc ra,0x2
27c: dec08093 addi ra,ra,-532 # 2064 <test_6_res>
280: fff00313 li t1,-1
284: 07654bb7 lui s7,0x7654
288: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
28c: 01730cb3 add s9,t1,s7
290: 0190a023 sw s9,0(ra)
294: 000012b7 lui t0,0x1
298: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
29c: 00001b37 lui s6,0x1
2a0: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x4b4>
2a4: 01628d33 add s10,t0,s6
2a8: 01a0a223 sw s10,4(ra)
2ac: 80000237 lui tp,0x80000
2b0: 00000a93 li s5,0
2b4: 01520db3 add s11,tp,s5
2b8: 01b0a423 sw s11,8(ra)
2bc: fffff1b7 lui gp,0xfffff
2c0: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
2c4: 7ff00a13 li s4,2047
2c8: 01418e33 add t3,gp,s4
2cc: 01c0a623 sw t3,12(ra)
2d0: fff00113 li sp,-1
2d4: fff00993 li s3,-1
2d8: 01310eb3 add t4,sp,s3
2dc: 01d0a823 sw t4,16(ra)
2e0: 00002117 auipc sp,0x2
2e4: d9810113 addi sp,sp,-616 # 2078 <test_7_res>
2e8: 80100093 li ra,-2047
2ec: 00100913 li s2,1
2f0: 01208f33 add t5,ra,s2
2f4: 01e12023 sw t5,0(sp)
2f8: 00000013 nop
2fc: 00000893 li a7,0
300: 01100fb3 add t6,zero,a7
304: 01f12223 sw t6,4(sp)
308: 00002297 auipc t0,0x2
30c: cf828293 addi t0,t0,-776 # 2000 <begin_signature>
310: 10000337 lui t1,0x10000
314: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
318: 00532023 sw t0,0(t1)
31c: 00002297 auipc t0,0x2
320: d7428293 addi t0,t0,-652 # 2090 <end_signature>
324: 10000337 lui t1,0x10000
328: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
32c: 00532023 sw t0,0(t1)
330: 00100293 li t0,1
334: 10000337 lui t1,0x10000
338: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
33c: 00532023 sw t0,0(t1)
340: 00000013 nop
344: 00100193 li gp,1
348: 00000073 ecall
0000034c <end_testcode>:
34c: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,297 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ADDI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: fff00f93 li t6,-1
8c: 000f8013 mv zero,t6
90: 0002a023 sw zero,0(t0)
94: 00100f13 li t5,1
98: 801f0093 addi ra,t5,-2047
9c: 0012a223 sw ra,4(t0)
a0: 00000e93 li t4,0
a4: fffe8113 addi sp,t4,-1
a8: 0022a423 sw sp,8(t0)
ac: 7ff00e13 li t3,2047
b0: 800e0193 addi gp,t3,-2048
b4: 0032a623 sw gp,12(t0)
b8: 00000d93 li s11,0
bc: 800d8213 addi tp,s11,-2048
c0: 0042a823 sw tp,16(t0)
c4: 00002097 auipc ra,0x2
c8: f5008093 addi ra,ra,-176 # 2014 <test_2_res>
cc: 00001d37 lui s10,0x1
d0: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x55c>
d4: 800d0293 addi t0,s10,-2048
d8: 0050a023 sw t0,0(ra)
dc: 07654cb7 lui s9,0x7654
e0: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
e4: 800c8313 addi t1,s9,-2048
e8: 0060a223 sw t1,4(ra)
ec: 80000c37 lui s8,0x80000
f0: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
f4: 001c0393 addi t2,s8,1
f8: 0070a423 sw t2,8(ra)
fc: 00100b93 li s7,1
100: 800b8413 addi s0,s7,-2048
104: 0080a623 sw s0,12(ra)
108: fff00b13 li s6,-1
10c: 800b0493 addi s1,s6,-2048
110: 0090a823 sw s1,16(ra)
114: 00002097 auipc ra,0x2
118: f1408093 addi ra,ra,-236 # 2028 <test_3_res>
11c: 00001ab7 lui s5,0x1
120: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
124: 800a8513 addi a0,s5,-2048
128: 00a0a023 sw a0,0(ra)
12c: 80000a37 lui s4,0x80000
130: 000a0593 mv a1,s4
134: 00b0a223 sw a1,4(ra)
138: fffff9b7 lui s3,0xfffff
13c: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
140: 7ff98613 addi a2,s3,2047
144: 00c0a423 sw a2,8(ra)
148: fff00913 li s2,-1
14c: fff90693 addi a3,s2,-1
150: 00d0a623 sw a3,12(ra)
154: 80100893 li a7,-2047
158: 00188713 addi a4,a7,1
15c: 00e0a823 sw a4,16(ra)
160: 00002117 auipc sp,0x2
164: edc10113 addi sp,sp,-292 # 203c <test_4_res>
168: 00000813 li a6,0
16c: 00080793 mv a5,a6
170: 00f12023 sw a5,0(sp)
174: fff00793 li a5,-1
178: 00078813 mv a6,a5
17c: 01012223 sw a6,4(sp)
180: 00100713 li a4,1
184: 80170893 addi a7,a4,-2047
188: 01112423 sw a7,8(sp)
18c: 00000693 li a3,0
190: fff68913 addi s2,a3,-1
194: 01212623 sw s2,12(sp)
198: 7ff00613 li a2,2047
19c: 80060993 addi s3,a2,-2048
1a0: 01312823 sw s3,16(sp)
1a4: 00002097 auipc ra,0x2
1a8: eac08093 addi ra,ra,-340 # 2050 <test_5_res>
1ac: 00000593 li a1,0
1b0: 80058a13 addi s4,a1,-2048
1b4: 0140a023 sw s4,0(ra)
1b8: 00001537 lui a0,0x1
1bc: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x55c>
1c0: 80050a93 addi s5,a0,-2048
1c4: 0150a223 sw s5,4(ra)
1c8: 076544b7 lui s1,0x7654
1cc: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
1d0: 80048b13 addi s6,s1,-2048
1d4: 0160a423 sw s6,8(ra)
1d8: 80000437 lui s0,0x80000
1dc: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1e0: 00140b93 addi s7,s0,1
1e4: 0170a623 sw s7,12(ra)
1e8: 00100393 li t2,1
1ec: 80038c13 addi s8,t2,-2048
1f0: 0180a823 sw s8,16(ra)
1f4: 00002097 auipc ra,0x2
1f8: e7008093 addi ra,ra,-400 # 2064 <test_6_res>
1fc: fff00313 li t1,-1
200: 80030c93 addi s9,t1,-2048
204: 0190a023 sw s9,0(ra)
208: 000012b7 lui t0,0x1
20c: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
210: 80028d13 addi s10,t0,-2048
214: 01a0a223 sw s10,4(ra)
218: 80000237 lui tp,0x80000
21c: 00020d93 mv s11,tp
220: 01b0a423 sw s11,8(ra)
224: fffff1b7 lui gp,0xfffff
228: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
22c: 7ff18e13 addi t3,gp,2047
230: 01c0a623 sw t3,12(ra)
234: fff00113 li sp,-1
238: fff10e93 addi t4,sp,-1
23c: 01d0a823 sw t4,16(ra)
240: 00002117 auipc sp,0x2
244: e3810113 addi sp,sp,-456 # 2078 <test_7_res>
248: 80100093 li ra,-2047
24c: 00108f13 addi t5,ra,1
250: 01e12023 sw t5,0(sp)
254: 00000013 nop
258: 00000f93 li t6,0
25c: 01f12223 sw t6,4(sp)
260: 00002297 auipc t0,0x2
264: da028293 addi t0,t0,-608 # 2000 <begin_signature>
268: 10000337 lui t1,0x10000
26c: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
270: 00532023 sw t0,0(t1)
274: 00002297 auipc t0,0x2
278: e1c28293 addi t0,t0,-484 # 2090 <end_signature>
27c: 10000337 lui t1,0x10000
280: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
284: 00532023 sw t0,0(t1)
288: 00100293 li t0,1
28c: 10000337 lui t1,0x10000
290: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
294: 00532023 sw t0,0(t1)
298: 00000013 nop
29c: 00100193 li gp,1
2a0: 00000073 ecall
000002a4 <end_testcode>:
2a4: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,339 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-AND-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: fff00f93 li t6,-1
8c: 00000813 li a6,0
90: 010ff033 and zero,t6,a6
94: 0002a023 sw zero,0(t0)
98: 00100f13 li t5,1
9c: 80100793 li a5,-2047
a0: 00ff70b3 and ra,t5,a5
a4: 0012a223 sw ra,4(t0)
a8: 00000e93 li t4,0
ac: fff00713 li a4,-1
b0: 00eef133 and sp,t4,a4
b4: 0022a423 sw sp,8(t0)
b8: 7ff00e13 li t3,2047
bc: fffff6b7 lui a3,0xfffff
c0: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
c4: 00de71b3 and gp,t3,a3
c8: 0032a623 sw gp,12(t0)
cc: 00000d93 li s11,0
d0: 80000637 lui a2,0x80000
d4: 00cdf233 and tp,s11,a2
d8: 0042a823 sw tp,16(t0)
dc: 00002097 auipc ra,0x2
e0: f3808093 addi ra,ra,-200 # 2014 <test_2_res>
e4: 00001d37 lui s10,0x1
e8: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x4b4>
ec: 000015b7 lui a1,0x1
f0: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
f4: 00bd72b3 and t0,s10,a1
f8: 0050a023 sw t0,0(ra)
fc: 07654cb7 lui s9,0x7654
100: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
104: fff00513 li a0,-1
108: 00acf333 and t1,s9,a0
10c: 0060a223 sw t1,4(ra)
110: 80000c37 lui s8,0x80000
114: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
118: 00100493 li s1,1
11c: 009c73b3 and t2,s8,s1
120: 0070a423 sw t2,8(ra)
124: 00100b93 li s7,1
128: 80000437 lui s0,0x80000
12c: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
130: 008bf433 and s0,s7,s0
134: 0080a623 sw s0,12(ra)
138: fff00b13 li s6,-1
13c: 076543b7 lui t2,0x7654
140: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
144: 007b74b3 and s1,s6,t2
148: 0090a823 sw s1,16(ra)
14c: 00002097 auipc ra,0x2
150: edc08093 addi ra,ra,-292 # 2028 <test_3_res>
154: 00001ab7 lui s5,0x1
158: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
15c: 00001337 lui t1,0x1
160: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x4b4>
164: 006af533 and a0,s5,t1
168: 00a0a023 sw a0,0(ra)
16c: 80000a37 lui s4,0x80000
170: 00000293 li t0,0
174: 005a75b3 and a1,s4,t0
178: 00b0a223 sw a1,4(ra)
17c: fffff9b7 lui s3,0xfffff
180: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
184: 7ff00213 li tp,2047
188: 0049f633 and a2,s3,tp
18c: 00c0a423 sw a2,8(ra)
190: fff00913 li s2,-1
194: fff00193 li gp,-1
198: 003976b3 and a3,s2,gp
19c: 00d0a623 sw a3,12(ra)
1a0: 80100893 li a7,-2047
1a4: 00100113 li sp,1
1a8: 0028f733 and a4,a7,sp
1ac: 00e0a823 sw a4,16(ra)
1b0: 00002117 auipc sp,0x2
1b4: e8c10113 addi sp,sp,-372 # 203c <test_4_res>
1b8: 00000813 li a6,0
1bc: 00000093 li ra,0
1c0: 001877b3 and a5,a6,ra
1c4: 00f12023 sw a5,0(sp)
1c8: fff00793 li a5,-1
1cc: 00000013 nop
1d0: 0007f833 and a6,a5,zero
1d4: 01012223 sw a6,4(sp)
1d8: 00100713 li a4,1
1dc: 80100f93 li t6,-2047
1e0: 01f778b3 and a7,a4,t6
1e4: 01112423 sw a7,8(sp)
1e8: 00000693 li a3,0
1ec: fff00f13 li t5,-1
1f0: 01e6f933 and s2,a3,t5
1f4: 01212623 sw s2,12(sp)
1f8: 7ff00613 li a2,2047
1fc: fffffeb7 lui t4,0xfffff
200: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
204: 01d679b3 and s3,a2,t4
208: 01312823 sw s3,16(sp)
20c: 00002097 auipc ra,0x2
210: e4408093 addi ra,ra,-444 # 2050 <test_5_res>
214: 00000593 li a1,0
218: 80000e37 lui t3,0x80000
21c: 01c5fa33 and s4,a1,t3
220: 0140a023 sw s4,0(ra)
224: 00001537 lui a0,0x1
228: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x4b4>
22c: 00001db7 lui s11,0x1
230: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
234: 01b57ab3 and s5,a0,s11
238: 0150a223 sw s5,4(ra)
23c: 076544b7 lui s1,0x7654
240: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
244: fff00d13 li s10,-1
248: 01a4fb33 and s6,s1,s10
24c: 0160a423 sw s6,8(ra)
250: 80000437 lui s0,0x80000
254: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
258: 00100c93 li s9,1
25c: 01947bb3 and s7,s0,s9
260: 0170a623 sw s7,12(ra)
264: 00100393 li t2,1
268: 80000c37 lui s8,0x80000
26c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
270: 0183fc33 and s8,t2,s8
274: 0180a823 sw s8,16(ra)
278: 00002097 auipc ra,0x2
27c: dec08093 addi ra,ra,-532 # 2064 <test_6_res>
280: fff00313 li t1,-1
284: 07654bb7 lui s7,0x7654
288: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
28c: 01737cb3 and s9,t1,s7
290: 0190a023 sw s9,0(ra)
294: 000012b7 lui t0,0x1
298: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
29c: 00001b37 lui s6,0x1
2a0: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x4b4>
2a4: 0162fd33 and s10,t0,s6
2a8: 01a0a223 sw s10,4(ra)
2ac: 80000237 lui tp,0x80000
2b0: 00000a93 li s5,0
2b4: 01527db3 and s11,tp,s5
2b8: 01b0a423 sw s11,8(ra)
2bc: fffff1b7 lui gp,0xfffff
2c0: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
2c4: 7ff00a13 li s4,2047
2c8: 0141fe33 and t3,gp,s4
2cc: 01c0a623 sw t3,12(ra)
2d0: fff00113 li sp,-1
2d4: fff00993 li s3,-1
2d8: 01317eb3 and t4,sp,s3
2dc: 01d0a823 sw t4,16(ra)
2e0: 00002117 auipc sp,0x2
2e4: d9810113 addi sp,sp,-616 # 2078 <test_7_res>
2e8: 80100093 li ra,-2047
2ec: 00100913 li s2,1
2f0: 0120ff33 and t5,ra,s2
2f4: 01e12023 sw t5,0(sp)
2f8: 00000013 nop
2fc: 00000893 li a7,0
300: 01107fb3 and t6,zero,a7
304: 01f12223 sw t6,4(sp)
308: 00002297 auipc t0,0x2
30c: cf828293 addi t0,t0,-776 # 2000 <begin_signature>
310: 10000337 lui t1,0x10000
314: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
318: 00532023 sw t0,0(t1)
31c: 00002297 auipc t0,0x2
320: d7428293 addi t0,t0,-652 # 2090 <end_signature>
324: 10000337 lui t1,0x10000
328: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
32c: 00532023 sw t0,0(t1)
330: 00100293 li t0,1
334: 10000337 lui t1,0x10000
338: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
33c: 00532023 sw t0,0(t1)
340: 00000013 nop
344: 00100193 li gp,1
348: 00000073 ecall
0000034c <end_testcode>:
34c: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,297 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ANDI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: fff00f93 li t6,-1
8c: 000ff013 andi zero,t6,0
90: 0002a023 sw zero,0(t0)
94: 00100f13 li t5,1
98: 801f7093 andi ra,t5,-2047
9c: 0012a223 sw ra,4(t0)
a0: 00000e93 li t4,0
a4: fffef113 andi sp,t4,-1
a8: 0022a423 sw sp,8(t0)
ac: 7ff00e13 li t3,2047
b0: 800e7193 andi gp,t3,-2048
b4: 0032a623 sw gp,12(t0)
b8: 00000d93 li s11,0
bc: 800df213 andi tp,s11,-2048
c0: 0042a823 sw tp,16(t0)
c4: 00002097 auipc ra,0x2
c8: f5008093 addi ra,ra,-176 # 2014 <test_2_res>
cc: 00001d37 lui s10,0x1
d0: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x55c>
d4: 800d7293 andi t0,s10,-2048
d8: 0050a023 sw t0,0(ra)
dc: 07654cb7 lui s9,0x7654
e0: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
e4: 800cf313 andi t1,s9,-2048
e8: 0060a223 sw t1,4(ra)
ec: 80000c37 lui s8,0x80000
f0: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
f4: 001c7393 andi t2,s8,1
f8: 0070a423 sw t2,8(ra)
fc: 00100b93 li s7,1
100: 800bf413 andi s0,s7,-2048
104: 0080a623 sw s0,12(ra)
108: fff00b13 li s6,-1
10c: 800b7493 andi s1,s6,-2048
110: 0090a823 sw s1,16(ra)
114: 00002097 auipc ra,0x2
118: f1408093 addi ra,ra,-236 # 2028 <test_3_res>
11c: 00001ab7 lui s5,0x1
120: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
124: 800af513 andi a0,s5,-2048
128: 00a0a023 sw a0,0(ra)
12c: 80000a37 lui s4,0x80000
130: 000a7593 andi a1,s4,0
134: 00b0a223 sw a1,4(ra)
138: fffff9b7 lui s3,0xfffff
13c: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
140: 7ff9f613 andi a2,s3,2047
144: 00c0a423 sw a2,8(ra)
148: fff00913 li s2,-1
14c: fff97693 andi a3,s2,-1
150: 00d0a623 sw a3,12(ra)
154: 80100893 li a7,-2047
158: 0018f713 andi a4,a7,1
15c: 00e0a823 sw a4,16(ra)
160: 00002117 auipc sp,0x2
164: edc10113 addi sp,sp,-292 # 203c <test_4_res>
168: 00000813 li a6,0
16c: 00087793 andi a5,a6,0
170: 00f12023 sw a5,0(sp)
174: fff00793 li a5,-1
178: 0007f813 andi a6,a5,0
17c: 01012223 sw a6,4(sp)
180: 00100713 li a4,1
184: 80177893 andi a7,a4,-2047
188: 01112423 sw a7,8(sp)
18c: 00000693 li a3,0
190: fff6f913 andi s2,a3,-1
194: 01212623 sw s2,12(sp)
198: 7ff00613 li a2,2047
19c: 80067993 andi s3,a2,-2048
1a0: 01312823 sw s3,16(sp)
1a4: 00002097 auipc ra,0x2
1a8: eac08093 addi ra,ra,-340 # 2050 <test_5_res>
1ac: 00000593 li a1,0
1b0: 8005fa13 andi s4,a1,-2048
1b4: 0140a023 sw s4,0(ra)
1b8: 00001537 lui a0,0x1
1bc: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x55c>
1c0: 80057a93 andi s5,a0,-2048
1c4: 0150a223 sw s5,4(ra)
1c8: 076544b7 lui s1,0x7654
1cc: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
1d0: 8004fb13 andi s6,s1,-2048
1d4: 0160a423 sw s6,8(ra)
1d8: 80000437 lui s0,0x80000
1dc: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1e0: 00147b93 andi s7,s0,1
1e4: 0170a623 sw s7,12(ra)
1e8: 00100393 li t2,1
1ec: 8003fc13 andi s8,t2,-2048
1f0: 0180a823 sw s8,16(ra)
1f4: 00002097 auipc ra,0x2
1f8: e7008093 addi ra,ra,-400 # 2064 <test_6_res>
1fc: fff00313 li t1,-1
200: 80037c93 andi s9,t1,-2048
204: 0190a023 sw s9,0(ra)
208: 000012b7 lui t0,0x1
20c: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
210: 8002fd13 andi s10,t0,-2048
214: 01a0a223 sw s10,4(ra)
218: 80000237 lui tp,0x80000
21c: 00027d93 andi s11,tp,0
220: 01b0a423 sw s11,8(ra)
224: fffff1b7 lui gp,0xfffff
228: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
22c: 7ff1fe13 andi t3,gp,2047
230: 01c0a623 sw t3,12(ra)
234: fff00113 li sp,-1
238: fff17e93 andi t4,sp,-1
23c: 01d0a823 sw t4,16(ra)
240: 00002117 auipc sp,0x2
244: e3810113 addi sp,sp,-456 # 2078 <test_7_res>
248: 80100093 li ra,-2047
24c: 0010ff13 andi t5,ra,1
250: 01e12023 sw t5,0(sp)
254: 00000013 nop
258: 00007f93 andi t6,zero,0
25c: 01f12223 sw t6,4(sp)
260: 00002297 auipc t0,0x2
264: da028293 addi t0,t0,-608 # 2000 <begin_signature>
268: 10000337 lui t1,0x10000
26c: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
270: 00532023 sw t0,0(t1)
274: 00002297 auipc t0,0x2
278: e1c28293 addi t0,t0,-484 # 2090 <end_signature>
27c: 10000337 lui t1,0x10000
280: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
284: 00532023 sw t0,0(t1)
288: 00100293 li t0,1
28c: 10000337 lui t1,0x10000
290: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
294: 00532023 sw t0,0(t1)
298: 00000013 nop
29c: 00100193 li gp,1
2a0: 00000073 ecall
000002a4 <end_testcode>:
2a4: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,352 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-AUIPC-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: 00000017 auipc zero,0x0
8c: 00000397 auipc t2,0x0
90: ffc38393 addi t2,t2,-4 # 88 <begin_testcode+0x8>
94: 40700033 neg zero,t2
98: 0002a023 sw zero,0(t0)
9c: 00000097 auipc ra,0x0
a0: 00000397 auipc t2,0x0
a4: ffc38393 addi t2,t2,-4 # 9c <begin_testcode+0x1c>
a8: 407080b3 sub ra,ra,t2
ac: 0012a223 sw ra,4(t0)
b0: 007ff117 auipc sp,0x7ff
b4: 00000397 auipc t2,0x0
b8: ffc38393 addi t2,t2,-4 # b0 <begin_testcode+0x30>
bc: 40710133 sub sp,sp,t2
c0: 0022a423 sw sp,8(t0)
c4: 00001197 auipc gp,0x1
c8: 00000397 auipc t2,0x0
cc: ffc38393 addi t2,t2,-4 # c4 <begin_testcode+0x44>
d0: 407181b3 sub gp,gp,t2
d4: 0032a623 sw gp,12(t0)
d8: 01234217 auipc tp,0x1234
dc: 00000397 auipc t2,0x0
e0: ffc38393 addi t2,t2,-4 # d8 <begin_testcode+0x58>
e4: 40720233 sub tp,tp,t2
e8: 0042a823 sw tp,16(t0)
ec: 00002097 auipc ra,0x2
f0: f2808093 addi ra,ra,-216 # 2014 <test_2_res>
f4: 80000297 auipc t0,0x80000
f8: 00000197 auipc gp,0x0
fc: ffc18193 addi gp,gp,-4 # f4 <begin_testcode+0x74>
100: 403282b3 sub t0,t0,gp
104: 0050a023 sw t0,0(ra)
108: 01234317 auipc t1,0x1234
10c: 00000197 auipc gp,0x0
110: ffc18193 addi gp,gp,-4 # 108 <begin_testcode+0x88>
114: 40330333 sub t1,t1,gp
118: 0060a223 sw t1,4(ra)
11c: fffff397 auipc t2,0xfffff
120: 00000197 auipc gp,0x0
124: ffc18193 addi gp,gp,-4 # 11c <begin_testcode+0x9c>
128: 403383b3 sub t2,t2,gp
12c: 0070a423 sw t2,8(ra)
130: 00001417 auipc s0,0x1
134: 00000197 auipc gp,0x0
138: ffc18193 addi gp,gp,-4 # 130 <begin_testcode+0xb0>
13c: 40340433 sub s0,s0,gp
140: 0080a623 sw s0,12(ra)
144: 7ffff497 auipc s1,0x7ffff
148: 00000197 auipc gp,0x0
14c: ffc18193 addi gp,gp,-4 # 144 <begin_testcode+0xc4>
150: 403484b3 sub s1,s1,gp
154: 0090a823 sw s1,16(ra)
158: 00002097 auipc ra,0x2
15c: ed008093 addi ra,ra,-304 # 2028 <test_3_res>
160: 54321517 auipc a0,0x54321
164: 00000417 auipc s0,0x0
168: ffc40413 addi s0,s0,-4 # 160 <begin_testcode+0xe0>
16c: 40850533 sub a0,a0,s0
170: 00a0a023 sw a0,0(ra)
174: 00800597 auipc a1,0x800
178: 00000417 auipc s0,0x0
17c: ffc40413 addi s0,s0,-4 # 174 <begin_testcode+0xf4>
180: 408585b3 sub a1,a1,s0
184: 00b0a223 sw a1,4(ra)
188: 00000617 auipc a2,0x0
18c: 00000417 auipc s0,0x0
190: ffc40413 addi s0,s0,-4 # 188 <begin_testcode+0x108>
194: 40860633 sub a2,a2,s0
198: 00c0a423 sw a2,8(ra)
19c: 007ff697 auipc a3,0x7ff
1a0: 00000417 auipc s0,0x0
1a4: ffc40413 addi s0,s0,-4 # 19c <begin_testcode+0x11c>
1a8: 408686b3 sub a3,a3,s0
1ac: 00d0a623 sw a3,12(ra)
1b0: 00000717 auipc a4,0x0
1b4: 00000417 auipc s0,0x0
1b8: ffc40413 addi s0,s0,-4 # 1b0 <begin_testcode+0x130>
1bc: 40870733 sub a4,a4,s0
1c0: 00e0a823 sw a4,16(ra)
1c4: 00002117 auipc sp,0x2
1c8: e7810113 addi sp,sp,-392 # 203c <test_4_res>
1cc: 00001797 auipc a5,0x1
1d0: 00000217 auipc tp,0x0
1d4: ffc20213 addi tp,tp,-4 # 1cc <begin_testcode+0x14c>
1d8: 404787b3 sub a5,a5,tp
1dc: 00f12023 sw a5,0(sp)
1e0: 00000817 auipc a6,0x0
1e4: 00000217 auipc tp,0x0
1e8: ffc20213 addi tp,tp,-4 # 1e0 <begin_testcode+0x160>
1ec: 40480833 sub a6,a6,tp
1f0: 01012223 sw a6,4(sp)
1f4: 00000897 auipc a7,0x0
1f8: 00000217 auipc tp,0x0
1fc: ffc20213 addi tp,tp,-4 # 1f4 <begin_testcode+0x174>
200: 404888b3 sub a7,a7,tp
204: 01112423 sw a7,8(sp)
208: 007ff917 auipc s2,0x7ff
20c: 00000217 auipc tp,0x0
210: ffc20213 addi tp,tp,-4 # 208 <begin_testcode+0x188>
214: 40490933 sub s2,s2,tp
218: 01212623 sw s2,12(sp)
21c: 00001997 auipc s3,0x1
220: 00000217 auipc tp,0x0
224: ffc20213 addi tp,tp,-4 # 21c <begin_testcode+0x19c>
228: 404989b3 sub s3,s3,tp
22c: 01312823 sw s3,16(sp)
230: 00002097 auipc ra,0x2
234: e2008093 addi ra,ra,-480 # 2050 <test_5_res>
238: 01234a17 auipc s4,0x1234
23c: 00000197 auipc gp,0x0
240: ffc18193 addi gp,gp,-4 # 238 <begin_testcode+0x1b8>
244: 403a0a33 sub s4,s4,gp
248: 0140a023 sw s4,0(ra)
24c: 80000a97 auipc s5,0x80000
250: 00000197 auipc gp,0x0
254: ffc18193 addi gp,gp,-4 # 24c <begin_testcode+0x1cc>
258: 403a8ab3 sub s5,s5,gp
25c: 0150a223 sw s5,4(ra)
260: 01234b17 auipc s6,0x1234
264: 00000197 auipc gp,0x0
268: ffc18193 addi gp,gp,-4 # 260 <begin_testcode+0x1e0>
26c: 403b0b33 sub s6,s6,gp
270: 0160a423 sw s6,8(ra)
274: fffffb97 auipc s7,0xfffff
278: 00000197 auipc gp,0x0
27c: ffc18193 addi gp,gp,-4 # 274 <begin_testcode+0x1f4>
280: 403b8bb3 sub s7,s7,gp
284: 0170a623 sw s7,12(ra)
288: 00001c17 auipc s8,0x1
28c: 00000197 auipc gp,0x0
290: ffc18193 addi gp,gp,-4 # 288 <begin_testcode+0x208>
294: 403c0c33 sub s8,s8,gp
298: 0180a823 sw s8,16(ra)
29c: 00002097 auipc ra,0x2
2a0: dc808093 addi ra,ra,-568 # 2064 <test_6_res>
2a4: 7ffffc97 auipc s9,0x7ffff
2a8: 00000417 auipc s0,0x0
2ac: ffc40413 addi s0,s0,-4 # 2a4 <begin_testcode+0x224>
2b0: 408c8cb3 sub s9,s9,s0
2b4: 0190a023 sw s9,0(ra)
2b8: 54321d17 auipc s10,0x54321
2bc: 00000417 auipc s0,0x0
2c0: ffc40413 addi s0,s0,-4 # 2b8 <begin_testcode+0x238>
2c4: 408d0d33 sub s10,s10,s0
2c8: 01a0a223 sw s10,4(ra)
2cc: 00800d97 auipc s11,0x800
2d0: 00000417 auipc s0,0x0
2d4: ffc40413 addi s0,s0,-4 # 2cc <begin_testcode+0x24c>
2d8: 408d8db3 sub s11,s11,s0
2dc: 01b0a423 sw s11,8(ra)
2e0: 00000e17 auipc t3,0x0
2e4: 00000417 auipc s0,0x0
2e8: ffc40413 addi s0,s0,-4 # 2e0 <begin_testcode+0x260>
2ec: 408e0e33 sub t3,t3,s0
2f0: 01c0a623 sw t3,12(ra)
2f4: 007ffe97 auipc t4,0x7ff
2f8: 00000417 auipc s0,0x0
2fc: ffc40413 addi s0,s0,-4 # 2f4 <begin_testcode+0x274>
300: 408e8eb3 sub t4,t4,s0
304: 01d0a823 sw t4,16(ra)
308: 00002117 auipc sp,0x2
30c: d7010113 addi sp,sp,-656 # 2078 <test_7_res>
310: 00000f17 auipc t5,0x0
314: 00000217 auipc tp,0x0
318: ffc20213 addi tp,tp,-4 # 310 <begin_testcode+0x290>
31c: 404f0f33 sub t5,t5,tp
320: 01e12023 sw t5,0(sp)
324: 00001f97 auipc t6,0x1
328: 00000217 auipc tp,0x0
32c: ffc20213 addi tp,tp,-4 # 324 <begin_testcode+0x2a4>
330: 404f8fb3 sub t6,t6,tp
334: 01f12223 sw t6,4(sp)
338: 00002297 auipc t0,0x2
33c: cc828293 addi t0,t0,-824 # 2000 <begin_signature>
340: 10000337 lui t1,0x10000
344: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
348: 00532023 sw t0,0(t1)
34c: 00002297 auipc t0,0x2
350: d4428293 addi t0,t0,-700 # 2090 <end_signature>
354: 10000337 lui t1,0x10000
358: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
35c: 00532023 sw t0,0(t1)
360: 00100293 li t0,1
364: 10000337 lui t1,0x10000
368: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
36c: 00532023 sw t0,0(t1)
370: 00000013 nop
374: 00100193 li gp,1
378: 00000073 ecall
0000037c <end_testcode>:
37c: c0001073 unimp
380: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,480 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BEQ-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002117 auipc sp,0x2
84: f8010113 addi sp,sp,-128 # 2000 <begin_signature>
88: 0000d0b7 lui ra,0xd
8c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
90: fff00f93 li t6,-1
94: 00000813 li a6,0
98: 010f8663 beq t6,a6,a4 <begin_testcode+0x24>
9c: 000120b7 lui ra,0x12
a0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
a4: 00112023 sw ra,0(sp)
a8: 0000d0b7 lui ra,0xd
ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
b0: 00100f13 li t5,1
b4: 80100793 li a5,-2047
b8: 00ff0663 beq t5,a5,c4 <begin_testcode+0x44>
bc: 000120b7 lui ra,0x12
c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
c4: 00112223 sw ra,4(sp)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000d0b7 lui ra,0xd
d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
d8: 00000e93 li t4,0
dc: fff00713 li a4,-1
e0: feee86e3 beq t4,a4,cc <begin_testcode+0x4c>
e4: 000120b7 lui ra,0x12
e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
ec: 00112423 sw ra,8(sp)
f0: 0000d0b7 lui ra,0xd
f4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
f8: 7ff00e13 li t3,2047
fc: fffff6b7 lui a3,0xfffff
100: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
104: 00de0663 beq t3,a3,110 <begin_testcode+0x90>
108: 000120b7 lui ra,0x12
10c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
110: 00112623 sw ra,12(sp)
114: 0000d0b7 lui ra,0xd
118: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
11c: 00000d93 li s11,0
120: 80000637 lui a2,0x80000
124: 00cd8663 beq s11,a2,130 <begin_testcode+0xb0>
128: 000120b7 lui ra,0x12
12c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
130: 00112823 sw ra,16(sp)
134: 00002117 auipc sp,0x2
138: ee010113 addi sp,sp,-288 # 2014 <test_2_res>
13c: 0000d0b7 lui ra,0xd
140: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
144: 00001d37 lui s10,0x1
148: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x284>
14c: 000015b7 lui a1,0x1
150: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
154: 00bd0663 beq s10,a1,160 <begin_testcode+0xe0>
158: 000120b7 lui ra,0x12
15c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
160: 00112023 sw ra,0(sp)
164: 0000d0b7 lui ra,0xd
168: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
16c: 07654cb7 lui s9,0x7654
170: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
174: fff00513 li a0,-1
178: 00ac8663 beq s9,a0,184 <begin_testcode+0x104>
17c: 000120b7 lui ra,0x12
180: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
184: 00112223 sw ra,4(sp)
188: 0080006f j 190 <begin_testcode+0x110>
18c: 0240006f j 1b0 <begin_testcode+0x130>
190: 0000d0b7 lui ra,0xd
194: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
198: 80000c37 lui s8,0x80000
19c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
1a0: 00100493 li s1,1
1a4: fe9c04e3 beq s8,s1,18c <begin_testcode+0x10c>
1a8: 000120b7 lui ra,0x12
1ac: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1b0: 00112423 sw ra,8(sp)
1b4: 0000d0b7 lui ra,0xd
1b8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1bc: 00100b93 li s7,1
1c0: 80000437 lui s0,0x80000
1c4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1c8: 008b8663 beq s7,s0,1d4 <begin_testcode+0x154>
1cc: 000120b7 lui ra,0x12
1d0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1d4: 00112623 sw ra,12(sp)
1d8: 0000d0b7 lui ra,0xd
1dc: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1e0: fff00b13 li s6,-1
1e4: 076543b7 lui t2,0x7654
1e8: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
1ec: 007b0663 beq s6,t2,1f8 <begin_testcode+0x178>
1f0: 000120b7 lui ra,0x12
1f4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1f8: 00112823 sw ra,16(sp)
1fc: 00002397 auipc t2,0x2
200: e2c38393 addi t2,t2,-468 # 2028 <test_3_res>
204: 0000d0b7 lui ra,0xd
208: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
20c: 00001ab7 lui s5,0x1
210: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
214: 00001337 lui t1,0x1
218: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x284>
21c: 006a8663 beq s5,t1,228 <begin_testcode+0x1a8>
220: 000120b7 lui ra,0x12
224: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
228: 0013a023 sw ra,0(t2)
22c: 0000d0b7 lui ra,0xd
230: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
234: 80000a37 lui s4,0x80000
238: 00000293 li t0,0
23c: 005a0663 beq s4,t0,248 <begin_testcode+0x1c8>
240: 000120b7 lui ra,0x12
244: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
248: 0013a223 sw ra,4(t2)
24c: 0080006f j 254 <begin_testcode+0x1d4>
250: 0240006f j 274 <begin_testcode+0x1f4>
254: 0000d0b7 lui ra,0xd
258: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
25c: fffff9b7 lui s3,0xfffff
260: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
264: 7ff00213 li tp,2047
268: fe4984e3 beq s3,tp,250 <begin_testcode+0x1d0>
26c: 000120b7 lui ra,0x12
270: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
274: 0013a423 sw ra,8(t2)
278: 0000d0b7 lui ra,0xd
27c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
280: fff00913 li s2,-1
284: fff00193 li gp,-1
288: 00390663 beq s2,gp,294 <begin_testcode+0x214>
28c: 000120b7 lui ra,0x12
290: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
294: 0013a623 sw ra,12(t2)
298: 0000d0b7 lui ra,0xd
29c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2a0: 80100893 li a7,-2047
2a4: 00100113 li sp,1
2a8: 00288663 beq a7,sp,2b4 <begin_testcode+0x234>
2ac: 000120b7 lui ra,0x12
2b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2b4: 0013a823 sw ra,16(t2)
2b8: 00002197 auipc gp,0x2
2bc: d8418193 addi gp,gp,-636 # 203c <test_4_res>
2c0: 0000d137 lui sp,0xd
2c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
2c8: 00000813 li a6,0
2cc: 00000093 li ra,0
2d0: 00180663 beq a6,ra,2dc <begin_testcode+0x25c>
2d4: 00012137 lui sp,0x12
2d8: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
2dc: 0021a023 sw sp,0(gp)
2e0: 0000d0b7 lui ra,0xd
2e4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2e8: fff00793 li a5,-1
2ec: 00000013 nop
2f0: 00078663 beqz a5,2fc <begin_testcode+0x27c>
2f4: 000120b7 lui ra,0x12
2f8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2fc: 0011a223 sw ra,4(gp)
300: 0080006f j 308 <begin_testcode+0x288>
304: 0200006f j 324 <begin_testcode+0x2a4>
308: 0000d0b7 lui ra,0xd
30c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
310: 00100713 li a4,1
314: 80100f93 li t6,-2047
318: fff706e3 beq a4,t6,304 <begin_testcode+0x284>
31c: 000120b7 lui ra,0x12
320: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
324: 0011a423 sw ra,8(gp)
328: 0000d0b7 lui ra,0xd
32c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
330: 00000693 li a3,0
334: fff00f13 li t5,-1
338: 01e68663 beq a3,t5,344 <begin_testcode+0x2c4>
33c: 000120b7 lui ra,0x12
340: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
344: 0011a623 sw ra,12(gp)
348: 0000d0b7 lui ra,0xd
34c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
350: 7ff00613 li a2,2047
354: fffffeb7 lui t4,0xfffff
358: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
35c: 01d60663 beq a2,t4,368 <begin_testcode+0x2e8>
360: 000120b7 lui ra,0x12
364: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
368: 0011a823 sw ra,16(gp)
36c: 00002117 auipc sp,0x2
370: ce410113 addi sp,sp,-796 # 2050 <test_5_res>
374: 0000d0b7 lui ra,0xd
378: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
37c: 00000593 li a1,0
380: 80000e37 lui t3,0x80000
384: 01c58663 beq a1,t3,390 <begin_testcode+0x310>
388: 000120b7 lui ra,0x12
38c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
390: 00112023 sw ra,0(sp)
394: 0000d0b7 lui ra,0xd
398: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
39c: 00001537 lui a0,0x1
3a0: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x284>
3a4: 00001db7 lui s11,0x1
3a8: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
3ac: 01b50663 beq a0,s11,3b8 <begin_testcode+0x338>
3b0: 000120b7 lui ra,0x12
3b4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3b8: 00112223 sw ra,4(sp)
3bc: 0080006f j 3c4 <begin_testcode+0x344>
3c0: 0240006f j 3e4 <begin_testcode+0x364>
3c4: 0000d0b7 lui ra,0xd
3c8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3cc: 076544b7 lui s1,0x7654
3d0: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
3d4: fff00d13 li s10,-1
3d8: ffa484e3 beq s1,s10,3c0 <begin_testcode+0x340>
3dc: 000120b7 lui ra,0x12
3e0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3e4: 00112423 sw ra,8(sp)
3e8: 0000d0b7 lui ra,0xd
3ec: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3f0: 80000437 lui s0,0x80000
3f4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
3f8: 00100c93 li s9,1
3fc: 01940663 beq s0,s9,408 <begin_testcode+0x388>
400: 000120b7 lui ra,0x12
404: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
408: 00112623 sw ra,12(sp)
40c: 0000d0b7 lui ra,0xd
410: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
414: 00100393 li t2,1
418: 80000c37 lui s8,0x80000
41c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
420: 01838663 beq t2,s8,42c <begin_testcode+0x3ac>
424: 000120b7 lui ra,0x12
428: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
42c: 00112823 sw ra,16(sp)
430: 00002397 auipc t2,0x2
434: c3438393 addi t2,t2,-972 # 2064 <test_6_res>
438: 0000d0b7 lui ra,0xd
43c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
440: fff00313 li t1,-1
444: 07654bb7 lui s7,0x7654
448: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
44c: 01730663 beq t1,s7,458 <begin_testcode+0x3d8>
450: 000120b7 lui ra,0x12
454: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
458: 0013a023 sw ra,0(t2)
45c: 0000d0b7 lui ra,0xd
460: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
464: 000012b7 lui t0,0x1
468: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
46c: 00001b37 lui s6,0x1
470: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x284>
474: 01628663 beq t0,s6,480 <begin_testcode+0x400>
478: 000120b7 lui ra,0x12
47c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
480: 0013a223 sw ra,4(t2)
484: 0080006f j 48c <begin_testcode+0x40c>
488: 0200006f j 4a8 <begin_testcode+0x428>
48c: 0000d0b7 lui ra,0xd
490: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
494: 80000237 lui tp,0x80000
498: 00000a93 li s5,0
49c: ff5206e3 beq tp,s5,488 <begin_testcode+0x408>
4a0: 000120b7 lui ra,0x12
4a4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4a8: 0013a423 sw ra,8(t2)
4ac: 0000d0b7 lui ra,0xd
4b0: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b4: fffff1b7 lui gp,0xfffff
4b8: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
4bc: 7ff00a13 li s4,2047
4c0: 01418663 beq gp,s4,4cc <begin_testcode+0x44c>
4c4: 000120b7 lui ra,0x12
4c8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4cc: 0013a623 sw ra,12(t2)
4d0: 0000d0b7 lui ra,0xd
4d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4d8: fff00113 li sp,-1
4dc: fff00993 li s3,-1
4e0: 01310663 beq sp,s3,4ec <begin_testcode+0x46c>
4e4: 000120b7 lui ra,0x12
4e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4ec: 0013a823 sw ra,16(t2)
4f0: 00002197 auipc gp,0x2
4f4: b8818193 addi gp,gp,-1144 # 2078 <test_7_res>
4f8: 0000d137 lui sp,0xd
4fc: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
500: 80100093 li ra,-2047
504: 00100913 li s2,1
508: 01208663 beq ra,s2,514 <begin_testcode+0x494>
50c: 00012137 lui sp,0x12
510: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
514: 0021a023 sw sp,0(gp)
518: 0000d0b7 lui ra,0xd
51c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
520: 00000013 nop
524: 00000893 li a7,0
528: 01100663 beq zero,a7,534 <begin_testcode+0x4b4>
52c: 000120b7 lui ra,0x12
530: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
534: 0011a223 sw ra,4(gp)
538: 00002297 auipc t0,0x2
53c: ac828293 addi t0,t0,-1336 # 2000 <begin_signature>
540: 10000337 lui t1,0x10000
544: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
548: 00532023 sw t0,0(t1)
54c: 00002297 auipc t0,0x2
550: b4428293 addi t0,t0,-1212 # 2090 <end_signature>
554: 10000337 lui t1,0x10000
558: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
55c: 00532023 sw t0,0(t1)
560: 00100293 li t0,1
564: 10000337 lui t1,0x10000
568: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
56c: 00532023 sw t0,0(t1)
570: 00000013 nop
574: 00100193 li gp,1
578: 00000073 ecall
0000057c <end_testcode>:
57c: c0001073 unimp
580: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,480 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BGE-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002117 auipc sp,0x2
84: f8010113 addi sp,sp,-128 # 2000 <begin_signature>
88: 0000d0b7 lui ra,0xd
8c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
90: fff00f93 li t6,-1
94: 00000813 li a6,0
98: 010fd663 bge t6,a6,a4 <begin_testcode+0x24>
9c: 000120b7 lui ra,0x12
a0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
a4: 00112023 sw ra,0(sp)
a8: 0000d0b7 lui ra,0xd
ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
b0: 00100f13 li t5,1
b4: 80100793 li a5,-2047
b8: 00ff5663 bge t5,a5,c4 <begin_testcode+0x44>
bc: 000120b7 lui ra,0x12
c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
c4: 00112223 sw ra,4(sp)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000d0b7 lui ra,0xd
d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
d8: 00000e93 li t4,0
dc: fff00713 li a4,-1
e0: feeed6e3 bge t4,a4,cc <begin_testcode+0x4c>
e4: 000120b7 lui ra,0x12
e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
ec: 00112423 sw ra,8(sp)
f0: 0000d0b7 lui ra,0xd
f4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
f8: 7ff00e13 li t3,2047
fc: fffff6b7 lui a3,0xfffff
100: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
104: 00de5663 bge t3,a3,110 <begin_testcode+0x90>
108: 000120b7 lui ra,0x12
10c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
110: 00112623 sw ra,12(sp)
114: 0000d0b7 lui ra,0xd
118: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
11c: 00000d93 li s11,0
120: 80000637 lui a2,0x80000
124: 00cdd663 bge s11,a2,130 <begin_testcode+0xb0>
128: 000120b7 lui ra,0x12
12c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
130: 00112823 sw ra,16(sp)
134: 00002117 auipc sp,0x2
138: ee010113 addi sp,sp,-288 # 2014 <test_2_res>
13c: 0000d0b7 lui ra,0xd
140: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
144: 00001d37 lui s10,0x1
148: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x284>
14c: 000015b7 lui a1,0x1
150: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
154: 00bd5663 bge s10,a1,160 <begin_testcode+0xe0>
158: 000120b7 lui ra,0x12
15c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
160: 00112023 sw ra,0(sp)
164: 0000d0b7 lui ra,0xd
168: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
16c: 07654cb7 lui s9,0x7654
170: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
174: fff00513 li a0,-1
178: 00acd663 bge s9,a0,184 <begin_testcode+0x104>
17c: 000120b7 lui ra,0x12
180: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
184: 00112223 sw ra,4(sp)
188: 0080006f j 190 <begin_testcode+0x110>
18c: 0240006f j 1b0 <begin_testcode+0x130>
190: 0000d0b7 lui ra,0xd
194: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
198: 80000c37 lui s8,0x80000
19c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
1a0: 00100493 li s1,1
1a4: fe9c54e3 bge s8,s1,18c <begin_testcode+0x10c>
1a8: 000120b7 lui ra,0x12
1ac: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1b0: 00112423 sw ra,8(sp)
1b4: 0000d0b7 lui ra,0xd
1b8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1bc: 00100b93 li s7,1
1c0: 80000437 lui s0,0x80000
1c4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1c8: 008bd663 bge s7,s0,1d4 <begin_testcode+0x154>
1cc: 000120b7 lui ra,0x12
1d0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1d4: 00112623 sw ra,12(sp)
1d8: 0000d0b7 lui ra,0xd
1dc: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1e0: fff00b13 li s6,-1
1e4: 076543b7 lui t2,0x7654
1e8: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
1ec: 007b5663 bge s6,t2,1f8 <begin_testcode+0x178>
1f0: 000120b7 lui ra,0x12
1f4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1f8: 00112823 sw ra,16(sp)
1fc: 00002397 auipc t2,0x2
200: e2c38393 addi t2,t2,-468 # 2028 <test_3_res>
204: 0000d0b7 lui ra,0xd
208: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
20c: 00001ab7 lui s5,0x1
210: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
214: 00001337 lui t1,0x1
218: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x284>
21c: 006ad663 bge s5,t1,228 <begin_testcode+0x1a8>
220: 000120b7 lui ra,0x12
224: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
228: 0013a023 sw ra,0(t2)
22c: 0000d0b7 lui ra,0xd
230: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
234: 80000a37 lui s4,0x80000
238: 00000293 li t0,0
23c: 005a5663 bge s4,t0,248 <begin_testcode+0x1c8>
240: 000120b7 lui ra,0x12
244: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
248: 0013a223 sw ra,4(t2)
24c: 0080006f j 254 <begin_testcode+0x1d4>
250: 0240006f j 274 <begin_testcode+0x1f4>
254: 0000d0b7 lui ra,0xd
258: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
25c: fffff9b7 lui s3,0xfffff
260: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
264: 7ff00213 li tp,2047
268: fe49d4e3 bge s3,tp,250 <begin_testcode+0x1d0>
26c: 000120b7 lui ra,0x12
270: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
274: 0013a423 sw ra,8(t2)
278: 0000d0b7 lui ra,0xd
27c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
280: fff00913 li s2,-1
284: fff00193 li gp,-1
288: 00395663 bge s2,gp,294 <begin_testcode+0x214>
28c: 000120b7 lui ra,0x12
290: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
294: 0013a623 sw ra,12(t2)
298: 0000d0b7 lui ra,0xd
29c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2a0: 80100893 li a7,-2047
2a4: 00100113 li sp,1
2a8: 0028d663 bge a7,sp,2b4 <begin_testcode+0x234>
2ac: 000120b7 lui ra,0x12
2b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2b4: 0013a823 sw ra,16(t2)
2b8: 00002197 auipc gp,0x2
2bc: d8418193 addi gp,gp,-636 # 203c <test_4_res>
2c0: 0000d137 lui sp,0xd
2c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
2c8: 00000813 li a6,0
2cc: 00000093 li ra,0
2d0: 00185663 bge a6,ra,2dc <begin_testcode+0x25c>
2d4: 00012137 lui sp,0x12
2d8: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
2dc: 0021a023 sw sp,0(gp)
2e0: 0000d0b7 lui ra,0xd
2e4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2e8: fff00793 li a5,-1
2ec: 00000013 nop
2f0: 0007d663 bgez a5,2fc <begin_testcode+0x27c>
2f4: 000120b7 lui ra,0x12
2f8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2fc: 0011a223 sw ra,4(gp)
300: 0080006f j 308 <begin_testcode+0x288>
304: 0200006f j 324 <begin_testcode+0x2a4>
308: 0000d0b7 lui ra,0xd
30c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
310: 00100713 li a4,1
314: 80100f93 li t6,-2047
318: fff756e3 bge a4,t6,304 <begin_testcode+0x284>
31c: 000120b7 lui ra,0x12
320: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
324: 0011a423 sw ra,8(gp)
328: 0000d0b7 lui ra,0xd
32c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
330: 00000693 li a3,0
334: fff00f13 li t5,-1
338: 01e6d663 bge a3,t5,344 <begin_testcode+0x2c4>
33c: 000120b7 lui ra,0x12
340: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
344: 0011a623 sw ra,12(gp)
348: 0000d0b7 lui ra,0xd
34c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
350: 7ff00613 li a2,2047
354: fffffeb7 lui t4,0xfffff
358: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
35c: 01d65663 bge a2,t4,368 <begin_testcode+0x2e8>
360: 000120b7 lui ra,0x12
364: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
368: 0011a823 sw ra,16(gp)
36c: 00002117 auipc sp,0x2
370: ce410113 addi sp,sp,-796 # 2050 <test_5_res>
374: 0000d0b7 lui ra,0xd
378: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
37c: 00000593 li a1,0
380: 80000e37 lui t3,0x80000
384: 01c5d663 bge a1,t3,390 <begin_testcode+0x310>
388: 000120b7 lui ra,0x12
38c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
390: 00112023 sw ra,0(sp)
394: 0000d0b7 lui ra,0xd
398: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
39c: 00001537 lui a0,0x1
3a0: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x284>
3a4: 00001db7 lui s11,0x1
3a8: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
3ac: 01b55663 bge a0,s11,3b8 <begin_testcode+0x338>
3b0: 000120b7 lui ra,0x12
3b4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3b8: 00112223 sw ra,4(sp)
3bc: 0080006f j 3c4 <begin_testcode+0x344>
3c0: 0240006f j 3e4 <begin_testcode+0x364>
3c4: 0000d0b7 lui ra,0xd
3c8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3cc: 076544b7 lui s1,0x7654
3d0: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
3d4: fff00d13 li s10,-1
3d8: ffa4d4e3 bge s1,s10,3c0 <begin_testcode+0x340>
3dc: 000120b7 lui ra,0x12
3e0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3e4: 00112423 sw ra,8(sp)
3e8: 0000d0b7 lui ra,0xd
3ec: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3f0: 80000437 lui s0,0x80000
3f4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
3f8: 00100c93 li s9,1
3fc: 01945663 bge s0,s9,408 <begin_testcode+0x388>
400: 000120b7 lui ra,0x12
404: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
408: 00112623 sw ra,12(sp)
40c: 0000d0b7 lui ra,0xd
410: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
414: 00100393 li t2,1
418: 80000c37 lui s8,0x80000
41c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
420: 0183d663 bge t2,s8,42c <begin_testcode+0x3ac>
424: 000120b7 lui ra,0x12
428: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
42c: 00112823 sw ra,16(sp)
430: 00002397 auipc t2,0x2
434: c3438393 addi t2,t2,-972 # 2064 <test_6_res>
438: 0000d0b7 lui ra,0xd
43c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
440: fff00313 li t1,-1
444: 07654bb7 lui s7,0x7654
448: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
44c: 01735663 bge t1,s7,458 <begin_testcode+0x3d8>
450: 000120b7 lui ra,0x12
454: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
458: 0013a023 sw ra,0(t2)
45c: 0000d0b7 lui ra,0xd
460: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
464: 000012b7 lui t0,0x1
468: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
46c: 00001b37 lui s6,0x1
470: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x284>
474: 0162d663 bge t0,s6,480 <begin_testcode+0x400>
478: 000120b7 lui ra,0x12
47c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
480: 0013a223 sw ra,4(t2)
484: 0080006f j 48c <begin_testcode+0x40c>
488: 0200006f j 4a8 <begin_testcode+0x428>
48c: 0000d0b7 lui ra,0xd
490: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
494: 80000237 lui tp,0x80000
498: 00000a93 li s5,0
49c: ff5256e3 bge tp,s5,488 <begin_testcode+0x408>
4a0: 000120b7 lui ra,0x12
4a4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4a8: 0013a423 sw ra,8(t2)
4ac: 0000d0b7 lui ra,0xd
4b0: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b4: fffff1b7 lui gp,0xfffff
4b8: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
4bc: 7ff00a13 li s4,2047
4c0: 0141d663 bge gp,s4,4cc <begin_testcode+0x44c>
4c4: 000120b7 lui ra,0x12
4c8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4cc: 0013a623 sw ra,12(t2)
4d0: 0000d0b7 lui ra,0xd
4d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4d8: fff00113 li sp,-1
4dc: fff00993 li s3,-1
4e0: 01315663 bge sp,s3,4ec <begin_testcode+0x46c>
4e4: 000120b7 lui ra,0x12
4e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4ec: 0013a823 sw ra,16(t2)
4f0: 00002197 auipc gp,0x2
4f4: b8818193 addi gp,gp,-1144 # 2078 <test_7_res>
4f8: 0000d137 lui sp,0xd
4fc: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
500: 80100093 li ra,-2047
504: 00100913 li s2,1
508: 0120d663 bge ra,s2,514 <begin_testcode+0x494>
50c: 00012137 lui sp,0x12
510: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
514: 0021a023 sw sp,0(gp)
518: 0000d0b7 lui ra,0xd
51c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
520: 00000013 nop
524: 00000893 li a7,0
528: 01105663 blez a7,534 <begin_testcode+0x4b4>
52c: 000120b7 lui ra,0x12
530: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
534: 0011a223 sw ra,4(gp)
538: 00002297 auipc t0,0x2
53c: ac828293 addi t0,t0,-1336 # 2000 <begin_signature>
540: 10000337 lui t1,0x10000
544: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
548: 00532023 sw t0,0(t1)
54c: 00002297 auipc t0,0x2
550: b4428293 addi t0,t0,-1212 # 2090 <end_signature>
554: 10000337 lui t1,0x10000
558: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
55c: 00532023 sw t0,0(t1)
560: 00100293 li t0,1
564: 10000337 lui t1,0x10000
568: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
56c: 00532023 sw t0,0(t1)
570: 00000013 nop
574: 00100193 li gp,1
578: 00000073 ecall
0000057c <end_testcode>:
57c: c0001073 unimp
580: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,480 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BGEU-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002117 auipc sp,0x2
84: f8010113 addi sp,sp,-128 # 2000 <begin_signature>
88: 0000d0b7 lui ra,0xd
8c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
90: fff00f93 li t6,-1
94: 00000813 li a6,0
98: 010ff663 bgeu t6,a6,a4 <begin_testcode+0x24>
9c: 000120b7 lui ra,0x12
a0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
a4: 00112023 sw ra,0(sp)
a8: 0000d0b7 lui ra,0xd
ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
b0: 00100f13 li t5,1
b4: 80100793 li a5,-2047
b8: 00ff7663 bgeu t5,a5,c4 <begin_testcode+0x44>
bc: 000120b7 lui ra,0x12
c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
c4: 00112223 sw ra,4(sp)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000d0b7 lui ra,0xd
d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
d8: 00000e93 li t4,0
dc: fff00713 li a4,-1
e0: feeef6e3 bgeu t4,a4,cc <begin_testcode+0x4c>
e4: 000120b7 lui ra,0x12
e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
ec: 00112423 sw ra,8(sp)
f0: 0000d0b7 lui ra,0xd
f4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
f8: 7ff00e13 li t3,2047
fc: fffff6b7 lui a3,0xfffff
100: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
104: 00de7663 bgeu t3,a3,110 <begin_testcode+0x90>
108: 000120b7 lui ra,0x12
10c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
110: 00112623 sw ra,12(sp)
114: 0000d0b7 lui ra,0xd
118: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
11c: 00000d93 li s11,0
120: 80000637 lui a2,0x80000
124: 00cdf663 bgeu s11,a2,130 <begin_testcode+0xb0>
128: 000120b7 lui ra,0x12
12c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
130: 00112823 sw ra,16(sp)
134: 00002117 auipc sp,0x2
138: ee010113 addi sp,sp,-288 # 2014 <test_2_res>
13c: 0000d0b7 lui ra,0xd
140: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
144: 00001d37 lui s10,0x1
148: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x284>
14c: 000015b7 lui a1,0x1
150: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
154: 00bd7663 bgeu s10,a1,160 <begin_testcode+0xe0>
158: 000120b7 lui ra,0x12
15c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
160: 00112023 sw ra,0(sp)
164: 0000d0b7 lui ra,0xd
168: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
16c: 07654cb7 lui s9,0x7654
170: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
174: fff00513 li a0,-1
178: 00acf663 bgeu s9,a0,184 <begin_testcode+0x104>
17c: 000120b7 lui ra,0x12
180: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
184: 00112223 sw ra,4(sp)
188: 0080006f j 190 <begin_testcode+0x110>
18c: 0240006f j 1b0 <begin_testcode+0x130>
190: 0000d0b7 lui ra,0xd
194: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
198: 80000c37 lui s8,0x80000
19c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
1a0: 00100493 li s1,1
1a4: fe9c74e3 bgeu s8,s1,18c <begin_testcode+0x10c>
1a8: 000120b7 lui ra,0x12
1ac: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1b0: 00112423 sw ra,8(sp)
1b4: 0000d0b7 lui ra,0xd
1b8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1bc: 00100b93 li s7,1
1c0: 80000437 lui s0,0x80000
1c4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1c8: 008bf663 bgeu s7,s0,1d4 <begin_testcode+0x154>
1cc: 000120b7 lui ra,0x12
1d0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1d4: 00112623 sw ra,12(sp)
1d8: 0000d0b7 lui ra,0xd
1dc: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1e0: fff00b13 li s6,-1
1e4: 076543b7 lui t2,0x7654
1e8: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
1ec: 007b7663 bgeu s6,t2,1f8 <begin_testcode+0x178>
1f0: 000120b7 lui ra,0x12
1f4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1f8: 00112823 sw ra,16(sp)
1fc: 00002397 auipc t2,0x2
200: e2c38393 addi t2,t2,-468 # 2028 <test_3_res>
204: 0000d0b7 lui ra,0xd
208: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
20c: 00001ab7 lui s5,0x1
210: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
214: 00001337 lui t1,0x1
218: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x284>
21c: 006af663 bgeu s5,t1,228 <begin_testcode+0x1a8>
220: 000120b7 lui ra,0x12
224: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
228: 0013a023 sw ra,0(t2)
22c: 0000d0b7 lui ra,0xd
230: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
234: 80000a37 lui s4,0x80000
238: 00000293 li t0,0
23c: 005a7663 bgeu s4,t0,248 <begin_testcode+0x1c8>
240: 000120b7 lui ra,0x12
244: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
248: 0013a223 sw ra,4(t2)
24c: 0080006f j 254 <begin_testcode+0x1d4>
250: 0240006f j 274 <begin_testcode+0x1f4>
254: 0000d0b7 lui ra,0xd
258: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
25c: fffff9b7 lui s3,0xfffff
260: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
264: 7ff00213 li tp,2047
268: fe49f4e3 bgeu s3,tp,250 <begin_testcode+0x1d0>
26c: 000120b7 lui ra,0x12
270: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
274: 0013a423 sw ra,8(t2)
278: 0000d0b7 lui ra,0xd
27c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
280: fff00913 li s2,-1
284: fff00193 li gp,-1
288: 00397663 bgeu s2,gp,294 <begin_testcode+0x214>
28c: 000120b7 lui ra,0x12
290: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
294: 0013a623 sw ra,12(t2)
298: 0000d0b7 lui ra,0xd
29c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2a0: 80100893 li a7,-2047
2a4: 00100113 li sp,1
2a8: 0028f663 bgeu a7,sp,2b4 <begin_testcode+0x234>
2ac: 000120b7 lui ra,0x12
2b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2b4: 0013a823 sw ra,16(t2)
2b8: 00002197 auipc gp,0x2
2bc: d8418193 addi gp,gp,-636 # 203c <test_4_res>
2c0: 0000d137 lui sp,0xd
2c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
2c8: 00000813 li a6,0
2cc: 00000093 li ra,0
2d0: 00187663 bgeu a6,ra,2dc <begin_testcode+0x25c>
2d4: 00012137 lui sp,0x12
2d8: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
2dc: 0021a023 sw sp,0(gp)
2e0: 0000d0b7 lui ra,0xd
2e4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2e8: fff00793 li a5,-1
2ec: 00000013 nop
2f0: 0007f663 bgeu a5,zero,2fc <begin_testcode+0x27c>
2f4: 000120b7 lui ra,0x12
2f8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2fc: 0011a223 sw ra,4(gp)
300: 0080006f j 308 <begin_testcode+0x288>
304: 0200006f j 324 <begin_testcode+0x2a4>
308: 0000d0b7 lui ra,0xd
30c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
310: 00100713 li a4,1
314: 80100f93 li t6,-2047
318: fff776e3 bgeu a4,t6,304 <begin_testcode+0x284>
31c: 000120b7 lui ra,0x12
320: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
324: 0011a423 sw ra,8(gp)
328: 0000d0b7 lui ra,0xd
32c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
330: 00000693 li a3,0
334: fff00f13 li t5,-1
338: 01e6f663 bgeu a3,t5,344 <begin_testcode+0x2c4>
33c: 000120b7 lui ra,0x12
340: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
344: 0011a623 sw ra,12(gp)
348: 0000d0b7 lui ra,0xd
34c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
350: 7ff00613 li a2,2047
354: fffffeb7 lui t4,0xfffff
358: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
35c: 01d67663 bgeu a2,t4,368 <begin_testcode+0x2e8>
360: 000120b7 lui ra,0x12
364: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
368: 0011a823 sw ra,16(gp)
36c: 00002117 auipc sp,0x2
370: ce410113 addi sp,sp,-796 # 2050 <test_5_res>
374: 0000d0b7 lui ra,0xd
378: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
37c: 00000593 li a1,0
380: 80000e37 lui t3,0x80000
384: 01c5f663 bgeu a1,t3,390 <begin_testcode+0x310>
388: 000120b7 lui ra,0x12
38c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
390: 00112023 sw ra,0(sp)
394: 0000d0b7 lui ra,0xd
398: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
39c: 00001537 lui a0,0x1
3a0: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x284>
3a4: 00001db7 lui s11,0x1
3a8: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
3ac: 01b57663 bgeu a0,s11,3b8 <begin_testcode+0x338>
3b0: 000120b7 lui ra,0x12
3b4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3b8: 00112223 sw ra,4(sp)
3bc: 0080006f j 3c4 <begin_testcode+0x344>
3c0: 0240006f j 3e4 <begin_testcode+0x364>
3c4: 0000d0b7 lui ra,0xd
3c8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3cc: 076544b7 lui s1,0x7654
3d0: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
3d4: fff00d13 li s10,-1
3d8: ffa4f4e3 bgeu s1,s10,3c0 <begin_testcode+0x340>
3dc: 000120b7 lui ra,0x12
3e0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3e4: 00112423 sw ra,8(sp)
3e8: 0000d0b7 lui ra,0xd
3ec: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3f0: 80000437 lui s0,0x80000
3f4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
3f8: 00100c93 li s9,1
3fc: 01947663 bgeu s0,s9,408 <begin_testcode+0x388>
400: 000120b7 lui ra,0x12
404: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
408: 00112623 sw ra,12(sp)
40c: 0000d0b7 lui ra,0xd
410: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
414: 00100393 li t2,1
418: 80000c37 lui s8,0x80000
41c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
420: 0183f663 bgeu t2,s8,42c <begin_testcode+0x3ac>
424: 000120b7 lui ra,0x12
428: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
42c: 00112823 sw ra,16(sp)
430: 00002397 auipc t2,0x2
434: c3438393 addi t2,t2,-972 # 2064 <test_6_res>
438: 0000d0b7 lui ra,0xd
43c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
440: fff00313 li t1,-1
444: 07654bb7 lui s7,0x7654
448: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
44c: 01737663 bgeu t1,s7,458 <begin_testcode+0x3d8>
450: 000120b7 lui ra,0x12
454: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
458: 0013a023 sw ra,0(t2)
45c: 0000d0b7 lui ra,0xd
460: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
464: 000012b7 lui t0,0x1
468: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
46c: 00001b37 lui s6,0x1
470: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x284>
474: 0162f663 bgeu t0,s6,480 <begin_testcode+0x400>
478: 000120b7 lui ra,0x12
47c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
480: 0013a223 sw ra,4(t2)
484: 0080006f j 48c <begin_testcode+0x40c>
488: 0200006f j 4a8 <begin_testcode+0x428>
48c: 0000d0b7 lui ra,0xd
490: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
494: 80000237 lui tp,0x80000
498: 00000a93 li s5,0
49c: ff5276e3 bgeu tp,s5,488 <begin_testcode+0x408>
4a0: 000120b7 lui ra,0x12
4a4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4a8: 0013a423 sw ra,8(t2)
4ac: 0000d0b7 lui ra,0xd
4b0: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b4: fffff1b7 lui gp,0xfffff
4b8: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
4bc: 7ff00a13 li s4,2047
4c0: 0141f663 bgeu gp,s4,4cc <begin_testcode+0x44c>
4c4: 000120b7 lui ra,0x12
4c8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4cc: 0013a623 sw ra,12(t2)
4d0: 0000d0b7 lui ra,0xd
4d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4d8: fff00113 li sp,-1
4dc: fff00993 li s3,-1
4e0: 01317663 bgeu sp,s3,4ec <begin_testcode+0x46c>
4e4: 000120b7 lui ra,0x12
4e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4ec: 0013a823 sw ra,16(t2)
4f0: 00002197 auipc gp,0x2
4f4: b8818193 addi gp,gp,-1144 # 2078 <test_7_res>
4f8: 0000d137 lui sp,0xd
4fc: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
500: 80100093 li ra,-2047
504: 00100913 li s2,1
508: 0120f663 bgeu ra,s2,514 <begin_testcode+0x494>
50c: 00012137 lui sp,0x12
510: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
514: 0021a023 sw sp,0(gp)
518: 0000d0b7 lui ra,0xd
51c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
520: 00000013 nop
524: 00000893 li a7,0
528: 01107663 bgeu zero,a7,534 <begin_testcode+0x4b4>
52c: 000120b7 lui ra,0x12
530: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
534: 0011a223 sw ra,4(gp)
538: 00002297 auipc t0,0x2
53c: ac828293 addi t0,t0,-1336 # 2000 <begin_signature>
540: 10000337 lui t1,0x10000
544: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
548: 00532023 sw t0,0(t1)
54c: 00002297 auipc t0,0x2
550: b4428293 addi t0,t0,-1212 # 2090 <end_signature>
554: 10000337 lui t1,0x10000
558: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
55c: 00532023 sw t0,0(t1)
560: 00100293 li t0,1
564: 10000337 lui t1,0x10000
568: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
56c: 00532023 sw t0,0(t1)
570: 00000013 nop
574: 00100193 li gp,1
578: 00000073 ecall
0000057c <end_testcode>:
57c: c0001073 unimp
580: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,480 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BLT-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002117 auipc sp,0x2
84: f8010113 addi sp,sp,-128 # 2000 <begin_signature>
88: 0000d0b7 lui ra,0xd
8c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
90: fff00f93 li t6,-1
94: 00000813 li a6,0
98: 010fc663 blt t6,a6,a4 <begin_testcode+0x24>
9c: 000120b7 lui ra,0x12
a0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
a4: 00112023 sw ra,0(sp)
a8: 0000d0b7 lui ra,0xd
ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
b0: 00100f13 li t5,1
b4: 80100793 li a5,-2047
b8: 00ff4663 blt t5,a5,c4 <begin_testcode+0x44>
bc: 000120b7 lui ra,0x12
c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
c4: 00112223 sw ra,4(sp)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000d0b7 lui ra,0xd
d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
d8: 00000e93 li t4,0
dc: fff00713 li a4,-1
e0: feeec6e3 blt t4,a4,cc <begin_testcode+0x4c>
e4: 000120b7 lui ra,0x12
e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
ec: 00112423 sw ra,8(sp)
f0: 0000d0b7 lui ra,0xd
f4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
f8: 7ff00e13 li t3,2047
fc: fffff6b7 lui a3,0xfffff
100: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
104: 00de4663 blt t3,a3,110 <begin_testcode+0x90>
108: 000120b7 lui ra,0x12
10c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
110: 00112623 sw ra,12(sp)
114: 0000d0b7 lui ra,0xd
118: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
11c: 00000d93 li s11,0
120: 80000637 lui a2,0x80000
124: 00cdc663 blt s11,a2,130 <begin_testcode+0xb0>
128: 000120b7 lui ra,0x12
12c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
130: 00112823 sw ra,16(sp)
134: 00002117 auipc sp,0x2
138: ee010113 addi sp,sp,-288 # 2014 <test_2_res>
13c: 0000d0b7 lui ra,0xd
140: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
144: 00001d37 lui s10,0x1
148: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x284>
14c: 000015b7 lui a1,0x1
150: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
154: 00bd4663 blt s10,a1,160 <begin_testcode+0xe0>
158: 000120b7 lui ra,0x12
15c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
160: 00112023 sw ra,0(sp)
164: 0000d0b7 lui ra,0xd
168: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
16c: 07654cb7 lui s9,0x7654
170: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
174: fff00513 li a0,-1
178: 00acc663 blt s9,a0,184 <begin_testcode+0x104>
17c: 000120b7 lui ra,0x12
180: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
184: 00112223 sw ra,4(sp)
188: 0080006f j 190 <begin_testcode+0x110>
18c: 0240006f j 1b0 <begin_testcode+0x130>
190: 0000d0b7 lui ra,0xd
194: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
198: 80000c37 lui s8,0x80000
19c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
1a0: 00100493 li s1,1
1a4: fe9c44e3 blt s8,s1,18c <begin_testcode+0x10c>
1a8: 000120b7 lui ra,0x12
1ac: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1b0: 00112423 sw ra,8(sp)
1b4: 0000d0b7 lui ra,0xd
1b8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1bc: 00100b93 li s7,1
1c0: 80000437 lui s0,0x80000
1c4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1c8: 008bc663 blt s7,s0,1d4 <begin_testcode+0x154>
1cc: 000120b7 lui ra,0x12
1d0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1d4: 00112623 sw ra,12(sp)
1d8: 0000d0b7 lui ra,0xd
1dc: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1e0: fff00b13 li s6,-1
1e4: 076543b7 lui t2,0x7654
1e8: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
1ec: 007b4663 blt s6,t2,1f8 <begin_testcode+0x178>
1f0: 000120b7 lui ra,0x12
1f4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1f8: 00112823 sw ra,16(sp)
1fc: 00002397 auipc t2,0x2
200: e2c38393 addi t2,t2,-468 # 2028 <test_3_res>
204: 0000d0b7 lui ra,0xd
208: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
20c: 00001ab7 lui s5,0x1
210: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
214: 00001337 lui t1,0x1
218: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x284>
21c: 006ac663 blt s5,t1,228 <begin_testcode+0x1a8>
220: 000120b7 lui ra,0x12
224: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
228: 0013a023 sw ra,0(t2)
22c: 0000d0b7 lui ra,0xd
230: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
234: 80000a37 lui s4,0x80000
238: 00000293 li t0,0
23c: 005a4663 blt s4,t0,248 <begin_testcode+0x1c8>
240: 000120b7 lui ra,0x12
244: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
248: 0013a223 sw ra,4(t2)
24c: 0080006f j 254 <begin_testcode+0x1d4>
250: 0240006f j 274 <begin_testcode+0x1f4>
254: 0000d0b7 lui ra,0xd
258: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
25c: fffff9b7 lui s3,0xfffff
260: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
264: 7ff00213 li tp,2047
268: fe49c4e3 blt s3,tp,250 <begin_testcode+0x1d0>
26c: 000120b7 lui ra,0x12
270: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
274: 0013a423 sw ra,8(t2)
278: 0000d0b7 lui ra,0xd
27c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
280: fff00913 li s2,-1
284: fff00193 li gp,-1
288: 00394663 blt s2,gp,294 <begin_testcode+0x214>
28c: 000120b7 lui ra,0x12
290: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
294: 0013a623 sw ra,12(t2)
298: 0000d0b7 lui ra,0xd
29c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2a0: 80100893 li a7,-2047
2a4: 00100113 li sp,1
2a8: 0028c663 blt a7,sp,2b4 <begin_testcode+0x234>
2ac: 000120b7 lui ra,0x12
2b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2b4: 0013a823 sw ra,16(t2)
2b8: 00002197 auipc gp,0x2
2bc: d8418193 addi gp,gp,-636 # 203c <test_4_res>
2c0: 0000d137 lui sp,0xd
2c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
2c8: 00000813 li a6,0
2cc: 00000093 li ra,0
2d0: 00184663 blt a6,ra,2dc <begin_testcode+0x25c>
2d4: 00012137 lui sp,0x12
2d8: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
2dc: 0021a023 sw sp,0(gp)
2e0: 0000d0b7 lui ra,0xd
2e4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2e8: fff00793 li a5,-1
2ec: 00000013 nop
2f0: 0007c663 bltz a5,2fc <begin_testcode+0x27c>
2f4: 000120b7 lui ra,0x12
2f8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2fc: 0011a223 sw ra,4(gp)
300: 0080006f j 308 <begin_testcode+0x288>
304: 0200006f j 324 <begin_testcode+0x2a4>
308: 0000d0b7 lui ra,0xd
30c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
310: 00100713 li a4,1
314: 80100f93 li t6,-2047
318: fff746e3 blt a4,t6,304 <begin_testcode+0x284>
31c: 000120b7 lui ra,0x12
320: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
324: 0011a423 sw ra,8(gp)
328: 0000d0b7 lui ra,0xd
32c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
330: 00000693 li a3,0
334: fff00f13 li t5,-1
338: 01e6c663 blt a3,t5,344 <begin_testcode+0x2c4>
33c: 000120b7 lui ra,0x12
340: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
344: 0011a623 sw ra,12(gp)
348: 0000d0b7 lui ra,0xd
34c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
350: 7ff00613 li a2,2047
354: fffffeb7 lui t4,0xfffff
358: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
35c: 01d64663 blt a2,t4,368 <begin_testcode+0x2e8>
360: 000120b7 lui ra,0x12
364: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
368: 0011a823 sw ra,16(gp)
36c: 00002117 auipc sp,0x2
370: ce410113 addi sp,sp,-796 # 2050 <test_5_res>
374: 0000d0b7 lui ra,0xd
378: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
37c: 00000593 li a1,0
380: 80000e37 lui t3,0x80000
384: 01c5c663 blt a1,t3,390 <begin_testcode+0x310>
388: 000120b7 lui ra,0x12
38c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
390: 00112023 sw ra,0(sp)
394: 0000d0b7 lui ra,0xd
398: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
39c: 00001537 lui a0,0x1
3a0: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x284>
3a4: 00001db7 lui s11,0x1
3a8: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
3ac: 01b54663 blt a0,s11,3b8 <begin_testcode+0x338>
3b0: 000120b7 lui ra,0x12
3b4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3b8: 00112223 sw ra,4(sp)
3bc: 0080006f j 3c4 <begin_testcode+0x344>
3c0: 0240006f j 3e4 <begin_testcode+0x364>
3c4: 0000d0b7 lui ra,0xd
3c8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3cc: 076544b7 lui s1,0x7654
3d0: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
3d4: fff00d13 li s10,-1
3d8: ffa4c4e3 blt s1,s10,3c0 <begin_testcode+0x340>
3dc: 000120b7 lui ra,0x12
3e0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3e4: 00112423 sw ra,8(sp)
3e8: 0000d0b7 lui ra,0xd
3ec: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3f0: 80000437 lui s0,0x80000
3f4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
3f8: 00100c93 li s9,1
3fc: 01944663 blt s0,s9,408 <begin_testcode+0x388>
400: 000120b7 lui ra,0x12
404: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
408: 00112623 sw ra,12(sp)
40c: 0000d0b7 lui ra,0xd
410: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
414: 00100393 li t2,1
418: 80000c37 lui s8,0x80000
41c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
420: 0183c663 blt t2,s8,42c <begin_testcode+0x3ac>
424: 000120b7 lui ra,0x12
428: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
42c: 00112823 sw ra,16(sp)
430: 00002397 auipc t2,0x2
434: c3438393 addi t2,t2,-972 # 2064 <test_6_res>
438: 0000d0b7 lui ra,0xd
43c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
440: fff00313 li t1,-1
444: 07654bb7 lui s7,0x7654
448: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
44c: 01734663 blt t1,s7,458 <begin_testcode+0x3d8>
450: 000120b7 lui ra,0x12
454: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
458: 0013a023 sw ra,0(t2)
45c: 0000d0b7 lui ra,0xd
460: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
464: 000012b7 lui t0,0x1
468: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
46c: 00001b37 lui s6,0x1
470: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x284>
474: 0162c663 blt t0,s6,480 <begin_testcode+0x400>
478: 000120b7 lui ra,0x12
47c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
480: 0013a223 sw ra,4(t2)
484: 0080006f j 48c <begin_testcode+0x40c>
488: 0200006f j 4a8 <begin_testcode+0x428>
48c: 0000d0b7 lui ra,0xd
490: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
494: 80000237 lui tp,0x80000
498: 00000a93 li s5,0
49c: ff5246e3 blt tp,s5,488 <begin_testcode+0x408>
4a0: 000120b7 lui ra,0x12
4a4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4a8: 0013a423 sw ra,8(t2)
4ac: 0000d0b7 lui ra,0xd
4b0: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b4: fffff1b7 lui gp,0xfffff
4b8: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
4bc: 7ff00a13 li s4,2047
4c0: 0141c663 blt gp,s4,4cc <begin_testcode+0x44c>
4c4: 000120b7 lui ra,0x12
4c8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4cc: 0013a623 sw ra,12(t2)
4d0: 0000d0b7 lui ra,0xd
4d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4d8: fff00113 li sp,-1
4dc: fff00993 li s3,-1
4e0: 01314663 blt sp,s3,4ec <begin_testcode+0x46c>
4e4: 000120b7 lui ra,0x12
4e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4ec: 0013a823 sw ra,16(t2)
4f0: 00002197 auipc gp,0x2
4f4: b8818193 addi gp,gp,-1144 # 2078 <test_7_res>
4f8: 0000d137 lui sp,0xd
4fc: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
500: 80100093 li ra,-2047
504: 00100913 li s2,1
508: 0120c663 blt ra,s2,514 <begin_testcode+0x494>
50c: 00012137 lui sp,0x12
510: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
514: 0021a023 sw sp,0(gp)
518: 0000d0b7 lui ra,0xd
51c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
520: 00000013 nop
524: 00000893 li a7,0
528: 01104663 bgtz a7,534 <begin_testcode+0x4b4>
52c: 000120b7 lui ra,0x12
530: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
534: 0011a223 sw ra,4(gp)
538: 00002297 auipc t0,0x2
53c: ac828293 addi t0,t0,-1336 # 2000 <begin_signature>
540: 10000337 lui t1,0x10000
544: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
548: 00532023 sw t0,0(t1)
54c: 00002297 auipc t0,0x2
550: b4428293 addi t0,t0,-1212 # 2090 <end_signature>
554: 10000337 lui t1,0x10000
558: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
55c: 00532023 sw t0,0(t1)
560: 00100293 li t0,1
564: 10000337 lui t1,0x10000
568: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
56c: 00532023 sw t0,0(t1)
570: 00000013 nop
574: 00100193 li gp,1
578: 00000073 ecall
0000057c <end_testcode>:
57c: c0001073 unimp
580: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,480 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BLTU-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002117 auipc sp,0x2
84: f8010113 addi sp,sp,-128 # 2000 <begin_signature>
88: 0000d0b7 lui ra,0xd
8c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
90: fff00f93 li t6,-1
94: 00000813 li a6,0
98: 010fe663 bltu t6,a6,a4 <begin_testcode+0x24>
9c: 000120b7 lui ra,0x12
a0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
a4: 00112023 sw ra,0(sp)
a8: 0000d0b7 lui ra,0xd
ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
b0: 00100f13 li t5,1
b4: 80100793 li a5,-2047
b8: 00ff6663 bltu t5,a5,c4 <begin_testcode+0x44>
bc: 000120b7 lui ra,0x12
c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
c4: 00112223 sw ra,4(sp)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000d0b7 lui ra,0xd
d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
d8: 00000e93 li t4,0
dc: fff00713 li a4,-1
e0: feeee6e3 bltu t4,a4,cc <begin_testcode+0x4c>
e4: 000120b7 lui ra,0x12
e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
ec: 00112423 sw ra,8(sp)
f0: 0000d0b7 lui ra,0xd
f4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
f8: 7ff00e13 li t3,2047
fc: fffff6b7 lui a3,0xfffff
100: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
104: 00de6663 bltu t3,a3,110 <begin_testcode+0x90>
108: 000120b7 lui ra,0x12
10c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
110: 00112623 sw ra,12(sp)
114: 0000d0b7 lui ra,0xd
118: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
11c: 00000d93 li s11,0
120: 80000637 lui a2,0x80000
124: 00cde663 bltu s11,a2,130 <begin_testcode+0xb0>
128: 000120b7 lui ra,0x12
12c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
130: 00112823 sw ra,16(sp)
134: 00002117 auipc sp,0x2
138: ee010113 addi sp,sp,-288 # 2014 <test_2_res>
13c: 0000d0b7 lui ra,0xd
140: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
144: 00001d37 lui s10,0x1
148: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x284>
14c: 000015b7 lui a1,0x1
150: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
154: 00bd6663 bltu s10,a1,160 <begin_testcode+0xe0>
158: 000120b7 lui ra,0x12
15c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
160: 00112023 sw ra,0(sp)
164: 0000d0b7 lui ra,0xd
168: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
16c: 07654cb7 lui s9,0x7654
170: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
174: fff00513 li a0,-1
178: 00ace663 bltu s9,a0,184 <begin_testcode+0x104>
17c: 000120b7 lui ra,0x12
180: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
184: 00112223 sw ra,4(sp)
188: 0080006f j 190 <begin_testcode+0x110>
18c: 0240006f j 1b0 <begin_testcode+0x130>
190: 0000d0b7 lui ra,0xd
194: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
198: 80000c37 lui s8,0x80000
19c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
1a0: 00100493 li s1,1
1a4: fe9c64e3 bltu s8,s1,18c <begin_testcode+0x10c>
1a8: 000120b7 lui ra,0x12
1ac: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1b0: 00112423 sw ra,8(sp)
1b4: 0000d0b7 lui ra,0xd
1b8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1bc: 00100b93 li s7,1
1c0: 80000437 lui s0,0x80000
1c4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1c8: 008be663 bltu s7,s0,1d4 <begin_testcode+0x154>
1cc: 000120b7 lui ra,0x12
1d0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1d4: 00112623 sw ra,12(sp)
1d8: 0000d0b7 lui ra,0xd
1dc: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1e0: fff00b13 li s6,-1
1e4: 076543b7 lui t2,0x7654
1e8: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
1ec: 007b6663 bltu s6,t2,1f8 <begin_testcode+0x178>
1f0: 000120b7 lui ra,0x12
1f4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1f8: 00112823 sw ra,16(sp)
1fc: 00002397 auipc t2,0x2
200: e2c38393 addi t2,t2,-468 # 2028 <test_3_res>
204: 0000d0b7 lui ra,0xd
208: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
20c: 00001ab7 lui s5,0x1
210: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
214: 00001337 lui t1,0x1
218: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x284>
21c: 006ae663 bltu s5,t1,228 <begin_testcode+0x1a8>
220: 000120b7 lui ra,0x12
224: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
228: 0013a023 sw ra,0(t2)
22c: 0000d0b7 lui ra,0xd
230: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
234: 80000a37 lui s4,0x80000
238: 00000293 li t0,0
23c: 005a6663 bltu s4,t0,248 <begin_testcode+0x1c8>
240: 000120b7 lui ra,0x12
244: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
248: 0013a223 sw ra,4(t2)
24c: 0080006f j 254 <begin_testcode+0x1d4>
250: 0240006f j 274 <begin_testcode+0x1f4>
254: 0000d0b7 lui ra,0xd
258: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
25c: fffff9b7 lui s3,0xfffff
260: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
264: 7ff00213 li tp,2047
268: fe49e4e3 bltu s3,tp,250 <begin_testcode+0x1d0>
26c: 000120b7 lui ra,0x12
270: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
274: 0013a423 sw ra,8(t2)
278: 0000d0b7 lui ra,0xd
27c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
280: fff00913 li s2,-1
284: fff00193 li gp,-1
288: 00396663 bltu s2,gp,294 <begin_testcode+0x214>
28c: 000120b7 lui ra,0x12
290: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
294: 0013a623 sw ra,12(t2)
298: 0000d0b7 lui ra,0xd
29c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2a0: 80100893 li a7,-2047
2a4: 00100113 li sp,1
2a8: 0028e663 bltu a7,sp,2b4 <begin_testcode+0x234>
2ac: 000120b7 lui ra,0x12
2b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2b4: 0013a823 sw ra,16(t2)
2b8: 00002197 auipc gp,0x2
2bc: d8418193 addi gp,gp,-636 # 203c <test_4_res>
2c0: 0000d137 lui sp,0xd
2c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
2c8: 00000813 li a6,0
2cc: 00000093 li ra,0
2d0: 00186663 bltu a6,ra,2dc <begin_testcode+0x25c>
2d4: 00012137 lui sp,0x12
2d8: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
2dc: 0021a023 sw sp,0(gp)
2e0: 0000d0b7 lui ra,0xd
2e4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2e8: fff00793 li a5,-1
2ec: 00000013 nop
2f0: 0007e663 bltu a5,zero,2fc <begin_testcode+0x27c>
2f4: 000120b7 lui ra,0x12
2f8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2fc: 0011a223 sw ra,4(gp)
300: 0080006f j 308 <begin_testcode+0x288>
304: 0200006f j 324 <begin_testcode+0x2a4>
308: 0000d0b7 lui ra,0xd
30c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
310: 00100713 li a4,1
314: 80100f93 li t6,-2047
318: fff766e3 bltu a4,t6,304 <begin_testcode+0x284>
31c: 000120b7 lui ra,0x12
320: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
324: 0011a423 sw ra,8(gp)
328: 0000d0b7 lui ra,0xd
32c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
330: 00000693 li a3,0
334: fff00f13 li t5,-1
338: 01e6e663 bltu a3,t5,344 <begin_testcode+0x2c4>
33c: 000120b7 lui ra,0x12
340: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
344: 0011a623 sw ra,12(gp)
348: 0000d0b7 lui ra,0xd
34c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
350: 7ff00613 li a2,2047
354: fffffeb7 lui t4,0xfffff
358: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
35c: 01d66663 bltu a2,t4,368 <begin_testcode+0x2e8>
360: 000120b7 lui ra,0x12
364: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
368: 0011a823 sw ra,16(gp)
36c: 00002117 auipc sp,0x2
370: ce410113 addi sp,sp,-796 # 2050 <test_5_res>
374: 0000d0b7 lui ra,0xd
378: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
37c: 00000593 li a1,0
380: 80000e37 lui t3,0x80000
384: 01c5e663 bltu a1,t3,390 <begin_testcode+0x310>
388: 000120b7 lui ra,0x12
38c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
390: 00112023 sw ra,0(sp)
394: 0000d0b7 lui ra,0xd
398: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
39c: 00001537 lui a0,0x1
3a0: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x284>
3a4: 00001db7 lui s11,0x1
3a8: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
3ac: 01b56663 bltu a0,s11,3b8 <begin_testcode+0x338>
3b0: 000120b7 lui ra,0x12
3b4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3b8: 00112223 sw ra,4(sp)
3bc: 0080006f j 3c4 <begin_testcode+0x344>
3c0: 0240006f j 3e4 <begin_testcode+0x364>
3c4: 0000d0b7 lui ra,0xd
3c8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3cc: 076544b7 lui s1,0x7654
3d0: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
3d4: fff00d13 li s10,-1
3d8: ffa4e4e3 bltu s1,s10,3c0 <begin_testcode+0x340>
3dc: 000120b7 lui ra,0x12
3e0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3e4: 00112423 sw ra,8(sp)
3e8: 0000d0b7 lui ra,0xd
3ec: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3f0: 80000437 lui s0,0x80000
3f4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
3f8: 00100c93 li s9,1
3fc: 01946663 bltu s0,s9,408 <begin_testcode+0x388>
400: 000120b7 lui ra,0x12
404: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
408: 00112623 sw ra,12(sp)
40c: 0000d0b7 lui ra,0xd
410: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
414: 00100393 li t2,1
418: 80000c37 lui s8,0x80000
41c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
420: 0183e663 bltu t2,s8,42c <begin_testcode+0x3ac>
424: 000120b7 lui ra,0x12
428: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
42c: 00112823 sw ra,16(sp)
430: 00002397 auipc t2,0x2
434: c3438393 addi t2,t2,-972 # 2064 <test_6_res>
438: 0000d0b7 lui ra,0xd
43c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
440: fff00313 li t1,-1
444: 07654bb7 lui s7,0x7654
448: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
44c: 01736663 bltu t1,s7,458 <begin_testcode+0x3d8>
450: 000120b7 lui ra,0x12
454: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
458: 0013a023 sw ra,0(t2)
45c: 0000d0b7 lui ra,0xd
460: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
464: 000012b7 lui t0,0x1
468: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
46c: 00001b37 lui s6,0x1
470: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x284>
474: 0162e663 bltu t0,s6,480 <begin_testcode+0x400>
478: 000120b7 lui ra,0x12
47c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
480: 0013a223 sw ra,4(t2)
484: 0080006f j 48c <begin_testcode+0x40c>
488: 0200006f j 4a8 <begin_testcode+0x428>
48c: 0000d0b7 lui ra,0xd
490: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
494: 80000237 lui tp,0x80000
498: 00000a93 li s5,0
49c: ff5266e3 bltu tp,s5,488 <begin_testcode+0x408>
4a0: 000120b7 lui ra,0x12
4a4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4a8: 0013a423 sw ra,8(t2)
4ac: 0000d0b7 lui ra,0xd
4b0: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b4: fffff1b7 lui gp,0xfffff
4b8: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
4bc: 7ff00a13 li s4,2047
4c0: 0141e663 bltu gp,s4,4cc <begin_testcode+0x44c>
4c4: 000120b7 lui ra,0x12
4c8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4cc: 0013a623 sw ra,12(t2)
4d0: 0000d0b7 lui ra,0xd
4d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4d8: fff00113 li sp,-1
4dc: fff00993 li s3,-1
4e0: 01316663 bltu sp,s3,4ec <begin_testcode+0x46c>
4e4: 000120b7 lui ra,0x12
4e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4ec: 0013a823 sw ra,16(t2)
4f0: 00002197 auipc gp,0x2
4f4: b8818193 addi gp,gp,-1144 # 2078 <test_7_res>
4f8: 0000d137 lui sp,0xd
4fc: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
500: 80100093 li ra,-2047
504: 00100913 li s2,1
508: 0120e663 bltu ra,s2,514 <begin_testcode+0x494>
50c: 00012137 lui sp,0x12
510: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
514: 0021a023 sw sp,0(gp)
518: 0000d0b7 lui ra,0xd
51c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
520: 00000013 nop
524: 00000893 li a7,0
528: 01106663 bltu zero,a7,534 <begin_testcode+0x4b4>
52c: 000120b7 lui ra,0x12
530: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
534: 0011a223 sw ra,4(gp)
538: 00002297 auipc t0,0x2
53c: ac828293 addi t0,t0,-1336 # 2000 <begin_signature>
540: 10000337 lui t1,0x10000
544: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
548: 00532023 sw t0,0(t1)
54c: 00002297 auipc t0,0x2
550: b4428293 addi t0,t0,-1212 # 2090 <end_signature>
554: 10000337 lui t1,0x10000
558: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
55c: 00532023 sw t0,0(t1)
560: 00100293 li t0,1
564: 10000337 lui t1,0x10000
568: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
56c: 00532023 sw t0,0(t1)
570: 00000013 nop
574: 00100193 li gp,1
578: 00000073 ecall
0000057c <end_testcode>:
57c: c0001073 unimp
580: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,480 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BNE-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002117 auipc sp,0x2
84: f8010113 addi sp,sp,-128 # 2000 <begin_signature>
88: 0000d0b7 lui ra,0xd
8c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
90: fff00f93 li t6,-1
94: 00000813 li a6,0
98: 010f9663 bne t6,a6,a4 <begin_testcode+0x24>
9c: 000120b7 lui ra,0x12
a0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
a4: 00112023 sw ra,0(sp)
a8: 0000d0b7 lui ra,0xd
ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
b0: 00100f13 li t5,1
b4: 80100793 li a5,-2047
b8: 00ff1663 bne t5,a5,c4 <begin_testcode+0x44>
bc: 000120b7 lui ra,0x12
c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
c4: 00112223 sw ra,4(sp)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000d0b7 lui ra,0xd
d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
d8: 00000e93 li t4,0
dc: fff00713 li a4,-1
e0: feee96e3 bne t4,a4,cc <begin_testcode+0x4c>
e4: 000120b7 lui ra,0x12
e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
ec: 00112423 sw ra,8(sp)
f0: 0000d0b7 lui ra,0xd
f4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
f8: 7ff00e13 li t3,2047
fc: fffff6b7 lui a3,0xfffff
100: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
104: 00de1663 bne t3,a3,110 <begin_testcode+0x90>
108: 000120b7 lui ra,0x12
10c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
110: 00112623 sw ra,12(sp)
114: 0000d0b7 lui ra,0xd
118: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
11c: 00000d93 li s11,0
120: 80000637 lui a2,0x80000
124: 00cd9663 bne s11,a2,130 <begin_testcode+0xb0>
128: 000120b7 lui ra,0x12
12c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
130: 00112823 sw ra,16(sp)
134: 00002117 auipc sp,0x2
138: ee010113 addi sp,sp,-288 # 2014 <test_2_res>
13c: 0000d0b7 lui ra,0xd
140: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
144: 00001d37 lui s10,0x1
148: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x284>
14c: 000015b7 lui a1,0x1
150: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
154: 00bd1663 bne s10,a1,160 <begin_testcode+0xe0>
158: 000120b7 lui ra,0x12
15c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
160: 00112023 sw ra,0(sp)
164: 0000d0b7 lui ra,0xd
168: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
16c: 07654cb7 lui s9,0x7654
170: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
174: fff00513 li a0,-1
178: 00ac9663 bne s9,a0,184 <begin_testcode+0x104>
17c: 000120b7 lui ra,0x12
180: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
184: 00112223 sw ra,4(sp)
188: 0080006f j 190 <begin_testcode+0x110>
18c: 0240006f j 1b0 <begin_testcode+0x130>
190: 0000d0b7 lui ra,0xd
194: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
198: 80000c37 lui s8,0x80000
19c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
1a0: 00100493 li s1,1
1a4: fe9c14e3 bne s8,s1,18c <begin_testcode+0x10c>
1a8: 000120b7 lui ra,0x12
1ac: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1b0: 00112423 sw ra,8(sp)
1b4: 0000d0b7 lui ra,0xd
1b8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1bc: 00100b93 li s7,1
1c0: 80000437 lui s0,0x80000
1c4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1c8: 008b9663 bne s7,s0,1d4 <begin_testcode+0x154>
1cc: 000120b7 lui ra,0x12
1d0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1d4: 00112623 sw ra,12(sp)
1d8: 0000d0b7 lui ra,0xd
1dc: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
1e0: fff00b13 li s6,-1
1e4: 076543b7 lui t2,0x7654
1e8: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
1ec: 007b1663 bne s6,t2,1f8 <begin_testcode+0x178>
1f0: 000120b7 lui ra,0x12
1f4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
1f8: 00112823 sw ra,16(sp)
1fc: 00002397 auipc t2,0x2
200: e2c38393 addi t2,t2,-468 # 2028 <test_3_res>
204: 0000d0b7 lui ra,0xd
208: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
20c: 00001ab7 lui s5,0x1
210: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
214: 00001337 lui t1,0x1
218: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x284>
21c: 006a9663 bne s5,t1,228 <begin_testcode+0x1a8>
220: 000120b7 lui ra,0x12
224: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
228: 0013a023 sw ra,0(t2)
22c: 0000d0b7 lui ra,0xd
230: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
234: 80000a37 lui s4,0x80000
238: 00000293 li t0,0
23c: 005a1663 bne s4,t0,248 <begin_testcode+0x1c8>
240: 000120b7 lui ra,0x12
244: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
248: 0013a223 sw ra,4(t2)
24c: 0080006f j 254 <begin_testcode+0x1d4>
250: 0240006f j 274 <begin_testcode+0x1f4>
254: 0000d0b7 lui ra,0xd
258: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
25c: fffff9b7 lui s3,0xfffff
260: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
264: 7ff00213 li tp,2047
268: fe4994e3 bne s3,tp,250 <begin_testcode+0x1d0>
26c: 000120b7 lui ra,0x12
270: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
274: 0013a423 sw ra,8(t2)
278: 0000d0b7 lui ra,0xd
27c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
280: fff00913 li s2,-1
284: fff00193 li gp,-1
288: 00391663 bne s2,gp,294 <begin_testcode+0x214>
28c: 000120b7 lui ra,0x12
290: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
294: 0013a623 sw ra,12(t2)
298: 0000d0b7 lui ra,0xd
29c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2a0: 80100893 li a7,-2047
2a4: 00100113 li sp,1
2a8: 00289663 bne a7,sp,2b4 <begin_testcode+0x234>
2ac: 000120b7 lui ra,0x12
2b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2b4: 0013a823 sw ra,16(t2)
2b8: 00002197 auipc gp,0x2
2bc: d8418193 addi gp,gp,-636 # 203c <test_4_res>
2c0: 0000d137 lui sp,0xd
2c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
2c8: 00000813 li a6,0
2cc: 00000093 li ra,0
2d0: 00181663 bne a6,ra,2dc <begin_testcode+0x25c>
2d4: 00012137 lui sp,0x12
2d8: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
2dc: 0021a023 sw sp,0(gp)
2e0: 0000d0b7 lui ra,0xd
2e4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
2e8: fff00793 li a5,-1
2ec: 00000013 nop
2f0: 00079663 bnez a5,2fc <begin_testcode+0x27c>
2f4: 000120b7 lui ra,0x12
2f8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
2fc: 0011a223 sw ra,4(gp)
300: 0080006f j 308 <begin_testcode+0x288>
304: 0200006f j 324 <begin_testcode+0x2a4>
308: 0000d0b7 lui ra,0xd
30c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
310: 00100713 li a4,1
314: 80100f93 li t6,-2047
318: fff716e3 bne a4,t6,304 <begin_testcode+0x284>
31c: 000120b7 lui ra,0x12
320: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
324: 0011a423 sw ra,8(gp)
328: 0000d0b7 lui ra,0xd
32c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
330: 00000693 li a3,0
334: fff00f13 li t5,-1
338: 01e69663 bne a3,t5,344 <begin_testcode+0x2c4>
33c: 000120b7 lui ra,0x12
340: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
344: 0011a623 sw ra,12(gp)
348: 0000d0b7 lui ra,0xd
34c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
350: 7ff00613 li a2,2047
354: fffffeb7 lui t4,0xfffff
358: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
35c: 01d61663 bne a2,t4,368 <begin_testcode+0x2e8>
360: 000120b7 lui ra,0x12
364: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
368: 0011a823 sw ra,16(gp)
36c: 00002117 auipc sp,0x2
370: ce410113 addi sp,sp,-796 # 2050 <test_5_res>
374: 0000d0b7 lui ra,0xd
378: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
37c: 00000593 li a1,0
380: 80000e37 lui t3,0x80000
384: 01c59663 bne a1,t3,390 <begin_testcode+0x310>
388: 000120b7 lui ra,0x12
38c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
390: 00112023 sw ra,0(sp)
394: 0000d0b7 lui ra,0xd
398: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
39c: 00001537 lui a0,0x1
3a0: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x284>
3a4: 00001db7 lui s11,0x1
3a8: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
3ac: 01b51663 bne a0,s11,3b8 <begin_testcode+0x338>
3b0: 000120b7 lui ra,0x12
3b4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3b8: 00112223 sw ra,4(sp)
3bc: 0080006f j 3c4 <begin_testcode+0x344>
3c0: 0240006f j 3e4 <begin_testcode+0x364>
3c4: 0000d0b7 lui ra,0xd
3c8: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3cc: 076544b7 lui s1,0x7654
3d0: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
3d4: fff00d13 li s10,-1
3d8: ffa494e3 bne s1,s10,3c0 <begin_testcode+0x340>
3dc: 000120b7 lui ra,0x12
3e0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
3e4: 00112423 sw ra,8(sp)
3e8: 0000d0b7 lui ra,0xd
3ec: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
3f0: 80000437 lui s0,0x80000
3f4: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
3f8: 00100c93 li s9,1
3fc: 01941663 bne s0,s9,408 <begin_testcode+0x388>
400: 000120b7 lui ra,0x12
404: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
408: 00112623 sw ra,12(sp)
40c: 0000d0b7 lui ra,0xd
410: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
414: 00100393 li t2,1
418: 80000c37 lui s8,0x80000
41c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
420: 01839663 bne t2,s8,42c <begin_testcode+0x3ac>
424: 000120b7 lui ra,0x12
428: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
42c: 00112823 sw ra,16(sp)
430: 00002397 auipc t2,0x2
434: c3438393 addi t2,t2,-972 # 2064 <test_6_res>
438: 0000d0b7 lui ra,0xd
43c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
440: fff00313 li t1,-1
444: 07654bb7 lui s7,0x7654
448: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
44c: 01731663 bne t1,s7,458 <begin_testcode+0x3d8>
450: 000120b7 lui ra,0x12
454: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
458: 0013a023 sw ra,0(t2)
45c: 0000d0b7 lui ra,0xd
460: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
464: 000012b7 lui t0,0x1
468: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
46c: 00001b37 lui s6,0x1
470: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x284>
474: 01629663 bne t0,s6,480 <begin_testcode+0x400>
478: 000120b7 lui ra,0x12
47c: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
480: 0013a223 sw ra,4(t2)
484: 0080006f j 48c <begin_testcode+0x40c>
488: 0200006f j 4a8 <begin_testcode+0x428>
48c: 0000d0b7 lui ra,0xd
490: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
494: 80000237 lui tp,0x80000
498: 00000a93 li s5,0
49c: ff5216e3 bne tp,s5,488 <begin_testcode+0x408>
4a0: 000120b7 lui ra,0x12
4a4: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4a8: 0013a423 sw ra,8(t2)
4ac: 0000d0b7 lui ra,0xd
4b0: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b4: fffff1b7 lui gp,0xfffff
4b8: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
4bc: 7ff00a13 li s4,2047
4c0: 01419663 bne gp,s4,4cc <begin_testcode+0x44c>
4c4: 000120b7 lui ra,0x12
4c8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4cc: 0013a623 sw ra,12(t2)
4d0: 0000d0b7 lui ra,0xd
4d4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4d8: fff00113 li sp,-1
4dc: fff00993 li s3,-1
4e0: 01311663 bne sp,s3,4ec <begin_testcode+0x46c>
4e4: 000120b7 lui ra,0x12
4e8: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4ec: 0013a823 sw ra,16(t2)
4f0: 00002197 auipc gp,0x2
4f4: b8818193 addi gp,gp,-1144 # 2078 <test_7_res>
4f8: 0000d137 lui sp,0xd
4fc: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
500: 80100093 li ra,-2047
504: 00100913 li s2,1
508: 01209663 bne ra,s2,514 <begin_testcode+0x494>
50c: 00012137 lui sp,0x12
510: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
514: 0021a023 sw sp,0(gp)
518: 0000d0b7 lui ra,0xd
51c: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
520: 00000013 nop
524: 00000893 li a7,0
528: 01101663 bne zero,a7,534 <begin_testcode+0x4b4>
52c: 000120b7 lui ra,0x12
530: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
534: 0011a223 sw ra,4(gp)
538: 00002297 auipc t0,0x2
53c: ac828293 addi t0,t0,-1336 # 2000 <begin_signature>
540: 10000337 lui t1,0x10000
544: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
548: 00532023 sw t0,0(t1)
54c: 00002297 auipc t0,0x2
550: b4428293 addi t0,t0,-1212 # 2090 <end_signature>
554: 10000337 lui t1,0x10000
558: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
55c: 00532023 sw t0,0(t1)
560: 00100293 li t0,1
564: 10000337 lui t1,0x10000
568: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
56c: 00532023 sw t0,0(t1)
570: 00000013 nop
574: 00100193 li gp,1
578: 00000073 ecall
0000057c <end_testcode>:
57c: c0001073 unimp
580: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,193 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-DELAY_SLOTS-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002097 auipc ra,0x2
84: f8008093 addi ra,ra,-128 # 2000 <begin_signature>
88: 11111137 lui sp,0x11111
8c: 11110113 addi sp,sp,273 # 11111111 <_end+0x1110ef0d>
90: 0080006f j 98 <begin_testcode+0x18>
94: 00000113 li sp,0
98: 0020a023 sw sp,0(ra)
9c: 00002097 auipc ra,0x2
a0: f6808093 addi ra,ra,-152 # 2004 <test_A2_res>
a4: 22222137 lui sp,0x22222
a8: 22210113 addi sp,sp,546 # 22222222 <_end+0x2222001e>
ac: 00000217 auipc tp,0x0
b0: 01020213 addi tp,tp,16 # bc <begin_testcode+0x3c>
b4: 00020067 jr tp # 0 <_start>
b8: 00000113 li sp,0
bc: 0020a023 sw sp,0(ra)
c0: 00002097 auipc ra,0x2
c4: f4808093 addi ra,ra,-184 # 2008 <test_B1_res>
c8: 00500293 li t0,5
cc: 00600313 li t1,6
d0: 33333137 lui sp,0x33333
d4: 33310113 addi sp,sp,819 # 33333333 <_end+0x3333112f>
d8: 00528463 beq t0,t0,e0 <begin_testcode+0x60>
dc: 00000113 li sp,0
e0: 0020a023 sw sp,0(ra)
e4: 00002097 auipc ra,0x2
e8: f2808093 addi ra,ra,-216 # 200c <test_B2_res>
ec: 00500293 li t0,5
f0: 00600313 li t1,6
f4: 44444137 lui sp,0x44444
f8: 44410113 addi sp,sp,1092 # 44444444 <_end+0x44442240>
fc: 00629463 bne t0,t1,104 <begin_testcode+0x84>
100: 00000113 li sp,0
104: 0020a023 sw sp,0(ra)
108: 00002097 auipc ra,0x2
10c: f0808093 addi ra,ra,-248 # 2010 <test_B3_res>
110: 00500293 li t0,5
114: 00600313 li t1,6
118: 55555137 lui sp,0x55555
11c: 55510113 addi sp,sp,1365 # 55555555 <_end+0x55553351>
120: 0062c463 blt t0,t1,128 <begin_testcode+0xa8>
124: 00000113 li sp,0
128: 0020a023 sw sp,0(ra)
12c: 00002097 auipc ra,0x2
130: ee808093 addi ra,ra,-280 # 2014 <test_B4_res>
134: 00500293 li t0,5
138: 00600313 li t1,6
13c: 66666137 lui sp,0x66666
140: 66610113 addi sp,sp,1638 # 66666666 <_end+0x66664462>
144: 0062e463 bltu t0,t1,14c <begin_testcode+0xcc>
148: 00000113 li sp,0
14c: 0020a023 sw sp,0(ra)
150: 00002097 auipc ra,0x2
154: ec808093 addi ra,ra,-312 # 2018 <test_B5_res>
158: 00500293 li t0,5
15c: 00600313 li t1,6
160: 77777137 lui sp,0x77777
164: 77710113 addi sp,sp,1911 # 77777777 <_end+0x77775573>
168: 00535463 bge t1,t0,170 <begin_testcode+0xf0>
16c: 00000113 li sp,0
170: 0020a023 sw sp,0(ra)
174: 00002097 auipc ra,0x2
178: ea808093 addi ra,ra,-344 # 201c <test_B6_res>
17c: 00500293 li t0,5
180: 00600313 li t1,6
184: 88889137 lui sp,0x88889
188: 88810113 addi sp,sp,-1912 # 88888888 <_end+0x88886684>
18c: 00537463 bgeu t1,t0,194 <begin_testcode+0x114>
190: 00000113 li sp,0
194: 0020a023 sw sp,0(ra)
198: 00002297 auipc t0,0x2
19c: e6828293 addi t0,t0,-408 # 2000 <begin_signature>
1a0: 10000337 lui t1,0x10000
1a4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
1a8: 00532023 sw t0,0(t1)
1ac: 00002297 auipc t0,0x2
1b0: e7428293 addi t0,t0,-396 # 2020 <end_signature>
1b4: 10000337 lui t1,0x10000
1b8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
1bc: 00532023 sw t0,0(t1)
1c0: 00100293 li t0,1
1c4: 10000337 lui t1,0x10000
1c8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
1cc: 00532023 sw t0,0(t1)
1d0: 00000013 nop
1d4: 00100193 li gp,1
1d8: 00000073 ecall
000001dc <end_testcode>:
1dc: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
00002004 <test_A2_res>:
2004: ffff 0xffff
2006: ffff 0xffff
00002008 <test_B1_res>:
2008: ffff 0xffff
200a: ffff 0xffff
0000200c <test_B2_res>:
200c: ffff 0xffff
200e: ffff 0xffff
00002010 <test_B3_res>:
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_B4_res>:
2014: ffff 0xffff
2016: ffff 0xffff
00002018 <test_B5_res>:
2018: ffff 0xffff
201a: ffff 0xffff
0000201c <test_B6_res>:
201c: ffff 0xffff
201e: ffff 0xffff
00002020 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,125 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-EBREAK-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00000097 auipc ra,0x0
84: 02c08093 addi ra,ra,44 # ac <_trap_handler>
88: 30509ff3 csrrw t6,mtvec,ra
8c: 00002097 auipc ra,0x2
90: f7408093 addi ra,ra,-140 # 2000 <begin_signature>
94: 11111137 lui sp,0x11111
98: 11110113 addi sp,sp,273 # 11111111 <_end+0x1110ef0d>
9c: 00100073 ebreak
a0: 0000a023 sw zero,0(ra)
a4: 305f9073 csrw mtvec,t6
a8: 0280006f j d0 <test_end>
000000ac <_trap_handler>:
ac: 34102f73 csrr t5,mepc
b0: 004f0f13 addi t5,t5,4
b4: 341f1073 csrw mepc,t5
b8: 34202f73 csrr t5,mcause
bc: 01e0a023 sw t5,0(ra)
c0: 0020a223 sw sp,4(ra)
c4: 0000a423 sw zero,8(ra)
c8: 00c08093 addi ra,ra,12
cc: 30200073 mret
000000d0 <test_end>:
d0: 00002297 auipc t0,0x2
d4: f3028293 addi t0,t0,-208 # 2000 <begin_signature>
d8: 10000337 lui t1,0x10000
dc: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
e0: 00532023 sw t0,0(t1)
e4: 00002297 auipc t0,0x2
e8: f2c28293 addi t0,t0,-212 # 2010 <end_signature>
ec: 10000337 lui t1,0x10000
f0: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
f4: 00532023 sw t0,0(t1)
f8: 00100293 li t0,1
fc: 10000337 lui t1,0x10000
100: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
104: 00532023 sw t0,0(t1)
108: 00000013 nop
10c: 00100193 li gp,1
110: 00000073 ecall
00000114 <end_testcode>:
114: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
00002010 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,125 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ECALL-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00000097 auipc ra,0x0
84: 02c08093 addi ra,ra,44 # ac <_trap_handler>
88: 30509ff3 csrrw t6,mtvec,ra
8c: 00002097 auipc ra,0x2
90: f7408093 addi ra,ra,-140 # 2000 <begin_signature>
94: 11111137 lui sp,0x11111
98: 11110113 addi sp,sp,273 # 11111111 <_end+0x1110ef0d>
9c: 00000073 ecall
a0: 0000a023 sw zero,0(ra)
a4: 305f9073 csrw mtvec,t6
a8: 0280006f j d0 <test_end>
000000ac <_trap_handler>:
ac: 34102f73 csrr t5,mepc
b0: 004f0f13 addi t5,t5,4
b4: 341f1073 csrw mepc,t5
b8: 34202f73 csrr t5,mcause
bc: 01e0a023 sw t5,0(ra)
c0: 0020a223 sw sp,4(ra)
c4: 0000a423 sw zero,8(ra)
c8: 00c08093 addi ra,ra,12
cc: 30200073 mret
000000d0 <test_end>:
d0: 00002297 auipc t0,0x2
d4: f3028293 addi t0,t0,-208 # 2000 <begin_signature>
d8: 10000337 lui t1,0x10000
dc: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
e0: 00532023 sw t0,0(t1)
e4: 00002297 auipc t0,0x2
e8: f2c28293 addi t0,t0,-212 # 2010 <end_signature>
ec: 10000337 lui t1,0x10000
f0: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
f4: 00532023 sw t0,0(t1)
f8: 00100293 li t0,1
fc: 10000337 lui t1,0x10000
100: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
104: 00532023 sw t0,0(t1)
108: 00000013 nop
10c: 00100193 li gp,1
110: 00000073 ecall
00000114 <end_testcode>:
114: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
00002010 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,136 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ENDIANESS-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002817 auipc a6,0x2
84: f8480813 addi a6,a6,-124 # 2004 <test_A_data>
88: 00002897 auipc a7,0x2
8c: f8888893 addi a7,a7,-120 # 2010 <begin_signature>
90: 00082083 lw ra,0(a6)
94: 00085103 lhu sp,0(a6)
98: 00285183 lhu gp,2(a6)
9c: fff84203 lbu tp,-1(a6)
a0: 00084283 lbu t0,0(a6)
a4: 00184303 lbu t1,1(a6)
a8: 00284383 lbu t2,2(a6)
ac: 00384403 lbu s0,3(a6)
b0: 0018a023 sw ra,0(a7)
b4: 0028a223 sw sp,4(a7)
b8: 0038a423 sw gp,8(a7)
bc: 0048a623 sw tp,12(a7)
c0: 0058a823 sw t0,16(a7)
c4: 0068aa23 sw t1,20(a7)
c8: 0078ac23 sw t2,24(a7)
cc: 0088ae23 sw s0,28(a7)
d0: 00002297 auipc t0,0x2
d4: f4028293 addi t0,t0,-192 # 2010 <begin_signature>
d8: 10000337 lui t1,0x10000
dc: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
e0: 00532023 sw t0,0(t1)
e4: 00002297 auipc t0,0x2
e8: f4c28293 addi t0,t0,-180 # 2030 <end_signature>
ec: 10000337 lui t1,0x10000
f0: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
f4: 00532023 sw t0,0(t1)
f8: 00100293 li t0,1
fc: 10000337 lui t1,0x10000
100: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
104: 00532023 sw t0,0(t1)
108: 00000013 nop
10c: 00100193 li gp,1
110: 00000073 ecall
00000114 <end_testcode>:
114: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_A_data-0x4>:
2000: 89abcdef jal s11,fffbe09a <_end+0xfffbbe96>
00002004 <test_A_data>:
2004: 01234567 0x1234567
...
00002010 <begin_signature>:
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
00002030 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,401 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-IO-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002097 auipc ra,0x2
84: f8008093 addi ra,ra,-128 # 2000 <test_A1_data>
88: 00002117 auipc sp,0x2
8c: fa810113 addi sp,sp,-88 # 2030 <begin_signature>
90: 0000a183 lw gp,0(ra)
94: 00000213 li tp,0
98: 00100293 li t0,1
9c: fff00313 li t1,-1
a0: 800003b7 lui t2,0x80000
a4: fff38393 addi t2,t2,-1 # 7fffffff <_end+0x7fffddfb>
a8: 80000437 lui s0,0x80000
ac: 00418233 add tp,gp,tp
b0: 005182b3 add t0,gp,t0
b4: 00618333 add t1,gp,t1
b8: 007183b3 add t2,gp,t2
bc: 00818433 add s0,gp,s0
c0: 00312023 sw gp,0(sp)
c4: 00412223 sw tp,4(sp)
c8: 00512423 sw t0,8(sp)
cc: 00612623 sw t1,12(sp)
d0: 00712823 sw t2,16(sp)
d4: 00812a23 sw s0,20(sp)
d8: 00002097 auipc ra,0x2
dc: f2c08093 addi ra,ra,-212 # 2004 <test_A2_data>
e0: 00002117 auipc sp,0x2
e4: f6810113 addi sp,sp,-152 # 2048 <test_A2_res>
e8: 0000a403 lw s0,0(ra)
ec: 00000493 li s1,0
f0: 00100513 li a0,1
f4: fff00593 li a1,-1
f8: 80000637 lui a2,0x80000
fc: fff60613 addi a2,a2,-1 # 7fffffff <_end+0x7fffddfb>
100: 800006b7 lui a3,0x80000
104: 009404b3 add s1,s0,s1
108: 00a40533 add a0,s0,a0
10c: 00b405b3 add a1,s0,a1
110: 00c40633 add a2,s0,a2
114: 00d406b3 add a3,s0,a3
118: 00812023 sw s0,0(sp)
11c: 00912223 sw s1,4(sp)
120: 00a12423 sw a0,8(sp)
124: 00b12623 sw a1,12(sp)
128: 00c12823 sw a2,16(sp)
12c: 00d12a23 sw a3,20(sp)
130: 00002097 auipc ra,0x2
134: ed808093 addi ra,ra,-296 # 2008 <test_A3_data>
138: 00002117 auipc sp,0x2
13c: f2810113 addi sp,sp,-216 # 2060 <test_A3_res>
140: 0000a683 lw a3,0(ra)
144: 00000713 li a4,0
148: 00100793 li a5,1
14c: fff00813 li a6,-1
150: 800008b7 lui a7,0x80000
154: fff88893 addi a7,a7,-1 # 7fffffff <_end+0x7fffddfb>
158: 80000937 lui s2,0x80000
15c: 00e68733 add a4,a3,a4
160: 00f687b3 add a5,a3,a5
164: 01068833 add a6,a3,a6
168: 011688b3 add a7,a3,a7
16c: 01268933 add s2,a3,s2
170: 00d12023 sw a3,0(sp)
174: 00e12223 sw a4,4(sp)
178: 00f12423 sw a5,8(sp)
17c: 01012623 sw a6,12(sp)
180: 01112823 sw a7,16(sp)
184: 01212a23 sw s2,20(sp)
188: 00002097 auipc ra,0x2
18c: e8408093 addi ra,ra,-380 # 200c <test_A4_data>
190: 00002117 auipc sp,0x2
194: ee810113 addi sp,sp,-280 # 2078 <test_A4_res>
198: 0000a903 lw s2,0(ra)
19c: 00000993 li s3,0
1a0: 00100a13 li s4,1
1a4: fff00a93 li s5,-1
1a8: 80000b37 lui s6,0x80000
1ac: fffb0b13 addi s6,s6,-1 # 7fffffff <_end+0x7fffddfb>
1b0: 80000bb7 lui s7,0x80000
1b4: 013909b3 add s3,s2,s3
1b8: 01490a33 add s4,s2,s4
1bc: 01590ab3 add s5,s2,s5
1c0: 01690b33 add s6,s2,s6
1c4: 01790bb3 add s7,s2,s7
1c8: 01212023 sw s2,0(sp)
1cc: 01312223 sw s3,4(sp)
1d0: 01412423 sw s4,8(sp)
1d4: 01512623 sw s5,12(sp)
1d8: 01612823 sw s6,16(sp)
1dc: 01712a23 sw s7,20(sp)
1e0: 00002097 auipc ra,0x2
1e4: e3008093 addi ra,ra,-464 # 2010 <test_A5_data>
1e8: 00002117 auipc sp,0x2
1ec: ea810113 addi sp,sp,-344 # 2090 <test_A5_res>
1f0: 0000ab83 lw s7,0(ra)
1f4: 00000c13 li s8,0
1f8: 00100c93 li s9,1
1fc: fff00d13 li s10,-1
200: 80000db7 lui s11,0x80000
204: fffd8d93 addi s11,s11,-1 # 7fffffff <_end+0x7fffddfb>
208: 80000e37 lui t3,0x80000
20c: 018b8c33 add s8,s7,s8
210: 019b8cb3 add s9,s7,s9
214: 01ab8d33 add s10,s7,s10
218: 01bb8db3 add s11,s7,s11
21c: 01cb8e33 add t3,s7,t3
220: 01712023 sw s7,0(sp)
224: 01812223 sw s8,4(sp)
228: 01912423 sw s9,8(sp)
22c: 01a12623 sw s10,12(sp)
230: 01b12823 sw s11,16(sp)
234: 01c12a23 sw t3,20(sp)
238: 00002c97 auipc s9,0x2
23c: ddcc8c93 addi s9,s9,-548 # 2014 <test_B_data>
240: 00002d17 auipc s10,0x2
244: e68d0d13 addi s10,s10,-408 # 20a8 <test_B_res>
248: 000cae03 lw t3,0(s9)
24c: 00100d93 li s11,1
250: 01be0eb3 add t4,t3,s11
254: 01be8f33 add t5,t4,s11
258: 01bf0fb3 add t6,t5,s11
25c: 01bf80b3 add ra,t6,s11
260: 01b08133 add sp,ra,s11
264: 01b101b3 add gp,sp,s11
268: 01bd2023 sw s11,0(s10)
26c: 01cd2223 sw t3,4(s10)
270: 01dd2423 sw t4,8(s10)
274: 01ed2623 sw t5,12(s10)
278: 01fd2823 sw t6,16(s10)
27c: 001d2a23 sw ra,20(s10)
280: 002d2c23 sw sp,24(s10)
284: 003d2e23 sw gp,28(s10)
288: 00002097 auipc ra,0x2
28c: d9008093 addi ra,ra,-624 # 2018 <test_C_data>
290: 00002117 auipc sp,0x2
294: e3810113 addi sp,sp,-456 # 20c8 <test_C_res>
298: 0000ae03 lw t3,0(ra)
29c: f7ff9db7 lui s11,0xf7ff9
2a0: 818d8d93 addi s11,s11,-2024 # f7ff8818 <_end+0xf7ff6614>
2a4: 01be0033 add zero,t3,s11
2a8: 00012023 sw zero,0(sp)
2ac: 00002097 auipc ra,0x2
2b0: d7008093 addi ra,ra,-656 # 201c <test_D_data>
2b4: 00002117 auipc sp,0x2
2b8: e1810113 addi sp,sp,-488 # 20cc <test_D_res>
2bc: 0000ae03 lw t3,0(ra)
2c0: f7ff9db7 lui s11,0xf7ff9
2c4: 818d8d93 addi s11,s11,-2024 # f7ff8818 <_end+0xf7ff6614>
2c8: 01be0033 add zero,t3,s11
2cc: 000002b3 add t0,zero,zero
2d0: 00012023 sw zero,0(sp)
2d4: 00512223 sw t0,4(sp)
2d8: 00002097 auipc ra,0x2
2dc: d4808093 addi ra,ra,-696 # 2020 <test_E_data>
2e0: 00002117 auipc sp,0x2
2e4: df410113 addi sp,sp,-524 # 20d4 <test_E_res>
2e8: 0000a183 lw gp,0(ra)
2ec: 00018233 add tp,gp,zero
2f0: 000202b3 add t0,tp,zero
2f4: 00500333 add t1,zero,t0
2f8: 00030733 add a4,t1,zero
2fc: 000707b3 add a5,a4,zero
300: 00078833 add a6,a5,zero
304: 01000cb3 add s9,zero,a6
308: 01900d33 add s10,zero,s9
30c: 000d0db3 add s11,s10,zero
310: 00412023 sw tp,0(sp)
314: 01a12223 sw s10,4(sp)
318: 01b12423 sw s11,8(sp)
31c: 00002297 auipc t0,0x2
320: d1428293 addi t0,t0,-748 # 2030 <begin_signature>
324: 10000337 lui t1,0x10000
328: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
32c: 00532023 sw t0,0(t1)
330: 00002297 auipc t0,0x2
334: db028293 addi t0,t0,-592 # 20e0 <end_signature>
338: 10000337 lui t1,0x10000
33c: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
340: 00532023 sw t0,0(t1)
344: 00100293 li t0,1
348: 10000337 lui t1,0x10000
34c: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
350: 00532023 sw t0,0(t1)
354: 00000013 nop
358: 00100193 li gp,1
35c: 00000073 ecall
00000360 <end_testcode>:
360: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_A1_data>:
2000: 0000 unimp
...
00002004 <test_A2_data>:
2004: 0001 nop
...
00002008 <test_A3_data>:
2008: ffff 0xffff
200a: ffff 0xffff
0000200c <test_A4_data>:
200c: ffff 0xffff
200e: 7fff 0x7fff
00002010 <test_A5_data>:
2010: 0000 unimp
2012: 8000 0x8000
00002014 <test_B_data>:
2014: abcd j 2606 <_end+0x402>
...
00002018 <test_C_data>:
2018: 5678 lw a4,108(a2)
201a: 1234 addi a3,sp,296
0000201c <test_D_data>:
201c: ba98 fsd fa4,48(a3)
201e: fedc fsw fa5,60(a3)
00002020 <test_E_data>:
2020: 5814 lw a3,48(s0)
2022: 3692 fld fa3,288(sp)
...
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
00002048 <test_A2_res>:
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
00002060 <test_A3_res>:
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_A4_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
00002090 <test_A5_res>:
2090: ffff 0xffff
2092: ffff 0xffff
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_B_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: ffff 0xffff
20be: ffff 0xffff
20c0: ffff 0xffff
20c2: ffff 0xffff
20c4: ffff 0xffff
20c6: ffff 0xffff
000020c8 <test_C_res>:
20c8: ffff 0xffff
20ca: ffff 0xffff
000020cc <test_D_res>:
20cc: ffff 0xffff
20ce: ffff 0xffff
20d0: ffff 0xffff
20d2: ffff 0xffff
000020d4 <test_E_res>:
20d4: ffff 0xffff
20d6: ffff 0xffff
20d8: ffff 0xffff
20da: ffff 0xffff
20dc: ffff 0xffff
20de: ffff 0xffff
000020e0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,395 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-JAL-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: 0000d037 lui zero,0xd
8c: ccc00013 li zero,-820
90: 00c00fef jal t6,9c <begin_testcode+0x1c>
94: 00012037 lui zero,0x12
98: 3ab00013 li zero,939
9c: 0002a023 sw zero,0(t0)
a0: 0000d0b7 lui ra,0xd
a4: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
a8: 00c00f6f jal t5,b4 <begin_testcode+0x34>
ac: 000120b7 lui ra,0x12
b0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
b4: 0012a223 sw ra,4(t0)
b8: 0080006f j c0 <begin_testcode+0x40>
bc: 0180006f j d4 <begin_testcode+0x54>
c0: 0000d137 lui sp,0xd
c4: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
c8: ff5ffeef jal t4,bc <begin_testcode+0x3c>
cc: 00012137 lui sp,0x12
d0: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
d4: 0022a423 sw sp,8(t0)
d8: 0000d1b7 lui gp,0xd
dc: ccc18193 addi gp,gp,-820 # cccc <_end+0xaac8>
e0: 00c00e6f jal t3,ec <begin_testcode+0x6c>
e4: 000121b7 lui gp,0x12
e8: 3ab18193 addi gp,gp,939 # 123ab <_end+0x101a7>
ec: 0032a623 sw gp,12(t0)
f0: 0000d237 lui tp,0xd
f4: ccc20213 addi tp,tp,-820 # cccc <_end+0xaac8>
f8: 00c00def jal s11,104 <begin_testcode+0x84>
fc: 00012237 lui tp,0x12
100: 3ab20213 addi tp,tp,939 # 123ab <_end+0x101a7>
104: 0042a823 sw tp,16(t0)
108: 00002097 auipc ra,0x2
10c: f0c08093 addi ra,ra,-244 # 2014 <test_2_res>
110: 0000d2b7 lui t0,0xd
114: ccc28293 addi t0,t0,-820 # cccc <_end+0xaac8>
118: 00c00d6f jal s10,124 <begin_testcode+0xa4>
11c: 000122b7 lui t0,0x12
120: 3ab28293 addi t0,t0,939 # 123ab <_end+0x101a7>
124: 0050a023 sw t0,0(ra)
128: 0000d337 lui t1,0xd
12c: ccc30313 addi t1,t1,-820 # cccc <_end+0xaac8>
130: 00c00cef jal s9,13c <begin_testcode+0xbc>
134: 00012337 lui t1,0x12
138: 3ab30313 addi t1,t1,939 # 123ab <_end+0x101a7>
13c: 0060a223 sw t1,4(ra)
140: 0080006f j 148 <begin_testcode+0xc8>
144: 0180006f j 15c <begin_testcode+0xdc>
148: 0000d3b7 lui t2,0xd
14c: ccc38393 addi t2,t2,-820 # cccc <_end+0xaac8>
150: ff5ffc6f jal s8,144 <begin_testcode+0xc4>
154: 000123b7 lui t2,0x12
158: 3ab38393 addi t2,t2,939 # 123ab <_end+0x101a7>
15c: 0070a423 sw t2,8(ra)
160: 0000d437 lui s0,0xd
164: ccc40413 addi s0,s0,-820 # cccc <_end+0xaac8>
168: 00c00bef jal s7,174 <begin_testcode+0xf4>
16c: 00012437 lui s0,0x12
170: 3ab40413 addi s0,s0,939 # 123ab <_end+0x101a7>
174: 0080a623 sw s0,12(ra)
178: 0000d4b7 lui s1,0xd
17c: ccc48493 addi s1,s1,-820 # cccc <_end+0xaac8>
180: 00c00b6f jal s6,18c <begin_testcode+0x10c>
184: 000124b7 lui s1,0x12
188: 3ab48493 addi s1,s1,939 # 123ab <_end+0x101a7>
18c: 0090a823 sw s1,16(ra)
190: 00002097 auipc ra,0x2
194: e9808093 addi ra,ra,-360 # 2028 <test_3_res>
198: 0000d537 lui a0,0xd
19c: ccc50513 addi a0,a0,-820 # cccc <_end+0xaac8>
1a0: 00c00aef jal s5,1ac <begin_testcode+0x12c>
1a4: 00012537 lui a0,0x12
1a8: 3ab50513 addi a0,a0,939 # 123ab <_end+0x101a7>
1ac: 00a0a023 sw a0,0(ra)
1b0: 0000d5b7 lui a1,0xd
1b4: ccc58593 addi a1,a1,-820 # cccc <_end+0xaac8>
1b8: 00c00a6f jal s4,1c4 <begin_testcode+0x144>
1bc: 000125b7 lui a1,0x12
1c0: 3ab58593 addi a1,a1,939 # 123ab <_end+0x101a7>
1c4: 00b0a223 sw a1,4(ra)
1c8: 0080006f j 1d0 <begin_testcode+0x150>
1cc: 0180006f j 1e4 <begin_testcode+0x164>
1d0: 0000d637 lui a2,0xd
1d4: ccc60613 addi a2,a2,-820 # cccc <_end+0xaac8>
1d8: ff5ff9ef jal s3,1cc <begin_testcode+0x14c>
1dc: 00012637 lui a2,0x12
1e0: 3ab60613 addi a2,a2,939 # 123ab <_end+0x101a7>
1e4: 00c0a423 sw a2,8(ra)
1e8: 0000d6b7 lui a3,0xd
1ec: ccc68693 addi a3,a3,-820 # cccc <_end+0xaac8>
1f0: 00c0096f jal s2,1fc <begin_testcode+0x17c>
1f4: 000126b7 lui a3,0x12
1f8: 3ab68693 addi a3,a3,939 # 123ab <_end+0x101a7>
1fc: 00d0a623 sw a3,12(ra)
200: 0000d737 lui a4,0xd
204: ccc70713 addi a4,a4,-820 # cccc <_end+0xaac8>
208: 00c008ef jal a7,214 <begin_testcode+0x194>
20c: 00012737 lui a4,0x12
210: 3ab70713 addi a4,a4,939 # 123ab <_end+0x101a7>
214: 00e0a823 sw a4,16(ra)
218: 00002117 auipc sp,0x2
21c: e2410113 addi sp,sp,-476 # 203c <test_4_res>
220: 0000d7b7 lui a5,0xd
224: ccc78793 addi a5,a5,-820 # cccc <_end+0xaac8>
228: 00c0086f jal a6,234 <begin_testcode+0x1b4>
22c: 000127b7 lui a5,0x12
230: 3ab78793 addi a5,a5,939 # 123ab <_end+0x101a7>
234: 00f12023 sw a5,0(sp)
238: 0000d837 lui a6,0xd
23c: ccc80813 addi a6,a6,-820 # cccc <_end+0xaac8>
240: 00c007ef jal a5,24c <begin_testcode+0x1cc>
244: 00012837 lui a6,0x12
248: 3ab80813 addi a6,a6,939 # 123ab <_end+0x101a7>
24c: 01012223 sw a6,4(sp)
250: 0080006f j 258 <begin_testcode+0x1d8>
254: 0180006f j 26c <begin_testcode+0x1ec>
258: 0000d8b7 lui a7,0xd
25c: ccc88893 addi a7,a7,-820 # cccc <_end+0xaac8>
260: ff5ff76f jal a4,254 <begin_testcode+0x1d4>
264: 000128b7 lui a7,0x12
268: 3ab88893 addi a7,a7,939 # 123ab <_end+0x101a7>
26c: 01112423 sw a7,8(sp)
270: 0000d937 lui s2,0xd
274: ccc90913 addi s2,s2,-820 # cccc <_end+0xaac8>
278: 00c006ef jal a3,284 <begin_testcode+0x204>
27c: 00012937 lui s2,0x12
280: 3ab90913 addi s2,s2,939 # 123ab <_end+0x101a7>
284: 01212623 sw s2,12(sp)
288: 0000d9b7 lui s3,0xd
28c: ccc98993 addi s3,s3,-820 # cccc <_end+0xaac8>
290: 00c0066f jal a2,29c <begin_testcode+0x21c>
294: 000129b7 lui s3,0x12
298: 3ab98993 addi s3,s3,939 # 123ab <_end+0x101a7>
29c: 01312823 sw s3,16(sp)
2a0: 00002097 auipc ra,0x2
2a4: db008093 addi ra,ra,-592 # 2050 <test_5_res>
2a8: 0000da37 lui s4,0xd
2ac: ccca0a13 addi s4,s4,-820 # cccc <_end+0xaac8>
2b0: 00c005ef jal a1,2bc <begin_testcode+0x23c>
2b4: 00012a37 lui s4,0x12
2b8: 3aba0a13 addi s4,s4,939 # 123ab <_end+0x101a7>
2bc: 0140a023 sw s4,0(ra)
2c0: 0000dab7 lui s5,0xd
2c4: ccca8a93 addi s5,s5,-820 # cccc <_end+0xaac8>
2c8: 00c0056f jal a0,2d4 <begin_testcode+0x254>
2cc: 00012ab7 lui s5,0x12
2d0: 3aba8a93 addi s5,s5,939 # 123ab <_end+0x101a7>
2d4: 0150a223 sw s5,4(ra)
2d8: 0080006f j 2e0 <begin_testcode+0x260>
2dc: 0180006f j 2f4 <begin_testcode+0x274>
2e0: 0000db37 lui s6,0xd
2e4: cccb0b13 addi s6,s6,-820 # cccc <_end+0xaac8>
2e8: ff5ff4ef jal s1,2dc <begin_testcode+0x25c>
2ec: 00012b37 lui s6,0x12
2f0: 3abb0b13 addi s6,s6,939 # 123ab <_end+0x101a7>
2f4: 0160a423 sw s6,8(ra)
2f8: 0000dbb7 lui s7,0xd
2fc: cccb8b93 addi s7,s7,-820 # cccc <_end+0xaac8>
300: 00c0046f jal s0,30c <begin_testcode+0x28c>
304: 00012bb7 lui s7,0x12
308: 3abb8b93 addi s7,s7,939 # 123ab <_end+0x101a7>
30c: 0170a623 sw s7,12(ra)
310: 0000dc37 lui s8,0xd
314: cccc0c13 addi s8,s8,-820 # cccc <_end+0xaac8>
318: 00c003ef jal t2,324 <begin_testcode+0x2a4>
31c: 00012c37 lui s8,0x12
320: 3abc0c13 addi s8,s8,939 # 123ab <_end+0x101a7>
324: 0180a823 sw s8,16(ra)
328: 00002097 auipc ra,0x2
32c: d3c08093 addi ra,ra,-708 # 2064 <test_6_res>
330: 0000dcb7 lui s9,0xd
334: cccc8c93 addi s9,s9,-820 # cccc <_end+0xaac8>
338: 00c0036f jal t1,344 <begin_testcode+0x2c4>
33c: 00012cb7 lui s9,0x12
340: 3abc8c93 addi s9,s9,939 # 123ab <_end+0x101a7>
344: 0190a023 sw s9,0(ra)
348: 0000dd37 lui s10,0xd
34c: cccd0d13 addi s10,s10,-820 # cccc <_end+0xaac8>
350: 00c002ef jal t0,35c <begin_testcode+0x2dc>
354: 00012d37 lui s10,0x12
358: 3abd0d13 addi s10,s10,939 # 123ab <_end+0x101a7>
35c: 01a0a223 sw s10,4(ra)
360: 0080006f j 368 <begin_testcode+0x2e8>
364: 0180006f j 37c <begin_testcode+0x2fc>
368: 0000ddb7 lui s11,0xd
36c: cccd8d93 addi s11,s11,-820 # cccc <_end+0xaac8>
370: ff5ff26f jal tp,364 <begin_testcode+0x2e4>
374: 00012db7 lui s11,0x12
378: 3abd8d93 addi s11,s11,939 # 123ab <_end+0x101a7>
37c: 01b0a423 sw s11,8(ra)
380: 0000de37 lui t3,0xd
384: ccce0e13 addi t3,t3,-820 # cccc <_end+0xaac8>
388: 00c001ef jal gp,394 <begin_testcode+0x314>
38c: 00012e37 lui t3,0x12
390: 3abe0e13 addi t3,t3,939 # 123ab <_end+0x101a7>
394: 01c0a623 sw t3,12(ra)
398: 0000deb7 lui t4,0xd
39c: ccce8e93 addi t4,t4,-820 # cccc <_end+0xaac8>
3a0: 00c0016f jal sp,3ac <begin_testcode+0x32c>
3a4: 00012eb7 lui t4,0x12
3a8: 3abe8e93 addi t4,t4,939 # 123ab <_end+0x101a7>
3ac: 01d0a823 sw t4,16(ra)
3b0: 00002117 auipc sp,0x2
3b4: cc810113 addi sp,sp,-824 # 2078 <test_7_res>
3b8: 0000df37 lui t5,0xd
3bc: cccf0f13 addi t5,t5,-820 # cccc <_end+0xaac8>
3c0: 00c000ef jal ra,3cc <begin_testcode+0x34c>
3c4: 00012f37 lui t5,0x12
3c8: 3abf0f13 addi t5,t5,939 # 123ab <_end+0x101a7>
3cc: 01e12023 sw t5,0(sp)
3d0: 0000dfb7 lui t6,0xd
3d4: cccf8f93 addi t6,t6,-820 # cccc <_end+0xaac8>
3d8: 00c0006f j 3e4 <begin_testcode+0x364>
3dc: 00012fb7 lui t6,0x12
3e0: 3abf8f93 addi t6,t6,939 # 123ab <_end+0x101a7>
3e4: 01f12223 sw t6,4(sp)
3e8: 00002297 auipc t0,0x2
3ec: c1828293 addi t0,t0,-1000 # 2000 <begin_signature>
3f0: 10000337 lui t1,0x10000
3f4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
3f8: 00532023 sw t0,0(t1)
3fc: 00002297 auipc t0,0x2
400: c9428293 addi t0,t0,-876 # 2090 <end_signature>
404: 10000337 lui t1,0x10000
408: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
40c: 00532023 sw t0,0(t1)
410: 00100293 li t0,1
414: 10000337 lui t1,0x10000
418: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
41c: 00532023 sw t0,0(t1)
420: 00000013 nop
424: 00100193 li gp,1
428: 00000073 ecall
0000042c <end_testcode>:
42c: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,459 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-JALR-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: 0000dfb7 lui t6,0xd
8c: cccf8f93 addi t6,t6,-820 # cccc <_end+0xaac8>
90: 00000817 auipc a6,0x0
94: 01480813 addi a6,a6,20 # a4 <begin_testcode+0x24>
98: 00080067 jr a6
9c: 00012fb7 lui t6,0x12
a0: 3abf8f93 addi t6,t6,939 # 123ab <_end+0x101a7>
a4: 01f2a023 sw t6,0(t0)
a8: 0000df37 lui t5,0xd
ac: cccf0f13 addi t5,t5,-820 # cccc <_end+0xaac8>
b0: 00000797 auipc a5,0x0
b4: 01378793 addi a5,a5,19 # c3 <begin_testcode+0x43>
b8: 001780e7 jalr 1(a5)
bc: 00012f37 lui t5,0x12
c0: 3abf0f13 addi t5,t5,939 # 123ab <_end+0x101a7>
c4: 01e2a223 sw t5,4(t0)
c8: 0080006f j d0 <begin_testcode+0x50>
cc: 0200006f j ec <begin_testcode+0x6c>
d0: 0000deb7 lui t4,0xd
d4: ccce8e93 addi t4,t4,-820 # cccc <_end+0xaac8>
d8: 00000717 auipc a4,0x0
dc: ff370713 addi a4,a4,-13 # cb <begin_testcode+0x4b>
e0: 00170167 jalr sp,1(a4)
e4: 00012eb7 lui t4,0x12
e8: 3abe8e93 addi t4,t4,939 # 123ab <_end+0x101a7>
ec: 01d2a423 sw t4,8(t0)
f0: 0000de37 lui t3,0xd
f4: ccce0e13 addi t3,t3,-820 # cccc <_end+0xaac8>
f8: 00000697 auipc a3,0x0
fc: 01068693 addi a3,a3,16 # 108 <begin_testcode+0x88>
100: 004681e7 jalr gp,4(a3)
104: 00012e37 lui t3,0x12
108: 3abe0e13 addi t3,t3,939 # 123ab <_end+0x101a7>
10c: 01c2a623 sw t3,12(t0)
110: 0000ddb7 lui s11,0xd
114: cccd8d93 addi s11,s11,-820 # cccc <_end+0xaac8>
118: 00000617 auipc a2,0x0
11c: 01260613 addi a2,a2,18 # 12a <begin_testcode+0xaa>
120: 00260267 jalr tp,2(a2)
124: 00012db7 lui s11,0x12
128: 3abd8d93 addi s11,s11,939 # 123ab <_end+0x101a7>
12c: 01b2a823 sw s11,16(t0)
130: 00002097 auipc ra,0x2
134: ee408093 addi ra,ra,-284 # 2014 <test_2_res>
138: 0000dd37 lui s10,0xd
13c: cccd0d13 addi s10,s10,-820 # cccc <_end+0xaac8>
140: 00000597 auipc a1,0x0
144: 01058593 addi a1,a1,16 # 150 <begin_testcode+0xd0>
148: 004582e7 jalr t0,4(a1)
14c: 00012d37 lui s10,0x12
150: 3abd0d13 addi s10,s10,939 # 123ab <_end+0x101a7>
154: 01a0a023 sw s10,0(ra)
158: 0000dcb7 lui s9,0xd
15c: cccc8c93 addi s9,s9,-820 # cccc <_end+0xaac8>
160: 00000517 auipc a0,0x0
164: 01150513 addi a0,a0,17 # 171 <begin_testcode+0xf1>
168: 00350367 jalr t1,3(a0)
16c: 00012cb7 lui s9,0x12
170: 3abc8c93 addi s9,s9,939 # 123ab <_end+0x101a7>
174: 0190a223 sw s9,4(ra)
178: 0080006f j 180 <begin_testcode+0x100>
17c: 0200006f j 19c <begin_testcode+0x11c>
180: 0000dc37 lui s8,0xd
184: cccc0c13 addi s8,s8,-820 # cccc <_end+0xaac8>
188: 00000497 auipc s1,0x0
18c: ff248493 addi s1,s1,-14 # 17a <begin_testcode+0xfa>
190: 002483e7 jalr t2,2(s1)
194: 00012c37 lui s8,0x12
198: 3abc0c13 addi s8,s8,939 # 123ab <_end+0x101a7>
19c: 0180a423 sw s8,8(ra)
1a0: 0000dbb7 lui s7,0xd
1a4: cccb8b93 addi s7,s7,-820 # cccc <_end+0xaac8>
1a8: 00000417 auipc s0,0x0
1ac: 01440413 addi s0,s0,20 # 1bc <begin_testcode+0x13c>
1b0: 00040467 jalr s0,s0
1b4: 00012bb7 lui s7,0x12
1b8: 3abb8b93 addi s7,s7,939 # 123ab <_end+0x101a7>
1bc: 0170a623 sw s7,12(ra)
1c0: 0000db37 lui s6,0xd
1c4: cccb0b13 addi s6,s6,-820 # cccc <_end+0xaac8>
1c8: 00000397 auipc t2,0x0
1cc: 01338393 addi t2,t2,19 # 1db <begin_testcode+0x15b>
1d0: 001384e7 jalr s1,1(t2)
1d4: 00012b37 lui s6,0x12
1d8: 3abb0b13 addi s6,s6,939 # 123ab <_end+0x101a7>
1dc: 0160a823 sw s6,16(ra)
1e0: 00002097 auipc ra,0x2
1e4: e4808093 addi ra,ra,-440 # 2028 <test_3_res>
1e8: 0000dab7 lui s5,0xd
1ec: ccca8a93 addi s5,s5,-820 # cccc <_end+0xaac8>
1f0: 00000317 auipc t1,0x0
1f4: 01330313 addi t1,t1,19 # 203 <begin_testcode+0x183>
1f8: 00130567 jalr a0,1(t1)
1fc: 00012ab7 lui s5,0x12
200: 3aba8a93 addi s5,s5,939 # 123ab <_end+0x101a7>
204: 0150a023 sw s5,0(ra)
208: 0000da37 lui s4,0xd
20c: ccca0a13 addi s4,s4,-820 # cccc <_end+0xaac8>
210: 00000297 auipc t0,0x0
214: 01028293 addi t0,t0,16 # 220 <begin_testcode+0x1a0>
218: 004285e7 jalr a1,4(t0)
21c: 00012a37 lui s4,0x12
220: 3aba0a13 addi s4,s4,939 # 123ab <_end+0x101a7>
224: 0140a223 sw s4,4(ra)
228: 0080006f j 230 <begin_testcode+0x1b0>
22c: 0200006f j 24c <begin_testcode+0x1cc>
230: 0000d9b7 lui s3,0xd
234: ccc98993 addi s3,s3,-820 # cccc <_end+0xaac8>
238: 00000217 auipc tp,0x0
23c: ff220213 addi tp,tp,-14 # 22a <begin_testcode+0x1aa>
240: 00220667 jalr a2,2(tp) # 0 <_start>
244: 000129b7 lui s3,0x12
248: 3ab98993 addi s3,s3,939 # 123ab <_end+0x101a7>
24c: 0130a423 sw s3,8(ra)
250: 0000d937 lui s2,0xd
254: ccc90913 addi s2,s2,-820 # cccc <_end+0xaac8>
258: 00000197 auipc gp,0x0
25c: 01018193 addi gp,gp,16 # 268 <begin_testcode+0x1e8>
260: 004186e7 jalr a3,4(gp)
264: 00012937 lui s2,0x12
268: 3ab90913 addi s2,s2,939 # 123ab <_end+0x101a7>
26c: 0120a623 sw s2,12(ra)
270: 0000d8b7 lui a7,0xd
274: ccc88893 addi a7,a7,-820 # cccc <_end+0xaac8>
278: 00000117 auipc sp,0x0
27c: 01110113 addi sp,sp,17 # 289 <begin_testcode+0x209>
280: 00310767 jalr a4,3(sp)
284: 000128b7 lui a7,0x12
288: 3ab88893 addi a7,a7,939 # 123ab <_end+0x101a7>
28c: 0110a823 sw a7,16(ra)
290: 00002117 auipc sp,0x2
294: dac10113 addi sp,sp,-596 # 203c <test_4_res>
298: 0000d837 lui a6,0xd
29c: ccc80813 addi a6,a6,-820 # cccc <_end+0xaac8>
2a0: 00000097 auipc ra,0x0
2a4: 01208093 addi ra,ra,18 # 2b2 <begin_testcode+0x232>
2a8: 002087e7 jalr a5,2(ra)
2ac: 00012837 lui a6,0x12
2b0: 3ab80813 addi a6,a6,939 # 123ab <_end+0x101a7>
2b4: 01012023 sw a6,0(sp)
2b8: 0000d7b7 lui a5,0xd
2bc: ccc78793 addi a5,a5,-820 # cccc <_end+0xaac8>
2c0: 00000097 auipc ra,0x0
2c4: 01408093 addi ra,ra,20 # 2d4 <begin_testcode+0x254>
2c8: 00008867 jalr a6,ra
2cc: 000127b7 lui a5,0x12
2d0: 3ab78793 addi a5,a5,939 # 123ab <_end+0x101a7>
2d4: 00f12223 sw a5,4(sp)
2d8: 0080006f j 2e0 <begin_testcode+0x260>
2dc: 0200006f j 2fc <begin_testcode+0x27c>
2e0: 0000d737 lui a4,0xd
2e4: ccc70713 addi a4,a4,-820 # cccc <_end+0xaac8>
2e8: 00000f97 auipc t6,0x0
2ec: ff3f8f93 addi t6,t6,-13 # 2db <begin_testcode+0x25b>
2f0: 001f88e7 jalr a7,1(t6)
2f4: 00012737 lui a4,0x12
2f8: 3ab70713 addi a4,a4,939 # 123ab <_end+0x101a7>
2fc: 00e12423 sw a4,8(sp)
300: 0000d6b7 lui a3,0xd
304: ccc68693 addi a3,a3,-820 # cccc <_end+0xaac8>
308: 00000f17 auipc t5,0x0
30c: 013f0f13 addi t5,t5,19 # 31b <begin_testcode+0x29b>
310: 001f0967 jalr s2,1(t5)
314: 000126b7 lui a3,0x12
318: 3ab68693 addi a3,a3,939 # 123ab <_end+0x101a7>
31c: 00d12623 sw a3,12(sp)
320: 0000d637 lui a2,0xd
324: ccc60613 addi a2,a2,-820 # cccc <_end+0xaac8>
328: 00000e97 auipc t4,0x0
32c: 010e8e93 addi t4,t4,16 # 338 <begin_testcode+0x2b8>
330: 004e89e7 jalr s3,4(t4)
334: 00012637 lui a2,0x12
338: 3ab60613 addi a2,a2,939 # 123ab <_end+0x101a7>
33c: 00c12823 sw a2,16(sp)
340: 00002097 auipc ra,0x2
344: d1008093 addi ra,ra,-752 # 2050 <test_5_res>
348: 0000d5b7 lui a1,0xd
34c: ccc58593 addi a1,a1,-820 # cccc <_end+0xaac8>
350: 00000e17 auipc t3,0x0
354: 012e0e13 addi t3,t3,18 # 362 <begin_testcode+0x2e2>
358: 002e0a67 jalr s4,2(t3)
35c: 000125b7 lui a1,0x12
360: 3ab58593 addi a1,a1,939 # 123ab <_end+0x101a7>
364: 00b0a023 sw a1,0(ra)
368: 0000d537 lui a0,0xd
36c: ccc50513 addi a0,a0,-820 # cccc <_end+0xaac8>
370: 00000d97 auipc s11,0x0
374: 010d8d93 addi s11,s11,16 # 380 <begin_testcode+0x300>
378: 004d8ae7 jalr s5,4(s11)
37c: 00012537 lui a0,0x12
380: 3ab50513 addi a0,a0,939 # 123ab <_end+0x101a7>
384: 00a0a223 sw a0,4(ra)
388: 0080006f j 390 <begin_testcode+0x310>
38c: 0200006f j 3ac <begin_testcode+0x32c>
390: 0000d4b7 lui s1,0xd
394: ccc48493 addi s1,s1,-820 # cccc <_end+0xaac8>
398: 00000d17 auipc s10,0x0
39c: ff1d0d13 addi s10,s10,-15 # 389 <begin_testcode+0x309>
3a0: 003d0b67 jalr s6,3(s10)
3a4: 000124b7 lui s1,0x12
3a8: 3ab48493 addi s1,s1,939 # 123ab <_end+0x101a7>
3ac: 0090a423 sw s1,8(ra)
3b0: 0000d437 lui s0,0xd
3b4: ccc40413 addi s0,s0,-820 # cccc <_end+0xaac8>
3b8: 00000c97 auipc s9,0x0
3bc: 012c8c93 addi s9,s9,18 # 3ca <begin_testcode+0x34a>
3c0: 002c8be7 jalr s7,2(s9)
3c4: 00012437 lui s0,0x12
3c8: 3ab40413 addi s0,s0,939 # 123ab <_end+0x101a7>
3cc: 0080a623 sw s0,12(ra)
3d0: 0000d3b7 lui t2,0xd
3d4: ccc38393 addi t2,t2,-820 # cccc <_end+0xaac8>
3d8: 00000c17 auipc s8,0x0
3dc: 014c0c13 addi s8,s8,20 # 3ec <begin_testcode+0x36c>
3e0: 000c0c67 jalr s8,s8
3e4: 000123b7 lui t2,0x12
3e8: 3ab38393 addi t2,t2,939 # 123ab <_end+0x101a7>
3ec: 0070a823 sw t2,16(ra)
3f0: 00002097 auipc ra,0x2
3f4: c7408093 addi ra,ra,-908 # 2064 <test_6_res>
3f8: 0000d337 lui t1,0xd
3fc: ccc30313 addi t1,t1,-820 # cccc <_end+0xaac8>
400: 00000b97 auipc s7,0x0
404: 013b8b93 addi s7,s7,19 # 413 <begin_testcode+0x393>
408: 001b8ce7 jalr s9,1(s7)
40c: 00012337 lui t1,0x12
410: 3ab30313 addi t1,t1,939 # 123ab <_end+0x101a7>
414: 0060a023 sw t1,0(ra)
418: 0000d2b7 lui t0,0xd
41c: ccc28293 addi t0,t0,-820 # cccc <_end+0xaac8>
420: 00000b17 auipc s6,0x0
424: 013b0b13 addi s6,s6,19 # 433 <begin_testcode+0x3b3>
428: 001b0d67 jalr s10,1(s6)
42c: 000122b7 lui t0,0x12
430: 3ab28293 addi t0,t0,939 # 123ab <_end+0x101a7>
434: 0050a223 sw t0,4(ra)
438: 0080006f j 440 <begin_testcode+0x3c0>
43c: 0200006f j 45c <begin_testcode+0x3dc>
440: 0000d237 lui tp,0xd
444: ccc20213 addi tp,tp,-820 # cccc <_end+0xaac8>
448: 00000a97 auipc s5,0x0
44c: ff0a8a93 addi s5,s5,-16 # 438 <begin_testcode+0x3b8>
450: 004a8de7 jalr s11,4(s5)
454: 00012237 lui tp,0x12
458: 3ab20213 addi tp,tp,939 # 123ab <_end+0x101a7>
45c: 0040a423 sw tp,8(ra)
460: 0000d1b7 lui gp,0xd
464: ccc18193 addi gp,gp,-820 # cccc <_end+0xaac8>
468: 00000a17 auipc s4,0x0
46c: 012a0a13 addi s4,s4,18 # 47a <begin_testcode+0x3fa>
470: 002a0e67 jalr t3,2(s4)
474: 000121b7 lui gp,0x12
478: 3ab18193 addi gp,gp,939 # 123ab <_end+0x101a7>
47c: 0030a623 sw gp,12(ra)
480: 0000d137 lui sp,0xd
484: ccc10113 addi sp,sp,-820 # cccc <_end+0xaac8>
488: 00000997 auipc s3,0x0
48c: 01098993 addi s3,s3,16 # 498 <begin_testcode+0x418>
490: 00498ee7 jalr t4,4(s3)
494: 00012137 lui sp,0x12
498: 3ab10113 addi sp,sp,939 # 123ab <_end+0x101a7>
49c: 0020a823 sw sp,16(ra)
4a0: 00002117 auipc sp,0x2
4a4: bd810113 addi sp,sp,-1064 # 2078 <test_7_res>
4a8: 0000d0b7 lui ra,0xd
4ac: ccc08093 addi ra,ra,-820 # cccc <_end+0xaac8>
4b0: 00000917 auipc s2,0x0
4b4: 01190913 addi s2,s2,17 # 4c1 <begin_testcode+0x441>
4b8: 00390f67 jalr t5,3(s2)
4bc: 000120b7 lui ra,0x12
4c0: 3ab08093 addi ra,ra,939 # 123ab <_end+0x101a7>
4c4: 00112023 sw ra,0(sp)
4c8: 0000d037 lui zero,0xd
4cc: ccc00013 li zero,-820
4d0: 00000897 auipc a7,0x0
4d4: 01288893 addi a7,a7,18 # 4e2 <begin_testcode+0x462>
4d8: 00288fe7 jalr t6,2(a7)
4dc: 00012037 lui zero,0x12
4e0: 3ab00013 li zero,939
4e4: 00012223 sw zero,4(sp)
4e8: 00002297 auipc t0,0x2
4ec: b1828293 addi t0,t0,-1256 # 2000 <begin_signature>
4f0: 10000337 lui t1,0x10000
4f4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
4f8: 00532023 sw t0,0(t1)
4fc: 00002297 auipc t0,0x2
500: b9428293 addi t0,t0,-1132 # 2090 <end_signature>
504: 10000337 lui t1,0x10000
508: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
50c: 00532023 sw t0,0(t1)
510: 00100293 li t0,1
514: 10000337 lui t1,0x10000
518: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
51c: 00532023 sw t0,0(t1)
520: 00000013 nop
524: 00100193 li gp,1
528: 00000073 ecall
0000052c <end_testcode>:
52c: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,346 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LB-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: fb028293 addi t0,t0,-80 # 2030 <begin_signature>
88: 00002f97 auipc t6,0x2
8c: f90f8f93 addi t6,t6,-112 # 2018 <test_data>
90: 000f8003 lb zero,0(t6)
94: 0002a023 sw zero,0(t0)
98: 00002f17 auipc t5,0x2
9c: f80f0f13 addi t5,t5,-128 # 2018 <test_data>
a0: ffef0083 lb ra,-2(t5)
a4: 0012a223 sw ra,4(t0)
a8: 00002e97 auipc t4,0x2
ac: f70e8e93 addi t4,t4,-144 # 2018 <test_data>
b0: 003e8103 lb sp,3(t4)
b4: 0022a423 sw sp,8(t0)
b8: 00002e17 auipc t3,0x2
bc: f60e0e13 addi t3,t3,-160 # 2018 <test_data>
c0: ffce0183 lb gp,-4(t3)
c4: 0032a623 sw gp,12(t0)
c8: 00002d97 auipc s11,0x2
cc: f50d8d93 addi s11,s11,-176 # 2018 <test_data>
d0: 002d8203 lb tp,2(s11)
d4: 0042a823 sw tp,16(t0)
d8: 00002097 auipc ra,0x2
dc: f6c08093 addi ra,ra,-148 # 2044 <test_2_res>
e0: 00002d17 auipc s10,0x2
e4: f38d0d13 addi s10,s10,-200 # 2018 <test_data>
e8: 004d0283 lb t0,4(s10)
ec: 0050a023 sw t0,0(ra)
f0: 00002c97 auipc s9,0x2
f4: f28c8c93 addi s9,s9,-216 # 2018 <test_data>
f8: fffc8303 lb t1,-1(s9)
fc: 0060a223 sw t1,4(ra)
100: 00002c17 auipc s8,0x2
104: f18c0c13 addi s8,s8,-232 # 2018 <test_data>
108: 001c0383 lb t2,1(s8)
10c: 0070a423 sw t2,8(ra)
110: 00002b97 auipc s7,0x2
114: f08b8b93 addi s7,s7,-248 # 2018 <test_data>
118: 000b8403 lb s0,0(s7)
11c: 0080a623 sw s0,12(ra)
120: 00002b17 auipc s6,0x2
124: ef8b0b13 addi s6,s6,-264 # 2018 <test_data>
128: ffeb0483 lb s1,-2(s6)
12c: 0090a823 sw s1,16(ra)
130: 00002097 auipc ra,0x2
134: f2808093 addi ra,ra,-216 # 2058 <test_3_res>
138: 00002a97 auipc s5,0x2
13c: ee0a8a93 addi s5,s5,-288 # 2018 <test_data>
140: 003a8503 lb a0,3(s5)
144: 00a0a023 sw a0,0(ra)
148: 00002a17 auipc s4,0x2
14c: ed0a0a13 addi s4,s4,-304 # 2018 <test_data>
150: ffca0583 lb a1,-4(s4)
154: 00b0a223 sw a1,4(ra)
158: 00002997 auipc s3,0x2
15c: ec098993 addi s3,s3,-320 # 2018 <test_data>
160: 00298603 lb a2,2(s3)
164: 00c0a423 sw a2,8(ra)
168: 00002917 auipc s2,0x2
16c: eb090913 addi s2,s2,-336 # 2018 <test_data>
170: 00490683 lb a3,4(s2)
174: 00d0a623 sw a3,12(ra)
178: 00002897 auipc a7,0x2
17c: ea088893 addi a7,a7,-352 # 2018 <test_data>
180: fff88703 lb a4,-1(a7)
184: 00e0a823 sw a4,16(ra)
188: 00002117 auipc sp,0x2
18c: ee410113 addi sp,sp,-284 # 206c <test_4_res>
190: 00002817 auipc a6,0x2
194: e8880813 addi a6,a6,-376 # 2018 <test_data>
198: 00180783 lb a5,1(a6)
19c: 00f12023 sw a5,0(sp)
1a0: 00002797 auipc a5,0x2
1a4: e7878793 addi a5,a5,-392 # 2018 <test_data>
1a8: 00078803 lb a6,0(a5)
1ac: 01012223 sw a6,4(sp)
1b0: 00002717 auipc a4,0x2
1b4: e6870713 addi a4,a4,-408 # 2018 <test_data>
1b8: ffe70883 lb a7,-2(a4)
1bc: 01112423 sw a7,8(sp)
1c0: 00002697 auipc a3,0x2
1c4: e5868693 addi a3,a3,-424 # 2018 <test_data>
1c8: 00368903 lb s2,3(a3)
1cc: 01212623 sw s2,12(sp)
1d0: 00002617 auipc a2,0x2
1d4: e4860613 addi a2,a2,-440 # 2018 <test_data>
1d8: ffc60983 lb s3,-4(a2)
1dc: 01312823 sw s3,16(sp)
1e0: 00002097 auipc ra,0x2
1e4: ea008093 addi ra,ra,-352 # 2080 <test_5_res>
1e8: 00002597 auipc a1,0x2
1ec: e3058593 addi a1,a1,-464 # 2018 <test_data>
1f0: 00258a03 lb s4,2(a1)
1f4: 0140a023 sw s4,0(ra)
1f8: 00002517 auipc a0,0x2
1fc: e2050513 addi a0,a0,-480 # 2018 <test_data>
200: 00450a83 lb s5,4(a0)
204: 0150a223 sw s5,4(ra)
208: 00002497 auipc s1,0x2
20c: e1048493 addi s1,s1,-496 # 2018 <test_data>
210: fff48b03 lb s6,-1(s1)
214: 0160a423 sw s6,8(ra)
218: 00002417 auipc s0,0x2
21c: e0040413 addi s0,s0,-512 # 2018 <test_data>
220: 00140b83 lb s7,1(s0)
224: 0170a623 sw s7,12(ra)
228: 00002397 auipc t2,0x2
22c: df038393 addi t2,t2,-528 # 2018 <test_data>
230: 00038c03 lb s8,0(t2)
234: 0180a823 sw s8,16(ra)
238: 00002097 auipc ra,0x2
23c: e5c08093 addi ra,ra,-420 # 2094 <test_6_res>
240: 00002317 auipc t1,0x2
244: dd830313 addi t1,t1,-552 # 2018 <test_data>
248: ffe30c83 lb s9,-2(t1)
24c: 0190a023 sw s9,0(ra)
250: 00002297 auipc t0,0x2
254: dc828293 addi t0,t0,-568 # 2018 <test_data>
258: 00328d03 lb s10,3(t0)
25c: 01a0a223 sw s10,4(ra)
260: 00002217 auipc tp,0x2
264: db820213 addi tp,tp,-584 # 2018 <test_data>
268: ffc20d83 lb s11,-4(tp) # fffffffc <_end+0xffffddf8>
26c: 01b0a423 sw s11,8(ra)
270: 00002197 auipc gp,0x2
274: da818193 addi gp,gp,-600 # 2018 <test_data>
278: 00218e03 lb t3,2(gp)
27c: 01c0a623 sw t3,12(ra)
280: 00002117 auipc sp,0x2
284: d9810113 addi sp,sp,-616 # 2018 <test_data>
288: 00410e83 lb t4,4(sp)
28c: 01d0a823 sw t4,16(ra)
290: 00002117 auipc sp,0x2
294: e1810113 addi sp,sp,-488 # 20a8 <test_7_res>
298: 00002097 auipc ra,0x2
29c: d8008093 addi ra,ra,-640 # 2018 <test_data>
2a0: fff08f03 lb t5,-1(ra)
2a4: 01e12023 sw t5,0(sp)
2a8: 00002097 auipc ra,0x2
2ac: d7008093 addi ra,ra,-656 # 2018 <test_data>
2b0: 00108f83 lb t6,1(ra)
2b4: 01f12223 sw t6,4(sp)
2b8: 00002297 auipc t0,0x2
2bc: d7828293 addi t0,t0,-648 # 2030 <begin_signature>
2c0: 10000337 lui t1,0x10000
2c4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
2c8: 00532023 sw t0,0(t1)
2cc: 00002297 auipc t0,0x2
2d0: df428293 addi t0,t0,-524 # 20c0 <end_signature>
2d4: 10000337 lui t1,0x10000
2d8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
2dc: 00532023 sw t0,0(t1)
2e0: 00100293 li t0,1
2e4: 10000337 lui t1,0x10000
2e8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
2ec: 00532023 sw t0,0(t1)
2f0: 00000013 nop
2f4: 00100193 li gp,1
2f8: 00000073 ecall
000002fc <end_testcode>:
2fc: c0001073 unimp
300: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_data_start>:
2000: f222 fsw fs0,36(sp)
2002: 11f1 addi gp,gp,-4
2004: 44f4 lw a3,76(s1)
2006: f666f333 0xf666f333
200a: 55f5 li a1,-3
200c: 88f8 0x88f8
200e: 0aaaf777 0xaaaf777
2012: 9909 andi a0,a0,-30
2014: cc0c sw a1,24(s0)
2016: 0xeee0bbb
00002018 <test_data>:
2018: 0eee slli t4,t4,0x1b
201a: dd0d beqz a0,1f54 <fromhost+0xe54>
201c: 00f0 addi a2,sp,76
201e: 0fff 0xfff
2020: 5678 lw a4,108(a2)
2022: 1234 addi a3,sp,296
2024: def0 sw a2,124(a3)
2026: 9abc 0x9abc
2028: 3210 fld fa2,32(a2)
202a: 7654 flw fa3,44(a2)
202c: ba98 fsd fa4,48(a3)
202e: fedc fsw fa5,60(a3)
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
00002044 <test_2_res>:
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
00002058 <test_3_res>:
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
0000206c <test_4_res>:
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <test_5_res>:
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
2090: ffff 0xffff
2092: ffff 0xffff
00002094 <test_6_res>:
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_7_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: 0000 unimp
...
000020c0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,346 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LBU-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: fb028293 addi t0,t0,-80 # 2030 <begin_signature>
88: 00002f97 auipc t6,0x2
8c: f90f8f93 addi t6,t6,-112 # 2018 <test_data>
90: 000fc003 lbu zero,0(t6)
94: 0002a023 sw zero,0(t0)
98: 00002f17 auipc t5,0x2
9c: f80f0f13 addi t5,t5,-128 # 2018 <test_data>
a0: ffef4083 lbu ra,-2(t5)
a4: 0012a223 sw ra,4(t0)
a8: 00002e97 auipc t4,0x2
ac: f70e8e93 addi t4,t4,-144 # 2018 <test_data>
b0: 003ec103 lbu sp,3(t4)
b4: 0022a423 sw sp,8(t0)
b8: 00002e17 auipc t3,0x2
bc: f60e0e13 addi t3,t3,-160 # 2018 <test_data>
c0: ffce4183 lbu gp,-4(t3)
c4: 0032a623 sw gp,12(t0)
c8: 00002d97 auipc s11,0x2
cc: f50d8d93 addi s11,s11,-176 # 2018 <test_data>
d0: 002dc203 lbu tp,2(s11)
d4: 0042a823 sw tp,16(t0)
d8: 00002097 auipc ra,0x2
dc: f6c08093 addi ra,ra,-148 # 2044 <test_2_res>
e0: 00002d17 auipc s10,0x2
e4: f38d0d13 addi s10,s10,-200 # 2018 <test_data>
e8: 004d4283 lbu t0,4(s10)
ec: 0050a023 sw t0,0(ra)
f0: 00002c97 auipc s9,0x2
f4: f28c8c93 addi s9,s9,-216 # 2018 <test_data>
f8: fffcc303 lbu t1,-1(s9)
fc: 0060a223 sw t1,4(ra)
100: 00002c17 auipc s8,0x2
104: f18c0c13 addi s8,s8,-232 # 2018 <test_data>
108: 001c4383 lbu t2,1(s8)
10c: 0070a423 sw t2,8(ra)
110: 00002b97 auipc s7,0x2
114: f08b8b93 addi s7,s7,-248 # 2018 <test_data>
118: 000bc403 lbu s0,0(s7)
11c: 0080a623 sw s0,12(ra)
120: 00002b17 auipc s6,0x2
124: ef8b0b13 addi s6,s6,-264 # 2018 <test_data>
128: ffeb4483 lbu s1,-2(s6)
12c: 0090a823 sw s1,16(ra)
130: 00002097 auipc ra,0x2
134: f2808093 addi ra,ra,-216 # 2058 <test_3_res>
138: 00002a97 auipc s5,0x2
13c: ee0a8a93 addi s5,s5,-288 # 2018 <test_data>
140: 003ac503 lbu a0,3(s5)
144: 00a0a023 sw a0,0(ra)
148: 00002a17 auipc s4,0x2
14c: ed0a0a13 addi s4,s4,-304 # 2018 <test_data>
150: ffca4583 lbu a1,-4(s4)
154: 00b0a223 sw a1,4(ra)
158: 00002997 auipc s3,0x2
15c: ec098993 addi s3,s3,-320 # 2018 <test_data>
160: 0029c603 lbu a2,2(s3)
164: 00c0a423 sw a2,8(ra)
168: 00002917 auipc s2,0x2
16c: eb090913 addi s2,s2,-336 # 2018 <test_data>
170: 00494683 lbu a3,4(s2)
174: 00d0a623 sw a3,12(ra)
178: 00002897 auipc a7,0x2
17c: ea088893 addi a7,a7,-352 # 2018 <test_data>
180: fff8c703 lbu a4,-1(a7)
184: 00e0a823 sw a4,16(ra)
188: 00002117 auipc sp,0x2
18c: ee410113 addi sp,sp,-284 # 206c <test_4_res>
190: 00002817 auipc a6,0x2
194: e8880813 addi a6,a6,-376 # 2018 <test_data>
198: 00184783 lbu a5,1(a6)
19c: 00f12023 sw a5,0(sp)
1a0: 00002797 auipc a5,0x2
1a4: e7878793 addi a5,a5,-392 # 2018 <test_data>
1a8: 0007c803 lbu a6,0(a5)
1ac: 01012223 sw a6,4(sp)
1b0: 00002717 auipc a4,0x2
1b4: e6870713 addi a4,a4,-408 # 2018 <test_data>
1b8: ffe74883 lbu a7,-2(a4)
1bc: 01112423 sw a7,8(sp)
1c0: 00002697 auipc a3,0x2
1c4: e5868693 addi a3,a3,-424 # 2018 <test_data>
1c8: 0036c903 lbu s2,3(a3)
1cc: 01212623 sw s2,12(sp)
1d0: 00002617 auipc a2,0x2
1d4: e4860613 addi a2,a2,-440 # 2018 <test_data>
1d8: ffc64983 lbu s3,-4(a2)
1dc: 01312823 sw s3,16(sp)
1e0: 00002097 auipc ra,0x2
1e4: ea008093 addi ra,ra,-352 # 2080 <test_5_res>
1e8: 00002597 auipc a1,0x2
1ec: e3058593 addi a1,a1,-464 # 2018 <test_data>
1f0: 0025ca03 lbu s4,2(a1)
1f4: 0140a023 sw s4,0(ra)
1f8: 00002517 auipc a0,0x2
1fc: e2050513 addi a0,a0,-480 # 2018 <test_data>
200: 00454a83 lbu s5,4(a0)
204: 0150a223 sw s5,4(ra)
208: 00002497 auipc s1,0x2
20c: e1048493 addi s1,s1,-496 # 2018 <test_data>
210: fff4cb03 lbu s6,-1(s1)
214: 0160a423 sw s6,8(ra)
218: 00002417 auipc s0,0x2
21c: e0040413 addi s0,s0,-512 # 2018 <test_data>
220: 00144b83 lbu s7,1(s0)
224: 0170a623 sw s7,12(ra)
228: 00002397 auipc t2,0x2
22c: df038393 addi t2,t2,-528 # 2018 <test_data>
230: 0003cc03 lbu s8,0(t2)
234: 0180a823 sw s8,16(ra)
238: 00002097 auipc ra,0x2
23c: e5c08093 addi ra,ra,-420 # 2094 <test_6_res>
240: 00002317 auipc t1,0x2
244: dd830313 addi t1,t1,-552 # 2018 <test_data>
248: ffe34c83 lbu s9,-2(t1)
24c: 0190a023 sw s9,0(ra)
250: 00002297 auipc t0,0x2
254: dc828293 addi t0,t0,-568 # 2018 <test_data>
258: 0032cd03 lbu s10,3(t0)
25c: 01a0a223 sw s10,4(ra)
260: 00002217 auipc tp,0x2
264: db820213 addi tp,tp,-584 # 2018 <test_data>
268: ffc24d83 lbu s11,-4(tp) # fffffffc <_end+0xffffddf8>
26c: 01b0a423 sw s11,8(ra)
270: 00002197 auipc gp,0x2
274: da818193 addi gp,gp,-600 # 2018 <test_data>
278: 0021ce03 lbu t3,2(gp)
27c: 01c0a623 sw t3,12(ra)
280: 00002117 auipc sp,0x2
284: d9810113 addi sp,sp,-616 # 2018 <test_data>
288: 00414e83 lbu t4,4(sp)
28c: 01d0a823 sw t4,16(ra)
290: 00002117 auipc sp,0x2
294: e1810113 addi sp,sp,-488 # 20a8 <test_7_res>
298: 00002097 auipc ra,0x2
29c: d8008093 addi ra,ra,-640 # 2018 <test_data>
2a0: fff0cf03 lbu t5,-1(ra)
2a4: 01e12023 sw t5,0(sp)
2a8: 00002097 auipc ra,0x2
2ac: d7008093 addi ra,ra,-656 # 2018 <test_data>
2b0: 0010cf83 lbu t6,1(ra)
2b4: 01f12223 sw t6,4(sp)
2b8: 00002297 auipc t0,0x2
2bc: d7828293 addi t0,t0,-648 # 2030 <begin_signature>
2c0: 10000337 lui t1,0x10000
2c4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
2c8: 00532023 sw t0,0(t1)
2cc: 00002297 auipc t0,0x2
2d0: df428293 addi t0,t0,-524 # 20c0 <end_signature>
2d4: 10000337 lui t1,0x10000
2d8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
2dc: 00532023 sw t0,0(t1)
2e0: 00100293 li t0,1
2e4: 10000337 lui t1,0x10000
2e8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
2ec: 00532023 sw t0,0(t1)
2f0: 00000013 nop
2f4: 00100193 li gp,1
2f8: 00000073 ecall
000002fc <end_testcode>:
2fc: c0001073 unimp
300: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_data_start>:
2000: f222 fsw fs0,36(sp)
2002: 11f1 addi gp,gp,-4
2004: 44f4 lw a3,76(s1)
2006: f666f333 0xf666f333
200a: 55f5 li a1,-3
200c: 88f8 0x88f8
200e: 0aaaf777 0xaaaf777
2012: 9909 andi a0,a0,-30
2014: cc0c sw a1,24(s0)
2016: 0xeee0bbb
00002018 <test_data>:
2018: 0eee slli t4,t4,0x1b
201a: dd0d beqz a0,1f54 <fromhost+0xe54>
201c: 00f0 addi a2,sp,76
201e: 0fff 0xfff
2020: 5678 lw a4,108(a2)
2022: 1234 addi a3,sp,296
2024: def0 sw a2,124(a3)
2026: 9abc 0x9abc
2028: 3210 fld fa2,32(a2)
202a: 7654 flw fa3,44(a2)
202c: ba98 fsd fa4,48(a3)
202e: fedc fsw fa5,60(a3)
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
00002044 <test_2_res>:
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
00002058 <test_3_res>:
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
0000206c <test_4_res>:
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <test_5_res>:
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
2090: ffff 0xffff
2092: ffff 0xffff
00002094 <test_6_res>:
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_7_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: 0000 unimp
...
000020c0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,346 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LH-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: fb028293 addi t0,t0,-80 # 2030 <begin_signature>
88: 00002f97 auipc t6,0x2
8c: f90f8f93 addi t6,t6,-112 # 2018 <test_data>
90: 000f9003 lh zero,0(t6)
94: 0002a023 sw zero,0(t0)
98: 00002f17 auipc t5,0x2
9c: f80f0f13 addi t5,t5,-128 # 2018 <test_data>
a0: ffef1083 lh ra,-2(t5)
a4: 0012a223 sw ra,4(t0)
a8: 00002e97 auipc t4,0x2
ac: f70e8e93 addi t4,t4,-144 # 2018 <test_data>
b0: 002e9103 lh sp,2(t4)
b4: 0022a423 sw sp,8(t0)
b8: 00002e17 auipc t3,0x2
bc: f60e0e13 addi t3,t3,-160 # 2018 <test_data>
c0: ffce1183 lh gp,-4(t3)
c4: 0032a623 sw gp,12(t0)
c8: 00002d97 auipc s11,0x2
cc: f50d8d93 addi s11,s11,-176 # 2018 <test_data>
d0: 002d9203 lh tp,2(s11)
d4: 0042a823 sw tp,16(t0)
d8: 00002097 auipc ra,0x2
dc: f6c08093 addi ra,ra,-148 # 2044 <test_2_res>
e0: 00002d17 auipc s10,0x2
e4: f38d0d13 addi s10,s10,-200 # 2018 <test_data>
e8: 004d1283 lh t0,4(s10)
ec: 0050a023 sw t0,0(ra)
f0: 00002c97 auipc s9,0x2
f4: f28c8c93 addi s9,s9,-216 # 2018 <test_data>
f8: 000c9303 lh t1,0(s9)
fc: 0060a223 sw t1,4(ra)
100: 00002c17 auipc s8,0x2
104: f18c0c13 addi s8,s8,-232 # 2018 <test_data>
108: 000c1383 lh t2,0(s8)
10c: 0070a423 sw t2,8(ra)
110: 00002b97 auipc s7,0x2
114: f08b8b93 addi s7,s7,-248 # 2018 <test_data>
118: 000b9403 lh s0,0(s7)
11c: 0080a623 sw s0,12(ra)
120: 00002b17 auipc s6,0x2
124: ef8b0b13 addi s6,s6,-264 # 2018 <test_data>
128: ffeb1483 lh s1,-2(s6)
12c: 0090a823 sw s1,16(ra)
130: 00002097 auipc ra,0x2
134: f2808093 addi ra,ra,-216 # 2058 <test_3_res>
138: 00002a97 auipc s5,0x2
13c: ee0a8a93 addi s5,s5,-288 # 2018 <test_data>
140: 002a9503 lh a0,2(s5)
144: 00a0a023 sw a0,0(ra)
148: 00002a17 auipc s4,0x2
14c: ed0a0a13 addi s4,s4,-304 # 2018 <test_data>
150: ffca1583 lh a1,-4(s4)
154: 00b0a223 sw a1,4(ra)
158: 00002997 auipc s3,0x2
15c: ec098993 addi s3,s3,-320 # 2018 <test_data>
160: 00299603 lh a2,2(s3)
164: 00c0a423 sw a2,8(ra)
168: 00002917 auipc s2,0x2
16c: eb090913 addi s2,s2,-336 # 2018 <test_data>
170: 00491683 lh a3,4(s2)
174: 00d0a623 sw a3,12(ra)
178: 00002897 auipc a7,0x2
17c: ea088893 addi a7,a7,-352 # 2018 <test_data>
180: 00089703 lh a4,0(a7)
184: 00e0a823 sw a4,16(ra)
188: 00002117 auipc sp,0x2
18c: ee410113 addi sp,sp,-284 # 206c <test_4_res>
190: 00002817 auipc a6,0x2
194: e8880813 addi a6,a6,-376 # 2018 <test_data>
198: 00081783 lh a5,0(a6)
19c: 00f12023 sw a5,0(sp)
1a0: 00002797 auipc a5,0x2
1a4: e7878793 addi a5,a5,-392 # 2018 <test_data>
1a8: 00079803 lh a6,0(a5)
1ac: 01012223 sw a6,4(sp)
1b0: 00002717 auipc a4,0x2
1b4: e6870713 addi a4,a4,-408 # 2018 <test_data>
1b8: ffe71883 lh a7,-2(a4)
1bc: 01112423 sw a7,8(sp)
1c0: 00002697 auipc a3,0x2
1c4: e5868693 addi a3,a3,-424 # 2018 <test_data>
1c8: 00269903 lh s2,2(a3)
1cc: 01212623 sw s2,12(sp)
1d0: 00002617 auipc a2,0x2
1d4: e4860613 addi a2,a2,-440 # 2018 <test_data>
1d8: ffc61983 lh s3,-4(a2)
1dc: 01312823 sw s3,16(sp)
1e0: 00002097 auipc ra,0x2
1e4: ea008093 addi ra,ra,-352 # 2080 <test_5_res>
1e8: 00002597 auipc a1,0x2
1ec: e3058593 addi a1,a1,-464 # 2018 <test_data>
1f0: 00259a03 lh s4,2(a1)
1f4: 0140a023 sw s4,0(ra)
1f8: 00002517 auipc a0,0x2
1fc: e2050513 addi a0,a0,-480 # 2018 <test_data>
200: 00451a83 lh s5,4(a0)
204: 0150a223 sw s5,4(ra)
208: 00002497 auipc s1,0x2
20c: e1048493 addi s1,s1,-496 # 2018 <test_data>
210: 00049b03 lh s6,0(s1)
214: 0160a423 sw s6,8(ra)
218: 00002417 auipc s0,0x2
21c: e0040413 addi s0,s0,-512 # 2018 <test_data>
220: 00041b83 lh s7,0(s0)
224: 0170a623 sw s7,12(ra)
228: 00002397 auipc t2,0x2
22c: df038393 addi t2,t2,-528 # 2018 <test_data>
230: 00039c03 lh s8,0(t2)
234: 0180a823 sw s8,16(ra)
238: 00002097 auipc ra,0x2
23c: e5c08093 addi ra,ra,-420 # 2094 <test_6_res>
240: 00002317 auipc t1,0x2
244: dd830313 addi t1,t1,-552 # 2018 <test_data>
248: ffe31c83 lh s9,-2(t1)
24c: 0190a023 sw s9,0(ra)
250: 00002297 auipc t0,0x2
254: dc828293 addi t0,t0,-568 # 2018 <test_data>
258: 00229d03 lh s10,2(t0)
25c: 01a0a223 sw s10,4(ra)
260: 00002217 auipc tp,0x2
264: db820213 addi tp,tp,-584 # 2018 <test_data>
268: ffc21d83 lh s11,-4(tp) # fffffffc <_end+0xffffddf8>
26c: 01b0a423 sw s11,8(ra)
270: 00002197 auipc gp,0x2
274: da818193 addi gp,gp,-600 # 2018 <test_data>
278: 00219e03 lh t3,2(gp)
27c: 01c0a623 sw t3,12(ra)
280: 00002117 auipc sp,0x2
284: d9810113 addi sp,sp,-616 # 2018 <test_data>
288: 00411e83 lh t4,4(sp)
28c: 01d0a823 sw t4,16(ra)
290: 00002117 auipc sp,0x2
294: e1810113 addi sp,sp,-488 # 20a8 <test_7_res>
298: 00002097 auipc ra,0x2
29c: d8008093 addi ra,ra,-640 # 2018 <test_data>
2a0: 00009f03 lh t5,0(ra)
2a4: 01e12023 sw t5,0(sp)
2a8: 00002097 auipc ra,0x2
2ac: d7008093 addi ra,ra,-656 # 2018 <test_data>
2b0: 00009f83 lh t6,0(ra)
2b4: 01f12223 sw t6,4(sp)
2b8: 00002297 auipc t0,0x2
2bc: d7828293 addi t0,t0,-648 # 2030 <begin_signature>
2c0: 10000337 lui t1,0x10000
2c4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
2c8: 00532023 sw t0,0(t1)
2cc: 00002297 auipc t0,0x2
2d0: df428293 addi t0,t0,-524 # 20c0 <end_signature>
2d4: 10000337 lui t1,0x10000
2d8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
2dc: 00532023 sw t0,0(t1)
2e0: 00100293 li t0,1
2e4: 10000337 lui t1,0x10000
2e8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
2ec: 00532023 sw t0,0(t1)
2f0: 00000013 nop
2f4: 00100193 li gp,1
2f8: 00000073 ecall
000002fc <end_testcode>:
2fc: c0001073 unimp
300: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_data_start>:
2000: f222 fsw fs0,36(sp)
2002: 11f1 addi gp,gp,-4
2004: 44f4 lw a3,76(s1)
2006: f666f333 0xf666f333
200a: 55f5 li a1,-3
200c: 88f8 0x88f8
200e: 0aaaf777 0xaaaf777
2012: 9909 andi a0,a0,-30
2014: cc0c sw a1,24(s0)
2016: 0xeee0bbb
00002018 <test_data>:
2018: 0eee slli t4,t4,0x1b
201a: dd0d beqz a0,1f54 <fromhost+0xe54>
201c: 00f0 addi a2,sp,76
201e: 0fff 0xfff
2020: 5678 lw a4,108(a2)
2022: 1234 addi a3,sp,296
2024: def0 sw a2,124(a3)
2026: 9abc 0x9abc
2028: 3210 fld fa2,32(a2)
202a: 7654 flw fa3,44(a2)
202c: ba98 fsd fa4,48(a3)
202e: fedc fsw fa5,60(a3)
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
00002044 <test_2_res>:
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
00002058 <test_3_res>:
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
0000206c <test_4_res>:
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <test_5_res>:
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
2090: ffff 0xffff
2092: ffff 0xffff
00002094 <test_6_res>:
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_7_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: 0000 unimp
...
000020c0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,346 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LHU-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: fb028293 addi t0,t0,-80 # 2030 <begin_signature>
88: 00002f97 auipc t6,0x2
8c: f90f8f93 addi t6,t6,-112 # 2018 <test_data>
90: 000fd003 lhu zero,0(t6)
94: 0002a023 sw zero,0(t0)
98: 00002f17 auipc t5,0x2
9c: f80f0f13 addi t5,t5,-128 # 2018 <test_data>
a0: ffef5083 lhu ra,-2(t5)
a4: 0012a223 sw ra,4(t0)
a8: 00002e97 auipc t4,0x2
ac: f70e8e93 addi t4,t4,-144 # 2018 <test_data>
b0: 002ed103 lhu sp,2(t4)
b4: 0022a423 sw sp,8(t0)
b8: 00002e17 auipc t3,0x2
bc: f60e0e13 addi t3,t3,-160 # 2018 <test_data>
c0: ffce5183 lhu gp,-4(t3)
c4: 0032a623 sw gp,12(t0)
c8: 00002d97 auipc s11,0x2
cc: f50d8d93 addi s11,s11,-176 # 2018 <test_data>
d0: 002dd203 lhu tp,2(s11)
d4: 0042a823 sw tp,16(t0)
d8: 00002097 auipc ra,0x2
dc: f6c08093 addi ra,ra,-148 # 2044 <test_2_res>
e0: 00002d17 auipc s10,0x2
e4: f38d0d13 addi s10,s10,-200 # 2018 <test_data>
e8: 004d5283 lhu t0,4(s10)
ec: 0050a023 sw t0,0(ra)
f0: 00002c97 auipc s9,0x2
f4: f28c8c93 addi s9,s9,-216 # 2018 <test_data>
f8: 000cd303 lhu t1,0(s9)
fc: 0060a223 sw t1,4(ra)
100: 00002c17 auipc s8,0x2
104: f18c0c13 addi s8,s8,-232 # 2018 <test_data>
108: 000c5383 lhu t2,0(s8)
10c: 0070a423 sw t2,8(ra)
110: 00002b97 auipc s7,0x2
114: f08b8b93 addi s7,s7,-248 # 2018 <test_data>
118: 000bd403 lhu s0,0(s7)
11c: 0080a623 sw s0,12(ra)
120: 00002b17 auipc s6,0x2
124: ef8b0b13 addi s6,s6,-264 # 2018 <test_data>
128: ffeb5483 lhu s1,-2(s6)
12c: 0090a823 sw s1,16(ra)
130: 00002097 auipc ra,0x2
134: f2808093 addi ra,ra,-216 # 2058 <test_3_res>
138: 00002a97 auipc s5,0x2
13c: ee0a8a93 addi s5,s5,-288 # 2018 <test_data>
140: 002ad503 lhu a0,2(s5)
144: 00a0a023 sw a0,0(ra)
148: 00002a17 auipc s4,0x2
14c: ed0a0a13 addi s4,s4,-304 # 2018 <test_data>
150: ffca5583 lhu a1,-4(s4)
154: 00b0a223 sw a1,4(ra)
158: 00002997 auipc s3,0x2
15c: ec098993 addi s3,s3,-320 # 2018 <test_data>
160: 0029d603 lhu a2,2(s3)
164: 00c0a423 sw a2,8(ra)
168: 00002917 auipc s2,0x2
16c: eb090913 addi s2,s2,-336 # 2018 <test_data>
170: 00495683 lhu a3,4(s2)
174: 00d0a623 sw a3,12(ra)
178: 00002897 auipc a7,0x2
17c: ea088893 addi a7,a7,-352 # 2018 <test_data>
180: 0008d703 lhu a4,0(a7)
184: 00e0a823 sw a4,16(ra)
188: 00002117 auipc sp,0x2
18c: ee410113 addi sp,sp,-284 # 206c <test_4_res>
190: 00002817 auipc a6,0x2
194: e8880813 addi a6,a6,-376 # 2018 <test_data>
198: 00085783 lhu a5,0(a6)
19c: 00f12023 sw a5,0(sp)
1a0: 00002797 auipc a5,0x2
1a4: e7878793 addi a5,a5,-392 # 2018 <test_data>
1a8: 0007d803 lhu a6,0(a5)
1ac: 01012223 sw a6,4(sp)
1b0: 00002717 auipc a4,0x2
1b4: e6870713 addi a4,a4,-408 # 2018 <test_data>
1b8: ffe75883 lhu a7,-2(a4)
1bc: 01112423 sw a7,8(sp)
1c0: 00002697 auipc a3,0x2
1c4: e5868693 addi a3,a3,-424 # 2018 <test_data>
1c8: 0026d903 lhu s2,2(a3)
1cc: 01212623 sw s2,12(sp)
1d0: 00002617 auipc a2,0x2
1d4: e4860613 addi a2,a2,-440 # 2018 <test_data>
1d8: ffc65983 lhu s3,-4(a2)
1dc: 01312823 sw s3,16(sp)
1e0: 00002097 auipc ra,0x2
1e4: ea008093 addi ra,ra,-352 # 2080 <test_5_res>
1e8: 00002597 auipc a1,0x2
1ec: e3058593 addi a1,a1,-464 # 2018 <test_data>
1f0: 0025da03 lhu s4,2(a1)
1f4: 0140a023 sw s4,0(ra)
1f8: 00002517 auipc a0,0x2
1fc: e2050513 addi a0,a0,-480 # 2018 <test_data>
200: 00455a83 lhu s5,4(a0)
204: 0150a223 sw s5,4(ra)
208: 00002497 auipc s1,0x2
20c: e1048493 addi s1,s1,-496 # 2018 <test_data>
210: 0004db03 lhu s6,0(s1)
214: 0160a423 sw s6,8(ra)
218: 00002417 auipc s0,0x2
21c: e0040413 addi s0,s0,-512 # 2018 <test_data>
220: 00045b83 lhu s7,0(s0)
224: 0170a623 sw s7,12(ra)
228: 00002397 auipc t2,0x2
22c: df038393 addi t2,t2,-528 # 2018 <test_data>
230: 0003dc03 lhu s8,0(t2)
234: 0180a823 sw s8,16(ra)
238: 00002097 auipc ra,0x2
23c: e5c08093 addi ra,ra,-420 # 2094 <test_6_res>
240: 00002317 auipc t1,0x2
244: dd830313 addi t1,t1,-552 # 2018 <test_data>
248: ffe35c83 lhu s9,-2(t1)
24c: 0190a023 sw s9,0(ra)
250: 00002297 auipc t0,0x2
254: dc828293 addi t0,t0,-568 # 2018 <test_data>
258: 0022dd03 lhu s10,2(t0)
25c: 01a0a223 sw s10,4(ra)
260: 00002217 auipc tp,0x2
264: db820213 addi tp,tp,-584 # 2018 <test_data>
268: ffc25d83 lhu s11,-4(tp) # fffffffc <_end+0xffffddf8>
26c: 01b0a423 sw s11,8(ra)
270: 00002197 auipc gp,0x2
274: da818193 addi gp,gp,-600 # 2018 <test_data>
278: 0021de03 lhu t3,2(gp)
27c: 01c0a623 sw t3,12(ra)
280: 00002117 auipc sp,0x2
284: d9810113 addi sp,sp,-616 # 2018 <test_data>
288: 00415e83 lhu t4,4(sp)
28c: 01d0a823 sw t4,16(ra)
290: 00002117 auipc sp,0x2
294: e1810113 addi sp,sp,-488 # 20a8 <test_7_res>
298: 00002097 auipc ra,0x2
29c: d8008093 addi ra,ra,-640 # 2018 <test_data>
2a0: 0000df03 lhu t5,0(ra)
2a4: 01e12023 sw t5,0(sp)
2a8: 00002097 auipc ra,0x2
2ac: d7008093 addi ra,ra,-656 # 2018 <test_data>
2b0: 0000df83 lhu t6,0(ra)
2b4: 01f12223 sw t6,4(sp)
2b8: 00002297 auipc t0,0x2
2bc: d7828293 addi t0,t0,-648 # 2030 <begin_signature>
2c0: 10000337 lui t1,0x10000
2c4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
2c8: 00532023 sw t0,0(t1)
2cc: 00002297 auipc t0,0x2
2d0: df428293 addi t0,t0,-524 # 20c0 <end_signature>
2d4: 10000337 lui t1,0x10000
2d8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
2dc: 00532023 sw t0,0(t1)
2e0: 00100293 li t0,1
2e4: 10000337 lui t1,0x10000
2e8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
2ec: 00532023 sw t0,0(t1)
2f0: 00000013 nop
2f4: 00100193 li gp,1
2f8: 00000073 ecall
000002fc <end_testcode>:
2fc: c0001073 unimp
300: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_data_start>:
2000: f222 fsw fs0,36(sp)
2002: 11f1 addi gp,gp,-4
2004: 44f4 lw a3,76(s1)
2006: f666f333 0xf666f333
200a: 55f5 li a1,-3
200c: 88f8 0x88f8
200e: 0aaaf777 0xaaaf777
2012: 9909 andi a0,a0,-30
2014: cc0c sw a1,24(s0)
2016: 0xeee0bbb
00002018 <test_data>:
2018: 0eee slli t4,t4,0x1b
201a: dd0d beqz a0,1f54 <fromhost+0xe54>
201c: 00f0 addi a2,sp,76
201e: 0fff 0xfff
2020: 5678 lw a4,108(a2)
2022: 1234 addi a3,sp,296
2024: def0 sw a2,124(a3)
2026: 9abc 0x9abc
2028: 3210 fld fa2,32(a2)
202a: 7654 flw fa3,44(a2)
202c: ba98 fsd fa4,48(a3)
202e: fedc fsw fa5,60(a3)
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
00002044 <test_2_res>:
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
00002058 <test_3_res>:
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
0000206c <test_4_res>:
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <test_5_res>:
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
2090: ffff 0xffff
2092: ffff 0xffff
00002094 <test_6_res>:
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_7_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: 0000 unimp
...
000020c0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,256 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LUI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: 00000037 lui zero,0x0
8c: 0002a023 sw zero,0(t0)
90: 000000b7 lui ra,0x0
94: 0012a223 sw ra,4(t0)
98: 007ff137 lui sp,0x7ff
9c: 0022a423 sw sp,8(t0)
a0: 000011b7 lui gp,0x1
a4: 0032a623 sw gp,12(t0)
a8: 01234237 lui tp,0x1234
ac: 0042a823 sw tp,16(t0)
b0: 00002097 auipc ra,0x2
b4: f6408093 addi ra,ra,-156 # 2014 <test_2_res>
b8: 800002b7 lui t0,0x80000
bc: 0050a023 sw t0,0(ra)
c0: 01234337 lui t1,0x1234
c4: 0060a223 sw t1,4(ra)
c8: fffff3b7 lui t2,0xfffff
cc: 0070a423 sw t2,8(ra)
d0: 00001437 lui s0,0x1
d4: 0080a623 sw s0,12(ra)
d8: 7ffff4b7 lui s1,0x7ffff
dc: 0090a823 sw s1,16(ra)
e0: 00002097 auipc ra,0x2
e4: f4808093 addi ra,ra,-184 # 2028 <test_3_res>
e8: 54321537 lui a0,0x54321
ec: 00a0a023 sw a0,0(ra)
f0: 008005b7 lui a1,0x800
f4: 00b0a223 sw a1,4(ra)
f8: 00000637 lui a2,0x0
fc: 00c0a423 sw a2,8(ra)
100: 007ff6b7 lui a3,0x7ff
104: 00d0a623 sw a3,12(ra)
108: 00000737 lui a4,0x0
10c: 00e0a823 sw a4,16(ra)
110: 00002117 auipc sp,0x2
114: f2c10113 addi sp,sp,-212 # 203c <test_4_res>
118: 000017b7 lui a5,0x1
11c: 00f12023 sw a5,0(sp)
120: 00000837 lui a6,0x0
124: 01012223 sw a6,4(sp)
128: 000008b7 lui a7,0x0
12c: 01112423 sw a7,8(sp)
130: 007ff937 lui s2,0x7ff
134: 01212623 sw s2,12(sp)
138: 000019b7 lui s3,0x1
13c: 01312823 sw s3,16(sp)
140: 00002097 auipc ra,0x2
144: f1008093 addi ra,ra,-240 # 2050 <test_5_res>
148: 01234a37 lui s4,0x1234
14c: 0140a023 sw s4,0(ra)
150: 80000ab7 lui s5,0x80000
154: 0150a223 sw s5,4(ra)
158: 01234b37 lui s6,0x1234
15c: 0160a423 sw s6,8(ra)
160: fffffbb7 lui s7,0xfffff
164: 0170a623 sw s7,12(ra)
168: 00001c37 lui s8,0x1
16c: 0180a823 sw s8,16(ra)
170: 00002097 auipc ra,0x2
174: ef408093 addi ra,ra,-268 # 2064 <test_6_res>
178: 7ffffcb7 lui s9,0x7ffff
17c: 0190a023 sw s9,0(ra)
180: 54321d37 lui s10,0x54321
184: 01a0a223 sw s10,4(ra)
188: 00800db7 lui s11,0x800
18c: 01b0a423 sw s11,8(ra)
190: 00000e37 lui t3,0x0
194: 01c0a623 sw t3,12(ra)
198: 007ffeb7 lui t4,0x7ff
19c: 01d0a823 sw t4,16(ra)
1a0: 00002117 auipc sp,0x2
1a4: ed810113 addi sp,sp,-296 # 2078 <test_7_res>
1a8: 00000f37 lui t5,0x0
1ac: 01e12023 sw t5,0(sp)
1b0: 00001fb7 lui t6,0x1
1b4: 01f12223 sw t6,4(sp)
1b8: 00002297 auipc t0,0x2
1bc: e4828293 addi t0,t0,-440 # 2000 <begin_signature>
1c0: 10000337 lui t1,0x10000
1c4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
1c8: 00532023 sw t0,0(t1)
1cc: 00002297 auipc t0,0x2
1d0: ec428293 addi t0,t0,-316 # 2090 <end_signature>
1d4: 10000337 lui t1,0x10000
1d8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
1dc: 00532023 sw t0,0(t1)
1e0: 00100293 li t0,1
1e4: 10000337 lui t1,0x10000
1e8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
1ec: 00532023 sw t0,0(t1)
1f0: 00000013 nop
1f4: 00100193 li gp,1
1f8: 00000073 ecall
000001fc <end_testcode>:
1fc: c0001073 unimp
200: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,346 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-LW-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: fb028293 addi t0,t0,-80 # 2030 <begin_signature>
88: 00002f97 auipc t6,0x2
8c: f90f8f93 addi t6,t6,-112 # 2018 <test_data>
90: 000fa003 lw zero,0(t6)
94: 0002a023 sw zero,0(t0)
98: 00002f17 auipc t5,0x2
9c: f80f0f13 addi t5,t5,-128 # 2018 <test_data>
a0: 000f2083 lw ra,0(t5)
a4: 0012a223 sw ra,4(t0)
a8: 00002e97 auipc t4,0x2
ac: f70e8e93 addi t4,t4,-144 # 2018 <test_data>
b0: 000ea103 lw sp,0(t4)
b4: 0022a423 sw sp,8(t0)
b8: 00002e17 auipc t3,0x2
bc: f60e0e13 addi t3,t3,-160 # 2018 <test_data>
c0: ffce2183 lw gp,-4(t3)
c4: 0032a623 sw gp,12(t0)
c8: 00002d97 auipc s11,0x2
cc: f50d8d93 addi s11,s11,-176 # 2018 <test_data>
d0: 000da203 lw tp,0(s11)
d4: 0042a823 sw tp,16(t0)
d8: 00002097 auipc ra,0x2
dc: f6c08093 addi ra,ra,-148 # 2044 <test_2_res>
e0: 00002d17 auipc s10,0x2
e4: f38d0d13 addi s10,s10,-200 # 2018 <test_data>
e8: 004d2283 lw t0,4(s10)
ec: 0050a023 sw t0,0(ra)
f0: 00002c97 auipc s9,0x2
f4: f28c8c93 addi s9,s9,-216 # 2018 <test_data>
f8: 000ca303 lw t1,0(s9)
fc: 0060a223 sw t1,4(ra)
100: 00002c17 auipc s8,0x2
104: f18c0c13 addi s8,s8,-232 # 2018 <test_data>
108: 000c2383 lw t2,0(s8)
10c: 0070a423 sw t2,8(ra)
110: 00002b97 auipc s7,0x2
114: f08b8b93 addi s7,s7,-248 # 2018 <test_data>
118: 000ba403 lw s0,0(s7)
11c: 0080a623 sw s0,12(ra)
120: 00002b17 auipc s6,0x2
124: ef8b0b13 addi s6,s6,-264 # 2018 <test_data>
128: 000b2483 lw s1,0(s6)
12c: 0090a823 sw s1,16(ra)
130: 00002097 auipc ra,0x2
134: f2808093 addi ra,ra,-216 # 2058 <test_3_res>
138: 00002a97 auipc s5,0x2
13c: ee0a8a93 addi s5,s5,-288 # 2018 <test_data>
140: 000aa503 lw a0,0(s5)
144: 00a0a023 sw a0,0(ra)
148: 00002a17 auipc s4,0x2
14c: ed0a0a13 addi s4,s4,-304 # 2018 <test_data>
150: ffca2583 lw a1,-4(s4)
154: 00b0a223 sw a1,4(ra)
158: 00002997 auipc s3,0x2
15c: ec098993 addi s3,s3,-320 # 2018 <test_data>
160: 0009a603 lw a2,0(s3)
164: 00c0a423 sw a2,8(ra)
168: 00002917 auipc s2,0x2
16c: eb090913 addi s2,s2,-336 # 2018 <test_data>
170: 00492683 lw a3,4(s2)
174: 00d0a623 sw a3,12(ra)
178: 00002897 auipc a7,0x2
17c: ea088893 addi a7,a7,-352 # 2018 <test_data>
180: 0008a703 lw a4,0(a7)
184: 00e0a823 sw a4,16(ra)
188: 00002117 auipc sp,0x2
18c: ee410113 addi sp,sp,-284 # 206c <test_4_res>
190: 00002817 auipc a6,0x2
194: e8880813 addi a6,a6,-376 # 2018 <test_data>
198: 00082783 lw a5,0(a6)
19c: 00f12023 sw a5,0(sp)
1a0: 00002797 auipc a5,0x2
1a4: e7878793 addi a5,a5,-392 # 2018 <test_data>
1a8: 0007a803 lw a6,0(a5)
1ac: 01012223 sw a6,4(sp)
1b0: 00002717 auipc a4,0x2
1b4: e6870713 addi a4,a4,-408 # 2018 <test_data>
1b8: 00072883 lw a7,0(a4)
1bc: 01112423 sw a7,8(sp)
1c0: 00002697 auipc a3,0x2
1c4: e5868693 addi a3,a3,-424 # 2018 <test_data>
1c8: 0006a903 lw s2,0(a3)
1cc: 01212623 sw s2,12(sp)
1d0: 00002617 auipc a2,0x2
1d4: e4860613 addi a2,a2,-440 # 2018 <test_data>
1d8: ffc62983 lw s3,-4(a2)
1dc: 01312823 sw s3,16(sp)
1e0: 00002097 auipc ra,0x2
1e4: ea008093 addi ra,ra,-352 # 2080 <test_5_res>
1e8: 00002597 auipc a1,0x2
1ec: e3058593 addi a1,a1,-464 # 2018 <test_data>
1f0: 0005aa03 lw s4,0(a1)
1f4: 0140a023 sw s4,0(ra)
1f8: 00002517 auipc a0,0x2
1fc: e2050513 addi a0,a0,-480 # 2018 <test_data>
200: 00452a83 lw s5,4(a0)
204: 0150a223 sw s5,4(ra)
208: 00002497 auipc s1,0x2
20c: e1048493 addi s1,s1,-496 # 2018 <test_data>
210: 0004ab03 lw s6,0(s1)
214: 0160a423 sw s6,8(ra)
218: 00002417 auipc s0,0x2
21c: e0040413 addi s0,s0,-512 # 2018 <test_data>
220: 00042b83 lw s7,0(s0)
224: 0170a623 sw s7,12(ra)
228: 00002397 auipc t2,0x2
22c: df038393 addi t2,t2,-528 # 2018 <test_data>
230: 0003ac03 lw s8,0(t2)
234: 0180a823 sw s8,16(ra)
238: 00002097 auipc ra,0x2
23c: e5c08093 addi ra,ra,-420 # 2094 <test_6_res>
240: 00002317 auipc t1,0x2
244: dd830313 addi t1,t1,-552 # 2018 <test_data>
248: 00032c83 lw s9,0(t1)
24c: 0190a023 sw s9,0(ra)
250: 00002297 auipc t0,0x2
254: dc828293 addi t0,t0,-568 # 2018 <test_data>
258: 0002ad03 lw s10,0(t0)
25c: 01a0a223 sw s10,4(ra)
260: 00002217 auipc tp,0x2
264: db820213 addi tp,tp,-584 # 2018 <test_data>
268: ffc22d83 lw s11,-4(tp) # fffffffc <_end+0xffffddf8>
26c: 01b0a423 sw s11,8(ra)
270: 00002197 auipc gp,0x2
274: da818193 addi gp,gp,-600 # 2018 <test_data>
278: 0001ae03 lw t3,0(gp)
27c: 01c0a623 sw t3,12(ra)
280: 00002117 auipc sp,0x2
284: d9810113 addi sp,sp,-616 # 2018 <test_data>
288: 00412e83 lw t4,4(sp)
28c: 01d0a823 sw t4,16(ra)
290: 00002117 auipc sp,0x2
294: e1810113 addi sp,sp,-488 # 20a8 <test_7_res>
298: 00002097 auipc ra,0x2
29c: d8008093 addi ra,ra,-640 # 2018 <test_data>
2a0: 0000af03 lw t5,0(ra)
2a4: 01e12023 sw t5,0(sp)
2a8: 00002097 auipc ra,0x2
2ac: d7008093 addi ra,ra,-656 # 2018 <test_data>
2b0: 0000af83 lw t6,0(ra)
2b4: 01f12223 sw t6,4(sp)
2b8: 00002297 auipc t0,0x2
2bc: d7828293 addi t0,t0,-648 # 2030 <begin_signature>
2c0: 10000337 lui t1,0x10000
2c4: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
2c8: 00532023 sw t0,0(t1)
2cc: 00002297 auipc t0,0x2
2d0: df428293 addi t0,t0,-524 # 20c0 <end_signature>
2d4: 10000337 lui t1,0x10000
2d8: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
2dc: 00532023 sw t0,0(t1)
2e0: 00100293 li t0,1
2e4: 10000337 lui t1,0x10000
2e8: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
2ec: 00532023 sw t0,0(t1)
2f0: 00000013 nop
2f4: 00100193 li gp,1
2f8: 00000073 ecall
000002fc <end_testcode>:
2fc: c0001073 unimp
300: 0000 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_data_start>:
2000: f222 fsw fs0,36(sp)
2002: 11f1 addi gp,gp,-4
2004: 44f4 lw a3,76(s1)
2006: f666f333 0xf666f333
200a: 55f5 li a1,-3
200c: 88f8 0x88f8
200e: 0aaaf777 0xaaaf777
2012: 9909 andi a0,a0,-30
2014: cc0c sw a1,24(s0)
2016: 0xeee0bbb
00002018 <test_data>:
2018: 0eee slli t4,t4,0x1b
201a: dd0d beqz a0,1f54 <fromhost+0xe54>
201c: 00f0 addi a2,sp,76
201e: 0fff 0xfff
2020: 5678 lw a4,108(a2)
2022: 1234 addi a3,sp,296
2024: def0 sw a2,124(a3)
2026: 9abc 0x9abc
2028: 3210 fld fa2,32(a2)
202a: 7654 flw fa3,44(a2)
202c: ba98 fsd fa4,48(a3)
202e: fedc fsw fa5,60(a3)
00002030 <begin_signature>:
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
00002044 <test_2_res>:
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
00002058 <test_3_res>:
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
0000206c <test_4_res>:
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <test_5_res>:
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
2090: ffff 0xffff
2092: ffff 0xffff
00002094 <test_6_res>:
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
000020a8 <test_7_res>:
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: 0000 unimp
...
000020c0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,326 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-MISALIGN_JMP-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00000097 auipc ra,0x0
84: 20808093 addi ra,ra,520 # 288 <_trap_handler>
88: 30509ff3 csrrw t6,mtvec,ra
8c: 30127073 csrci misa,4
90: 00002097 auipc ra,0x2
94: f7008093 addi ra,ra,-144 # 2000 <begin_signature>
98: 11111137 lui sp,0x11111
9c: 11110113 addi sp,sp,273 # 11111111 <_end+0x1110ef0d>
a0: 00a0006f j aa <begin_testcode+0x2a>
a4: 00000113 li sp,0
a8: 00002097 auipc ra,0x2
ac: f6408093 addi ra,ra,-156 # 200c <test_A2_res>
b0: 22222137 lui sp,0x22222
b4: 22210113 addi sp,sp,546 # 22222222 <_end+0x2222001e>
b8: 00000217 auipc tp,0x0
bc: 01120213 addi tp,tp,17 # c9 <begin_testcode+0x49>
c0: 00020067 jr tp # 0 <_start>
c4: 00000113 li sp,0
c8: 0020a023 sw sp,0(ra)
cc: 00408093 addi ra,ra,4
d0: 33333137 lui sp,0x33333
d4: 33310113 addi sp,sp,819 # 33333333 <_end+0x3333112f>
d8: 00000217 auipc tp,0x0
dc: 01020213 addi tp,tp,16 # e8 <begin_testcode+0x68>
e0: 00120067 jr 1(tp) # 0 <_start>
e4: 00000113 li sp,0
e8: 0020a023 sw sp,0(ra)
ec: 00408093 addi ra,ra,4
f0: 44444137 lui sp,0x44444
f4: 44410113 addi sp,sp,1092 # 44444444 <_end+0x44442240>
f8: 00000217 auipc tp,0x0
fc: 01420213 addi tp,tp,20 # 10c <begin_testcode+0x8c>
100: ffd20067 jr -3(tp) # 0 <_start>
104: 00000113 li sp,0
108: 0020a023 sw sp,0(ra)
10c: 00408093 addi ra,ra,4
110: 00002097 auipc ra,0x2
114: f0808093 addi ra,ra,-248 # 2018 <test_A3_res_exc>
118: 55555137 lui sp,0x55555
11c: 55510113 addi sp,sp,1365 # 55555555 <_end+0x55553351>
120: 00000217 auipc tp,0x0
124: 01220213 addi tp,tp,18 # 132 <begin_testcode+0xb2>
128: 00020067 jr tp # 0 <_start>
12c: 00000113 li sp,0
130: 66666137 lui sp,0x66666
134: 66610113 addi sp,sp,1638 # 66666666 <_end+0x66664462>
138: 00000217 auipc tp,0x0
13c: 01320213 addi tp,tp,19 # 14b <begin_testcode+0xcb>
140: 00020067 jr tp # 0 <_start>
144: 00000113 li sp,0
148: 77777137 lui sp,0x77777
14c: 77710113 addi sp,sp,1911 # 77777777 <_end+0x77775573>
150: 00000217 auipc tp,0x0
154: 01020213 addi tp,tp,16 # 160 <begin_testcode+0xe0>
158: 00220067 jr 2(tp) # 0 <_start>
15c: 00000113 li sp,0
160: 88889137 lui sp,0x88889
164: 88810113 addi sp,sp,-1912 # 88888888 <_end+0x88886684>
168: 00000217 auipc tp,0x0
16c: 01020213 addi tp,tp,16 # 178 <begin_testcode+0xf8>
170: 00320067 jr 3(tp) # 0 <_start>
174: 00000113 li sp,0
178: 00002097 auipc ra,0x2
17c: ed008093 addi ra,ra,-304 # 2048 <test_B1_res_exc>
180: 00500293 li t0,5
184: 00600313 li t1,6
188: 00628763 beq t0,t1,196 <begin_testcode+0x116>
18c: 9999a137 lui sp,0x9999a
190: 99910113 addi sp,sp,-1639 # 99999999 <_end+0x99997795>
194: 00000013 nop
198: 00000013 nop
19c: 00528563 beq t0,t0,1a6 <begin_testcode+0x126>
1a0: 00000113 li sp,0
1a4: 00002097 auipc ra,0x2
1a8: eb008093 addi ra,ra,-336 # 2054 <test_B2_res_exc>
1ac: 00500293 li t0,5
1b0: 00600313 li t1,6
1b4: 00529763 bne t0,t0,1c2 <begin_testcode+0x142>
1b8: aaaab137 lui sp,0xaaaab
1bc: aaa10113 addi sp,sp,-1366 # aaaaaaaa <_end+0xaaaa88a6>
1c0: 00000013 nop
1c4: 00000013 nop
1c8: 00629563 bne t0,t1,1d2 <begin_testcode+0x152>
1cc: 00000113 li sp,0
1d0: 00002097 auipc ra,0x2
1d4: e9008093 addi ra,ra,-368 # 2060 <test_B3_res_exc>
1d8: 00500293 li t0,5
1dc: 00600313 li t1,6
1e0: 00534763 blt t1,t0,1ee <begin_testcode+0x16e>
1e4: bbbbc137 lui sp,0xbbbbc
1e8: bbb10113 addi sp,sp,-1093 # bbbbbbbb <_end+0xbbbb99b7>
1ec: 00000013 nop
1f0: 00000013 nop
1f4: 0062c563 blt t0,t1,1fe <begin_testcode+0x17e>
1f8: 00000113 li sp,0
1fc: 00002097 auipc ra,0x2
200: e7008093 addi ra,ra,-400 # 206c <test_B4_res_exc>
204: 00500293 li t0,5
208: 00600313 li t1,6
20c: 00536763 bltu t1,t0,21a <begin_testcode+0x19a>
210: ccccd137 lui sp,0xccccd
214: ccc10113 addi sp,sp,-820 # cccccccc <_end+0xccccaac8>
218: 00000013 nop
21c: 00000013 nop
220: 0062e563 bltu t0,t1,22a <begin_testcode+0x1aa>
224: 00000113 li sp,0
228: 00002097 auipc ra,0x2
22c: e5008093 addi ra,ra,-432 # 2078 <test_B5_res_exc>
230: 00500293 li t0,5
234: 00600313 li t1,6
238: 0062d763 bge t0,t1,246 <begin_testcode+0x1c6>
23c: dddde137 lui sp,0xdddde
240: ddd10113 addi sp,sp,-547 # dddddddd <_end+0xddddbbd9>
244: 00000013 nop
248: 00000013 nop
24c: 00535563 bge t1,t0,256 <begin_testcode+0x1d6>
250: 00000113 li sp,0
254: 00002097 auipc ra,0x2
258: e3008093 addi ra,ra,-464 # 2084 <test_B6_res_exc>
25c: 00500293 li t0,5
260: 00600313 li t1,6
264: 0062f763 bgeu t0,t1,272 <begin_testcode+0x1f2>
268: eeeef137 lui sp,0xeeeef
26c: eee10113 addi sp,sp,-274 # eeeeeeee <_end+0xeeeeccea>
270: 00000013 nop
274: 00000013 nop
278: 00537563 bgeu t1,t0,282 <begin_testcode+0x202>
27c: 00000113 li sp,0
280: 305f9073 csrw mtvec,t6
284: 0300006f j 2b4 <test_end>
00000288 <_trap_handler>:
288: 34302f73 csrr t5,mtval
28c: ffef0f13 addi t5,t5,-2
290: 341f1073 csrw mepc,t5
294: 34302f73 csrr t5,mtval
298: 003f7f13 andi t5,t5,3
29c: 01e0a023 sw t5,0(ra)
2a0: 34202f73 csrr t5,mcause
2a4: 01e0a223 sw t5,4(ra)
2a8: 0020a423 sw sp,8(ra)
2ac: 00c08093 addi ra,ra,12
2b0: 30200073 mret
000002b4 <test_end>:
2b4: 00002297 auipc t0,0x2
2b8: d4c28293 addi t0,t0,-692 # 2000 <begin_signature>
2bc: 10000337 lui t1,0x10000
2c0: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
2c4: 00532023 sw t0,0(t1)
2c8: 00002297 auipc t0,0x2
2cc: dc828293 addi t0,t0,-568 # 2090 <end_signature>
2d0: 10000337 lui t1,0x10000
2d4: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
2d8: 00532023 sw t0,0(t1)
2dc: 00100293 li t0,1
2e0: 10000337 lui t1,0x10000
2e4: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
2e8: 00532023 sw t0,0(t1)
2ec: 00000013 nop
2f0: 00100193 li gp,1
2f4: 00000073 ecall
000002f8 <end_testcode>:
2f8: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
0000200c <test_A2_res>:
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
00002018 <test_A3_res_exc>:
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
00002048 <test_B1_res_exc>:
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
00002054 <test_B2_res_exc>:
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
00002060 <test_B3_res_exc>:
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
0000206c <test_B4_res_exc>:
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_B5_res_exc>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
00002084 <test_B6_res_exc>:
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,299 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-MISALIGN_LDST-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00000097 auipc ra,0x0
84: 14408093 addi ra,ra,324 # 1c4 <_trap_handler>
88: 30509ff3 csrrw t6,mtvec,ra
8c: 00002197 auipc gp,0x2
90: f7418193 addi gp,gp,-140 # 2000 <test_A1_data>
94: 00002117 auipc sp,0x2
98: f7c10113 addi sp,sp,-132 # 2010 <begin_signature>
9c: 00002097 auipc ra,0x2
a0: f8408093 addi ra,ra,-124 # 2020 <test_A1_res_exc>
a4: 00500293 li t0,5
a8: 00600313 li t1,6
ac: 0001a203 lw tp,0(gp)
b0: 00412023 sw tp,0(sp)
b4: 0011a203 lw tp,1(gp)
b8: 00412223 sw tp,4(sp)
bc: 0021a203 lw tp,2(gp)
c0: 00412423 sw tp,8(sp)
c4: 0031a203 lw tp,3(gp)
c8: 00412623 sw tp,12(sp)
cc: 00002197 auipc gp,0x2
d0: f3818193 addi gp,gp,-200 # 2004 <test_A2_data>
d4: 00002117 auipc sp,0x2
d8: f6410113 addi sp,sp,-156 # 2038 <test_A2_res>
dc: 00002097 auipc ra,0x2
e0: f7c08093 addi ra,ra,-132 # 2058 <test_A2_res_exc>
e4: 00500293 li t0,5
e8: 00600313 li t1,6
ec: 00019203 lh tp,0(gp)
f0: 00412023 sw tp,0(sp)
f4: 00119203 lh tp,1(gp)
f8: 00412223 sw tp,4(sp)
fc: 00219203 lh tp,2(gp)
100: 00412423 sw tp,8(sp)
104: 00319203 lh tp,3(gp)
108: 00412623 sw tp,12(sp)
10c: 0001d203 lhu tp,0(gp)
110: 00412823 sw tp,16(sp)
114: 0011d203 lhu tp,1(gp)
118: 00412a23 sw tp,20(sp)
11c: 0021d203 lhu tp,2(gp)
120: 00412c23 sw tp,24(sp)
124: 0031d203 lhu tp,3(gp)
128: 00412e23 sw tp,28(sp)
12c: 00002117 auipc sp,0x2
130: f4c10113 addi sp,sp,-180 # 2078 <test_B1_res>
134: 00002097 auipc ra,0x2
138: f5408093 addi ra,ra,-172 # 2088 <test_B1_res_exc>
13c: 00000313 li t1,0
140: 9999a2b7 lui t0,0x9999a
144: 99928293 addi t0,t0,-1639 # 99999999 <_end+0x99997795>
148: 00512023 sw t0,0(sp)
14c: 00512223 sw t0,4(sp)
150: 00512423 sw t0,8(sp)
154: 00512623 sw t0,12(sp)
158: 00612023 sw t1,0(sp)
15c: 00410113 addi sp,sp,4
160: 006120a3 sw t1,1(sp)
164: 00410113 addi sp,sp,4
168: 00612123 sw t1,2(sp)
16c: 00410113 addi sp,sp,4
170: 006121a3 sw t1,3(sp)
174: 00002117 auipc sp,0x2
178: f2c10113 addi sp,sp,-212 # 20a0 <test_B2_res>
17c: 00002097 auipc ra,0x2
180: f3408093 addi ra,ra,-204 # 20b0 <test_B2_res_exc>
184: 00000313 li t1,0
188: 9999a2b7 lui t0,0x9999a
18c: 99928293 addi t0,t0,-1639 # 99999999 <_end+0x99997795>
190: 00512023 sw t0,0(sp)
194: 00512223 sw t0,4(sp)
198: 00512423 sw t0,8(sp)
19c: 00512623 sw t0,12(sp)
1a0: 00611023 sh t1,0(sp)
1a4: 00410113 addi sp,sp,4
1a8: 006110a3 sh t1,1(sp)
1ac: 00410113 addi sp,sp,4
1b0: 00611123 sh t1,2(sp)
1b4: 00410113 addi sp,sp,4
1b8: 006111a3 sh t1,3(sp)
1bc: 305f9073 csrw mtvec,t6
1c0: 02c0006f j 1ec <test_end>
000001c4 <_trap_handler>:
1c4: 34102f73 csrr t5,mepc
1c8: 004f0f13 addi t5,t5,4
1cc: 341f1073 csrw mepc,t5
1d0: 34302f73 csrr t5,mtval
1d4: 003f7f13 andi t5,t5,3
1d8: 01e0a023 sw t5,0(ra)
1dc: 34202f73 csrr t5,mcause
1e0: 01e0a223 sw t5,4(ra)
1e4: 00808093 addi ra,ra,8
1e8: 30200073 mret
000001ec <test_end>:
1ec: 00002297 auipc t0,0x2
1f0: e2428293 addi t0,t0,-476 # 2010 <begin_signature>
1f4: 10000337 lui t1,0x10000
1f8: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
1fc: 00532023 sw t0,0(t1)
200: 00002297 auipc t0,0x2
204: ec028293 addi t0,t0,-320 # 20c0 <end_signature>
208: 10000337 lui t1,0x10000
20c: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
210: 00532023 sw t0,0(t1)
214: 00100293 li t0,1
218: 10000337 lui t1,0x10000
21c: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
220: 00532023 sw t0,0(t1)
224: 00000013 nop
228: 00100193 li gp,1
22c: 00000073 ecall
00000230 <end_testcode>:
230: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <test_A1_data>:
2000: b1c1 j 1cc0 <fromhost+0xbc0>
2002: 91a1 srli a1,a1,0x28
00002004 <test_A2_data>:
2004: f202 fsw ft0,36(sp)
2006: d2e2 sw s8,100(sp)
...
00002010 <begin_signature>:
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
00002020 <test_A1_res_exc>:
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
00002038 <test_A2_res>:
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
00002058 <test_A2_res_exc>:
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_B1_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
00002088 <test_B1_res_exc>:
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
2090: ffff 0xffff
2092: ffff 0xffff
2094: ffff 0xffff
2096: ffff 0xffff
2098: ffff 0xffff
209a: ffff 0xffff
209c: ffff 0xffff
209e: ffff 0xffff
000020a0 <test_B2_res>:
20a0: ffff 0xffff
20a2: ffff 0xffff
20a4: ffff 0xffff
20a6: ffff 0xffff
20a8: ffff 0xffff
20aa: ffff 0xffff
20ac: ffff 0xffff
20ae: ffff 0xffff
000020b0 <test_B2_res_exc>:
20b0: ffff 0xffff
20b2: ffff 0xffff
20b4: ffff 0xffff
20b6: ffff 0xffff
20b8: ffff 0xffff
20ba: ffff 0xffff
20bc: ffff 0xffff
20be: ffff 0xffff
000020c0 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,239 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-NOP-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002097 auipc ra,0x2
84: f8008093 addi ra,ra,-128 # 2000 <begin_signature>
88: 00200113 li sp,2
8c: 00300193 li gp,3
90: 00400213 li tp,4
94: 00500293 li t0,5
98: 00600313 li t1,6
9c: 00700393 li t2,7
a0: 00800413 li s0,8
a4: 00900493 li s1,9
a8: 00a00513 li a0,10
ac: 00b00593 li a1,11
b0: 00c00613 li a2,12
b4: 00d00693 li a3,13
b8: 00e00713 li a4,14
bc: 00f00793 li a5,15
c0: 01000813 li a6,16
c4: 01100893 li a7,17
c8: 01200913 li s2,18
cc: 01300993 li s3,19
d0: 01400a13 li s4,20
d4: 01500a93 li s5,21
d8: 01600b13 li s6,22
dc: 01700b93 li s7,23
e0: 01800c13 li s8,24
e4: 01900c93 li s9,25
e8: 01a00d13 li s10,26
ec: 01b00d93 li s11,27
f0: 01c00e13 li t3,28
f4: 01d00e93 li t4,29
f8: 01e00f13 li t5,30
fc: 01f00f93 li t6,31
100: 00000013 nop
104: 00000013 nop
108: 00000013 nop
10c: 00000013 nop
110: 00000013 nop
114: 00000013 nop
118: 0000a023 sw zero,0(ra)
11c: 0020a223 sw sp,4(ra)
120: 0030a423 sw gp,8(ra)
124: 0040a623 sw tp,12(ra)
128: 0050a823 sw t0,16(ra)
12c: 0060aa23 sw t1,20(ra)
130: 0070ac23 sw t2,24(ra)
134: 0080ae23 sw s0,28(ra)
138: 0290a023 sw s1,32(ra)
13c: 02a0a223 sw a0,36(ra)
140: 02b0a423 sw a1,40(ra)
144: 02c0a623 sw a2,44(ra)
148: 02d0a823 sw a3,48(ra)
14c: 02e0aa23 sw a4,52(ra)
150: 02f0ac23 sw a5,56(ra)
154: 0300ae23 sw a6,60(ra)
158: 0510a023 sw a7,64(ra)
15c: 0520a223 sw s2,68(ra)
160: 0530a423 sw s3,72(ra)
164: 0540a623 sw s4,76(ra)
168: 0550a823 sw s5,80(ra)
16c: 0560aa23 sw s6,84(ra)
170: 0570ac23 sw s7,88(ra)
174: 0580ae23 sw s8,92(ra)
178: 0790a023 sw s9,96(ra)
17c: 07a0a223 sw s10,100(ra)
180: 07b0a423 sw s11,104(ra)
184: 07c0a623 sw t3,108(ra)
188: 07d0a823 sw t4,112(ra)
18c: 07e0aa23 sw t5,116(ra)
190: 07f0ac23 sw t6,120(ra)
194: 00002197 auipc gp,0x2
198: ee818193 addi gp,gp,-280 # 207c <test_A2_res>
19c: 00000417 auipc s0,0x0
1a0: 00000013 nop
1a4: 00000013 nop
1a8: 00000013 nop
1ac: 00000013 nop
1b0: 00000013 nop
1b4: 00000497 auipc s1,0x0
1b8: 408484b3 sub s1,s1,s0
1bc: 0091a023 sw s1,0(gp)
1c0: 00002297 auipc t0,0x2
1c4: e4028293 addi t0,t0,-448 # 2000 <begin_signature>
1c8: 10000337 lui t1,0x10000
1cc: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
1d0: 00532023 sw t0,0(t1)
1d4: 00002297 auipc t0,0x2
1d8: eac28293 addi t0,t0,-340 # 2080 <end_signature>
1dc: 10000337 lui t1,0x10000
1e0: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
1e4: 00532023 sw t0,0(t1)
1e8: 00100293 li t0,1
1ec: 10000337 lui t1,0x10000
1f0: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
1f4: 00532023 sw t0,0(t1)
1f8: 00000013 nop
1fc: 00100193 li gp,1
200: 00000073 ecall
00000204 <end_testcode>:
204: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
0000207c <test_A2_res>:
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,339 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-OR-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: fff00f93 li t6,-1
8c: 00000813 li a6,0
90: 010fe033 or zero,t6,a6
94: 0002a023 sw zero,0(t0)
98: 00100f13 li t5,1
9c: 80100793 li a5,-2047
a0: 00ff60b3 or ra,t5,a5
a4: 0012a223 sw ra,4(t0)
a8: 00000e93 li t4,0
ac: fff00713 li a4,-1
b0: 00eee133 or sp,t4,a4
b4: 0022a423 sw sp,8(t0)
b8: 7ff00e13 li t3,2047
bc: fffff6b7 lui a3,0xfffff
c0: dcc68693 addi a3,a3,-564 # ffffedcc <_end+0xffffcbc8>
c4: 00de61b3 or gp,t3,a3
c8: 0032a623 sw gp,12(t0)
cc: 00000d93 li s11,0
d0: 80000637 lui a2,0x80000
d4: 00cde233 or tp,s11,a2
d8: 0042a823 sw tp,16(t0)
dc: 00002097 auipc ra,0x2
e0: f3808093 addi ra,ra,-200 # 2014 <test_2_res>
e4: 00001d37 lui s10,0x1
e8: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x4b4>
ec: 000015b7 lui a1,0x1
f0: 23458593 addi a1,a1,564 # 1234 <fromhost+0x134>
f4: 00bd62b3 or t0,s10,a1
f8: 0050a023 sw t0,0(ra)
fc: 07654cb7 lui s9,0x7654
100: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
104: fff00513 li a0,-1
108: 00ace333 or t1,s9,a0
10c: 0060a223 sw t1,4(ra)
110: 80000c37 lui s8,0x80000
114: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
118: 00100493 li s1,1
11c: 009c63b3 or t2,s8,s1
120: 0070a423 sw t2,8(ra)
124: 00100b93 li s7,1
128: 80000437 lui s0,0x80000
12c: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
130: 008be433 or s0,s7,s0
134: 0080a623 sw s0,12(ra)
138: fff00b13 li s6,-1
13c: 076543b7 lui t2,0x7654
140: 32138393 addi t2,t2,801 # 7654321 <_end+0x765211d>
144: 007b64b3 or s1,s6,t2
148: 0090a823 sw s1,16(ra)
14c: 00002097 auipc ra,0x2
150: edc08093 addi ra,ra,-292 # 2028 <test_3_res>
154: 00001ab7 lui s5,0x1
158: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
15c: 00001337 lui t1,0x1
160: 80030313 addi t1,t1,-2048 # 800 <end_testcode+0x4b4>
164: 006ae533 or a0,s5,t1
168: 00a0a023 sw a0,0(ra)
16c: 80000a37 lui s4,0x80000
170: 00000293 li t0,0
174: 005a65b3 or a1,s4,t0
178: 00b0a223 sw a1,4(ra)
17c: fffff9b7 lui s3,0xfffff
180: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
184: 7ff00213 li tp,2047
188: 0049e633 or a2,s3,tp
18c: 00c0a423 sw a2,8(ra)
190: fff00913 li s2,-1
194: fff00193 li gp,-1
198: 003966b3 or a3,s2,gp
19c: 00d0a623 sw a3,12(ra)
1a0: 80100893 li a7,-2047
1a4: 00100113 li sp,1
1a8: 0028e733 or a4,a7,sp
1ac: 00e0a823 sw a4,16(ra)
1b0: 00002117 auipc sp,0x2
1b4: e8c10113 addi sp,sp,-372 # 203c <test_4_res>
1b8: 00000813 li a6,0
1bc: 00000093 li ra,0
1c0: 001867b3 or a5,a6,ra
1c4: 00f12023 sw a5,0(sp)
1c8: fff00793 li a5,-1
1cc: 00000013 nop
1d0: 0007e833 or a6,a5,zero
1d4: 01012223 sw a6,4(sp)
1d8: 00100713 li a4,1
1dc: 80100f93 li t6,-2047
1e0: 01f768b3 or a7,a4,t6
1e4: 01112423 sw a7,8(sp)
1e8: 00000693 li a3,0
1ec: fff00f13 li t5,-1
1f0: 01e6e933 or s2,a3,t5
1f4: 01212623 sw s2,12(sp)
1f8: 7ff00613 li a2,2047
1fc: fffffeb7 lui t4,0xfffff
200: dcce8e93 addi t4,t4,-564 # ffffedcc <_end+0xffffcbc8>
204: 01d669b3 or s3,a2,t4
208: 01312823 sw s3,16(sp)
20c: 00002097 auipc ra,0x2
210: e4408093 addi ra,ra,-444 # 2050 <test_5_res>
214: 00000593 li a1,0
218: 80000e37 lui t3,0x80000
21c: 01c5ea33 or s4,a1,t3
220: 0140a023 sw s4,0(ra)
224: 00001537 lui a0,0x1
228: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x4b4>
22c: 00001db7 lui s11,0x1
230: 234d8d93 addi s11,s11,564 # 1234 <fromhost+0x134>
234: 01b56ab3 or s5,a0,s11
238: 0150a223 sw s5,4(ra)
23c: 076544b7 lui s1,0x7654
240: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
244: fff00d13 li s10,-1
248: 01a4eb33 or s6,s1,s10
24c: 0160a423 sw s6,8(ra)
250: 80000437 lui s0,0x80000
254: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
258: 00100c93 li s9,1
25c: 01946bb3 or s7,s0,s9
260: 0170a623 sw s7,12(ra)
264: 00100393 li t2,1
268: 80000c37 lui s8,0x80000
26c: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
270: 0183ec33 or s8,t2,s8
274: 0180a823 sw s8,16(ra)
278: 00002097 auipc ra,0x2
27c: dec08093 addi ra,ra,-532 # 2064 <test_6_res>
280: fff00313 li t1,-1
284: 07654bb7 lui s7,0x7654
288: 321b8b93 addi s7,s7,801 # 7654321 <_end+0x765211d>
28c: 01736cb3 or s9,t1,s7
290: 0190a023 sw s9,0(ra)
294: 000012b7 lui t0,0x1
298: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
29c: 00001b37 lui s6,0x1
2a0: 800b0b13 addi s6,s6,-2048 # 800 <end_testcode+0x4b4>
2a4: 0162ed33 or s10,t0,s6
2a8: 01a0a223 sw s10,4(ra)
2ac: 80000237 lui tp,0x80000
2b0: 00000a93 li s5,0
2b4: 01526db3 or s11,tp,s5
2b8: 01b0a423 sw s11,8(ra)
2bc: fffff1b7 lui gp,0xfffff
2c0: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
2c4: 7ff00a13 li s4,2047
2c8: 0141ee33 or t3,gp,s4
2cc: 01c0a623 sw t3,12(ra)
2d0: fff00113 li sp,-1
2d4: fff00993 li s3,-1
2d8: 01316eb3 or t4,sp,s3
2dc: 01d0a823 sw t4,16(ra)
2e0: 00002117 auipc sp,0x2
2e4: d9810113 addi sp,sp,-616 # 2078 <test_7_res>
2e8: 80100093 li ra,-2047
2ec: 00100913 li s2,1
2f0: 0120ef33 or t5,ra,s2
2f4: 01e12023 sw t5,0(sp)
2f8: 00000013 nop
2fc: 00000893 li a7,0
300: 01106fb3 or t6,zero,a7
304: 01f12223 sw t6,4(sp)
308: 00002297 auipc t0,0x2
30c: cf828293 addi t0,t0,-776 # 2000 <begin_signature>
310: 10000337 lui t1,0x10000
314: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
318: 00532023 sw t0,0(t1)
31c: 00002297 auipc t0,0x2
320: d7428293 addi t0,t0,-652 # 2090 <end_signature>
324: 10000337 lui t1,0x10000
328: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
32c: 00532023 sw t0,0(t1)
330: 00100293 li t0,1
334: 10000337 lui t1,0x10000
338: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
33c: 00532023 sw t0,0(t1)
340: 00000013 nop
344: 00100193 li gp,1
348: 00000073 ecall
0000034c <end_testcode>:
34c: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,297 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ORI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002297 auipc t0,0x2
84: f8028293 addi t0,t0,-128 # 2000 <begin_signature>
88: fff00f93 li t6,-1
8c: 000fe013 ori zero,t6,0
90: 0002a023 sw zero,0(t0)
94: 00100f13 li t5,1
98: 801f6093 ori ra,t5,-2047
9c: 0012a223 sw ra,4(t0)
a0: 00000e93 li t4,0
a4: fffee113 ori sp,t4,-1
a8: 0022a423 sw sp,8(t0)
ac: 7ff00e13 li t3,2047
b0: 800e6193 ori gp,t3,-2048
b4: 0032a623 sw gp,12(t0)
b8: 00000d93 li s11,0
bc: 800de213 ori tp,s11,-2048
c0: 0042a823 sw tp,16(t0)
c4: 00002097 auipc ra,0x2
c8: f5008093 addi ra,ra,-176 # 2014 <test_2_res>
cc: 00001d37 lui s10,0x1
d0: 800d0d13 addi s10,s10,-2048 # 800 <end_testcode+0x55c>
d4: 800d6293 ori t0,s10,-2048
d8: 0050a023 sw t0,0(ra)
dc: 07654cb7 lui s9,0x7654
e0: 321c8c93 addi s9,s9,801 # 7654321 <_end+0x765211d>
e4: 800ce313 ori t1,s9,-2048
e8: 0060a223 sw t1,4(ra)
ec: 80000c37 lui s8,0x80000
f0: fffc0c13 addi s8,s8,-1 # 7fffffff <_end+0x7fffddfb>
f4: 001c6393 ori t2,s8,1
f8: 0070a423 sw t2,8(ra)
fc: 00100b93 li s7,1
100: 800be413 ori s0,s7,-2048
104: 0080a623 sw s0,12(ra)
108: fff00b13 li s6,-1
10c: 800b6493 ori s1,s6,-2048
110: 0090a823 sw s1,16(ra)
114: 00002097 auipc ra,0x2
118: f1408093 addi ra,ra,-236 # 2028 <test_3_res>
11c: 00001ab7 lui s5,0x1
120: 234a8a93 addi s5,s5,564 # 1234 <fromhost+0x134>
124: 800ae513 ori a0,s5,-2048
128: 00a0a023 sw a0,0(ra)
12c: 80000a37 lui s4,0x80000
130: 000a6593 ori a1,s4,0
134: 00b0a223 sw a1,4(ra)
138: fffff9b7 lui s3,0xfffff
13c: dcc98993 addi s3,s3,-564 # ffffedcc <_end+0xffffcbc8>
140: 7ff9e613 ori a2,s3,2047
144: 00c0a423 sw a2,8(ra)
148: fff00913 li s2,-1
14c: fff96693 ori a3,s2,-1
150: 00d0a623 sw a3,12(ra)
154: 80100893 li a7,-2047
158: 0018e713 ori a4,a7,1
15c: 00e0a823 sw a4,16(ra)
160: 00002117 auipc sp,0x2
164: edc10113 addi sp,sp,-292 # 203c <test_4_res>
168: 00000813 li a6,0
16c: 00086793 ori a5,a6,0
170: 00f12023 sw a5,0(sp)
174: fff00793 li a5,-1
178: 0007e813 ori a6,a5,0
17c: 01012223 sw a6,4(sp)
180: 00100713 li a4,1
184: 80176893 ori a7,a4,-2047
188: 01112423 sw a7,8(sp)
18c: 00000693 li a3,0
190: fff6e913 ori s2,a3,-1
194: 01212623 sw s2,12(sp)
198: 7ff00613 li a2,2047
19c: 80066993 ori s3,a2,-2048
1a0: 01312823 sw s3,16(sp)
1a4: 00002097 auipc ra,0x2
1a8: eac08093 addi ra,ra,-340 # 2050 <test_5_res>
1ac: 00000593 li a1,0
1b0: 8005ea13 ori s4,a1,-2048
1b4: 0140a023 sw s4,0(ra)
1b8: 00001537 lui a0,0x1
1bc: 80050513 addi a0,a0,-2048 # 800 <end_testcode+0x55c>
1c0: 80056a93 ori s5,a0,-2048
1c4: 0150a223 sw s5,4(ra)
1c8: 076544b7 lui s1,0x7654
1cc: 32148493 addi s1,s1,801 # 7654321 <_end+0x765211d>
1d0: 8004eb13 ori s6,s1,-2048
1d4: 0160a423 sw s6,8(ra)
1d8: 80000437 lui s0,0x80000
1dc: fff40413 addi s0,s0,-1 # 7fffffff <_end+0x7fffddfb>
1e0: 00146b93 ori s7,s0,1
1e4: 0170a623 sw s7,12(ra)
1e8: 00100393 li t2,1
1ec: 8003ec13 ori s8,t2,-2048
1f0: 0180a823 sw s8,16(ra)
1f4: 00002097 auipc ra,0x2
1f8: e7008093 addi ra,ra,-400 # 2064 <test_6_res>
1fc: fff00313 li t1,-1
200: 80036c93 ori s9,t1,-2048
204: 0190a023 sw s9,0(ra)
208: 000012b7 lui t0,0x1
20c: 23428293 addi t0,t0,564 # 1234 <fromhost+0x134>
210: 8002ed13 ori s10,t0,-2048
214: 01a0a223 sw s10,4(ra)
218: 80000237 lui tp,0x80000
21c: 00026d93 ori s11,tp,0
220: 01b0a423 sw s11,8(ra)
224: fffff1b7 lui gp,0xfffff
228: dcc18193 addi gp,gp,-564 # ffffedcc <_end+0xffffcbc8>
22c: 7ff1ee13 ori t3,gp,2047
230: 01c0a623 sw t3,12(ra)
234: fff00113 li sp,-1
238: fff16e93 ori t4,sp,-1
23c: 01d0a823 sw t4,16(ra)
240: 00002117 auipc sp,0x2
244: e3810113 addi sp,sp,-456 # 2078 <test_7_res>
248: 80100093 li ra,-2047
24c: 0010ef13 ori t5,ra,1
250: 01e12023 sw t5,0(sp)
254: 00000013 nop
258: 00006f93 ori t6,zero,0
25c: 01f12223 sw t6,4(sp)
260: 00002297 auipc t0,0x2
264: da028293 addi t0,t0,-608 # 2000 <begin_signature>
268: 10000337 lui t1,0x10000
26c: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
270: 00532023 sw t0,0(t1)
274: 00002297 auipc t0,0x2
278: e1c28293 addi t0,t0,-484 # 2090 <end_signature>
27c: 10000337 lui t1,0x10000
280: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
284: 00532023 sw t0,0(t1)
288: 00100293 li t0,1
28c: 10000337 lui t1,0x10000
290: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
294: 00532023 sw t0,0(t1)
298: 00000013 nop
29c: 00100193 li gp,1
2a0: 00000073 ecall
000002a4 <end_testcode>:
2a4: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
00002014 <test_2_res>:
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
00002028 <test_3_res>:
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
0000203c <test_4_res>:
203c: ffff 0xffff
203e: ffff 0xffff
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
00002050 <test_5_res>:
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
00002064 <test_6_res>:
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
00002078 <test_7_res>:
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: 0000 unimp
...
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,275 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-RF_size-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002817 auipc a6,0x2
84: f8080813 addi a6,a6,-128 # 2000 <begin_signature>
88: 42727037 lui zero,0x42727
8c: e6f00013 li zero,-401
90: 563330b7 lui ra,0x56333
94: 24908093 addi ra,ra,585 # 56333249 <_end+0x56331045>
98: 2d562137 lui sp,0x2d562
9c: 05210113 addi sp,sp,82 # 2d562052 <_end+0x2d55fe4e>
a0: 526971b7 lui gp,0x52697
a4: 36318193 addi gp,gp,867 # 52697363 <_end+0x5269515f>
a8: 736b8237 lui tp,0x736b8
ac: 92020213 addi tp,tp,-1760 # 736b7920 <_end+0x736b571c>
b0: 737462b7 lui t0,0x73746
b4: 57228293 addi t0,t0,1394 # 73746572 <_end+0x7374436e>
b8: 6e205337 lui t1,0x6e205
bc: e6f30313 addi t1,t1,-401 # 6e204e6f <_end+0x6e202c6b>
c0: 4d6973b7 lui t2,0x4d697
c4: c6138393 addi t2,t2,-927 # 4d696c61 <_end+0x4d694a5d>
c8: 6f646437 lui s0,0x6f646
cc: 17340413 addi s0,s0,371 # 6f646173 <_end+0x6f643f6f>
d0: 6b7944b7 lui s1,0x6b794
d4: 06348493 addi s1,s1,99 # 6b794063 <_end+0x6b791e5f>
d8: 74657537 lui a0,0x74657
dc: 27350513 addi a0,a0,627 # 74657273 <_end+0x7465506f>
e0: 286e75b7 lui a1,0x286e7
e4: f7358593 addi a1,a1,-141 # 286e6f73 <_end+0x286e4d6f>
e8: 656b2637 lui a2,0x656b2
ec: 04860613 addi a2,a2,72 # 656b2048 <_end+0x656afe44>
f0: 205266b7 lui a3,0x20526
f4: 16468693 addi a3,a3,356 # 20526164 <_end+0x20523f60>
f8: 6f6d3737 lui a4,0x6f6d3
fc: 92c70713 addi a4,a4,-1748 # 6f6d292c <_end+0x6f6d0728>
100: 697037b7 lui a5,0x69703
104: e6378793 addi a5,a5,-413 # 69702e63 <_end+0x69700c5f>
108: 00082023 sw zero,0(a6)
10c: 00182223 sw ra,4(a6)
110: 00282423 sw sp,8(a6)
114: 00382623 sw gp,12(a6)
118: 00482823 sw tp,16(a6)
11c: 00582a23 sw t0,20(a6)
120: 00682c23 sw t1,24(a6)
124: 00782e23 sw t2,28(a6)
128: 02882023 sw s0,32(a6)
12c: 02982223 sw s1,36(a6)
130: 02a82423 sw a0,40(a6)
134: 02b82623 sw a1,44(a6)
138: 02c82823 sw a2,48(a6)
13c: 02d82a23 sw a3,52(a6)
140: 02e82c23 sw a4,56(a6)
144: 02f82e23 sw a5,60(a6)
148: 00002217 auipc tp,0x2
14c: ef820213 addi tp,tp,-264 # 2040 <test_A2_res>
150: 636f6837 lui a6,0x636f6
154: 46180813 addi a6,a6,1121 # 636f6461 <_end+0x636f425d>
158: 6a6578b7 lui a7,0x6a657
15c: b4088893 addi a7,a7,-1216 # 6a656b40 <_end+0x6a65493c>
160: 20287937 lui s2,0x20287
164: 86190913 addi s2,s2,-1951 # 20286861 <_end+0x2028465d>
168: 616a69b7 lui s3,0x616a6
16c: 56b98993 addi s3,s3,1387 # 616a656b <_end+0x616a4367>
170: 61766a37 lui s4,0x61766
174: 520a0a13 addi s4,s4,1312 # 61766520 <_end+0x6176431c>
178: 2e205ab7 lui s5,0x2e205
17c: c65a8a93 addi s5,s5,-923 # 2e204c65 <_end+0x2e202a61>
180: 636f7b37 lui s6,0x636f7
184: d29b0b13 addi s6,s6,-727 # 636f6d29 <_end+0x636f4b25>
188: 73697bb7 lui s7,0x73697
18c: 02eb8b93 addi s7,s7,46 # 7369702e <_end+0x73694e2a>
190: 66208c37 lui s8,0x66208
194: 96fc0c13 addi s8,s8,-1681 # 6620796f <_end+0x6620576b>
198: 67652cb7 lui s9,0x67652
19c: 069c8c93 addi s9,s9,105 # 67652069 <_end+0x6764fe65>
1a0: 65737d37 lui s10,0x65737
1a4: 361d0d13 addi s10,s10,865 # 65737361 <_end+0x6573515d>
1a8: 75732db7 lui s11,0x75732
1ac: 06dd8d93 addi s11,s11,109 # 7573206d <_end+0x7572fe69>
1b0: 3a291e37 lui t3,0x3a291
1b4: d0ae0e13 addi t3,t3,-758 # 3a290d0a <_end+0x3a28eb06>
1b8: 68697eb7 lui t4,0x68697
1bc: 320e8e93 addi t4,t4,800 # 68697320 <_end+0x6869511c>
1c0: 61642f37 lui t5,0x61642
1c4: 074f0f13 addi t5,t5,116 # 61642074 <_end+0x6163fe70>
1c8: 75207fb7 lui t6,0x75207
1cc: 265f8f93 addi t6,t6,613 # 75207265 <_end+0x75205061>
1d0: 01022023 sw a6,0(tp) # 0 <_start>
1d4: 01122223 sw a7,4(tp) # 4 <trap_vector>
1d8: 01222423 sw s2,8(tp) # 8 <trap_vector+0x4>
1dc: 01322623 sw s3,12(tp) # c <trap_vector+0x8>
1e0: 01422823 sw s4,16(tp) # 10 <trap_vector+0xc>
1e4: 01522a23 sw s5,20(tp) # 14 <trap_vector+0x10>
1e8: 01622c23 sw s6,24(tp) # 18 <trap_vector+0x14>
1ec: 01722e23 sw s7,28(tp) # 1c <trap_vector+0x18>
1f0: 03822023 sw s8,32(tp) # 20 <trap_vector+0x1c>
1f4: 03922223 sw s9,36(tp) # 24 <trap_vector+0x20>
1f8: 03a22423 sw s10,40(tp) # 28 <trap_vector+0x24>
1fc: 03b22623 sw s11,44(tp) # 2c <trap_vector+0x28>
200: 03c22823 sw t3,48(tp) # 30 <trap_vector+0x2c>
204: 03d22a23 sw t4,52(tp) # 34 <trap_vector+0x30>
208: 03e22c23 sw t5,56(tp) # 38 <trap_vector+0x34>
20c: 03f22e23 sw t6,60(tp) # 3c <handle_exception>
210: 00002217 auipc tp,0x2
214: e7020213 addi tp,tp,-400 # 2080 <test_A3_res>
218: 00022023 sw zero,0(tp) # 0 <_start>
21c: 00122223 sw ra,4(tp) # 4 <trap_vector>
220: 00222423 sw sp,8(tp) # 8 <trap_vector+0x4>
224: 00322623 sw gp,12(tp) # c <trap_vector+0x8>
228: 00002297 auipc t0,0x2
22c: dd828293 addi t0,t0,-552 # 2000 <begin_signature>
230: 10000337 lui t1,0x10000
234: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
238: 00532023 sw t0,0(t1)
23c: 00002297 auipc t0,0x2
240: e5428293 addi t0,t0,-428 # 2090 <end_signature>
244: 10000337 lui t1,0x10000
248: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
24c: 00532023 sw t0,0(t1)
250: 00100293 li t0,1
254: 10000337 lui t1,0x10000
258: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
25c: 00532023 sw t0,0(t1)
260: 00000013 nop
264: 00100193 li gp,1
268: 00000073 ecall
0000026c <end_testcode>:
26c: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
00002040 <test_A2_res>:
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <test_A3_res>:
2080: ffff 0xffff
2082: ffff 0xffff
2084: ffff 0xffff
2086: ffff 0xffff
2088: ffff 0xffff
208a: ffff 0xffff
208c: ffff 0xffff
208e: ffff 0xffff
00002090 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

View File

@ -0,0 +1,320 @@
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-RF_width-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
c: 03ff0a63 beq t5,t6,40 <write_tohost>
10: 00900f93 li t6,9
14: 03ff0663 beq t5,t6,40 <write_tohost>
18: 00b00f93 li t6,11
1c: 03ff0263 beq t5,t6,40 <write_tohost>
20: 00000f17 auipc t5,0x0
24: fe0f0f13 addi t5,t5,-32 # 0 <_start>
28: 000f0463 beqz t5,30 <trap_vector+0x2c>
2c: 000f0067 jr t5
30: 34202f73 csrr t5,mcause
34: 000f5463 bgez t5,3c <handle_exception>
38: 0040006f j 3c <handle_exception>
0000003c <handle_exception>:
3c: 5391e193 ori gp,gp,1337
00000040 <write_tohost>:
40: 00001f17 auipc t5,0x1
44: fc3f2023 sw gp,-64(t5) # 1000 <tohost>
48: ff9ff06f j 40 <write_tohost>
0000004c <reset_vector>:
4c: 00000193 li gp,0
50: 00000297 auipc t0,0x0
54: fb428293 addi t0,t0,-76 # 4 <trap_vector>
58: 30529073 csrw mtvec,t0
5c: 30005073 csrwi mstatus,0
60: 00000297 auipc t0,0x0
64: 02028293 addi t0,t0,32 # 80 <begin_testcode>
68: 34129073 csrw mepc,t0
6c: 00000293 li t0,0
70: 10000337 lui t1,0x10000
74: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
78: 00532023 sw t0,0(t1)
7c: 30200073 mret
00000080 <begin_testcode>:
80: 00002817 auipc a6,0x2
84: f8080813 addi a6,a6,-128 # 2000 <begin_signature>
88: 00100013 li zero,1
8c: 00100093 li ra,1
90: 00100113 li sp,1
94: 00100193 li gp,1
98: 00100213 li tp,1
9c: 00100293 li t0,1
a0: 00100313 li t1,1
a4: 00100393 li t2,1
a8: 00100413 li s0,1
ac: 00100493 li s1,1
b0: 00100513 li a0,1
b4: 00100593 li a1,1
b8: 00100613 li a2,1
bc: 00100693 li a3,1
c0: 00100713 li a4,1
c4: 00100793 li a5,1
c8: 01f09093 slli ra,ra,0x1f
cc: 0000c463 bltz ra,d4 <begin_testcode+0x54>
d0: 00000093 li ra,0
d4: 01f11113 slli sp,sp,0x1f
d8: 00014463 bltz sp,e0 <begin_testcode+0x60>
dc: 00000113 li sp,0
e0: 01f19193 slli gp,gp,0x1f
e4: 0001c463 bltz gp,ec <begin_testcode+0x6c>
e8: 00000193 li gp,0
ec: 01f21213 slli tp,tp,0x1f
f0: 00024463 bltz tp,f8 <begin_testcode+0x78>
f4: 00000213 li tp,0
f8: 01f29293 slli t0,t0,0x1f
fc: 0002c463 bltz t0,104 <begin_testcode+0x84>
100: 00000293 li t0,0
104: 01f31313 slli t1,t1,0x1f
108: 00034463 bltz t1,110 <begin_testcode+0x90>
10c: 00000313 li t1,0
110: 01f39393 slli t2,t2,0x1f
114: 0003c463 bltz t2,11c <begin_testcode+0x9c>
118: 00000393 li t2,0
11c: 01f41413 slli s0,s0,0x1f
120: 00044463 bltz s0,128 <begin_testcode+0xa8>
124: 00000413 li s0,0
128: 01f49493 slli s1,s1,0x1f
12c: 0004c463 bltz s1,134 <begin_testcode+0xb4>
130: 00000493 li s1,0
134: 01f51513 slli a0,a0,0x1f
138: 00054463 bltz a0,140 <begin_testcode+0xc0>
13c: 00000513 li a0,0
140: 01f59593 slli a1,a1,0x1f
144: 0005c463 bltz a1,14c <begin_testcode+0xcc>
148: 00000593 li a1,0
14c: 01f61613 slli a2,a2,0x1f
150: 00064463 bltz a2,158 <begin_testcode+0xd8>
154: 00000613 li a2,0
158: 01f69693 slli a3,a3,0x1f
15c: 0006c463 bltz a3,164 <begin_testcode+0xe4>
160: 00000693 li a3,0
164: 01f71713 slli a4,a4,0x1f
168: 00074463 bltz a4,170 <begin_testcode+0xf0>
16c: 00000713 li a4,0
170: 01f79793 slli a5,a5,0x1f
174: 0007c463 bltz a5,17c <begin_testcode+0xfc>
178: 00000793 li a5,0
17c: 00082023 sw zero,0(a6)
180: 00182223 sw ra,4(a6)
184: 00282423 sw sp,8(a6)
188: 00382623 sw gp,12(a6)
18c: 00482823 sw tp,16(a6)
190: 00582a23 sw t0,20(a6)
194: 00682c23 sw t1,24(a6)
198: 00782e23 sw t2,28(a6)
19c: 02882023 sw s0,32(a6)
1a0: 02982223 sw s1,36(a6)
1a4: 02a82423 sw a0,40(a6)
1a8: 02b82623 sw a1,44(a6)
1ac: 02c82823 sw a2,48(a6)
1b0: 02d82a23 sw a3,52(a6)
1b4: 02e82c23 sw a4,56(a6)
1b8: 02f82e23 sw a5,60(a6)
1bc: 00002097 auipc ra,0x2
1c0: e8408093 addi ra,ra,-380 # 2040 <test_A2_res>
1c4: 00100813 li a6,1
1c8: 00100893 li a7,1
1cc: 00100913 li s2,1
1d0: 00100993 li s3,1
1d4: 00100a13 li s4,1
1d8: 00100a93 li s5,1
1dc: 00100b13 li s6,1
1e0: 00100b93 li s7,1
1e4: 00100c13 li s8,1
1e8: 00100c93 li s9,1
1ec: 00100d13 li s10,1
1f0: 00100d93 li s11,1
1f4: 00100e13 li t3,1
1f8: 00100e93 li t4,1
1fc: 00100f13 li t5,1
200: 00100f93 li t6,1
204: 01f81813 slli a6,a6,0x1f
208: 00084463 bltz a6,210 <begin_testcode+0x190>
20c: 00000813 li a6,0
210: 01f89893 slli a7,a7,0x1f
214: 0008c463 bltz a7,21c <begin_testcode+0x19c>
218: 00000893 li a7,0
21c: 01f91913 slli s2,s2,0x1f
220: 00094463 bltz s2,228 <begin_testcode+0x1a8>
224: 00000913 li s2,0
228: 01f99993 slli s3,s3,0x1f
22c: 0009c463 bltz s3,234 <begin_testcode+0x1b4>
230: 00000993 li s3,0
234: 01fa1a13 slli s4,s4,0x1f
238: 000a4463 bltz s4,240 <begin_testcode+0x1c0>
23c: 00000a13 li s4,0
240: 01fa9a93 slli s5,s5,0x1f
244: 000ac463 bltz s5,24c <begin_testcode+0x1cc>
248: 00000a93 li s5,0
24c: 01fb1b13 slli s6,s6,0x1f
250: 000b4463 bltz s6,258 <begin_testcode+0x1d8>
254: 00000b13 li s6,0
258: 01fb9b93 slli s7,s7,0x1f
25c: 000bc463 bltz s7,264 <begin_testcode+0x1e4>
260: 00000b93 li s7,0
264: 01fc1c13 slli s8,s8,0x1f
268: 000c4463 bltz s8,270 <begin_testcode+0x1f0>
26c: 00000c13 li s8,0
270: 01fc9c93 slli s9,s9,0x1f
274: 000cc463 bltz s9,27c <begin_testcode+0x1fc>
278: 00000c93 li s9,0
27c: 01fd1d13 slli s10,s10,0x1f
280: 000d4463 bltz s10,288 <begin_testcode+0x208>
284: 00000d13 li s10,0
288: 01fd9d93 slli s11,s11,0x1f
28c: 000dc463 bltz s11,294 <begin_testcode+0x214>
290: 00000d93 li s11,0
294: 01fe1e13 slli t3,t3,0x1f
298: 000e4463 bltz t3,2a0 <begin_testcode+0x220>
29c: 00000e13 li t3,0
2a0: 01fe9e93 slli t4,t4,0x1f
2a4: 000ec463 bltz t4,2ac <begin_testcode+0x22c>
2a8: 00000e93 li t4,0
2ac: 01ff1f13 slli t5,t5,0x1f
2b0: 000f4463 bltz t5,2b8 <begin_testcode+0x238>
2b4: 00000f13 li t5,0
2b8: 01ff9f93 slli t6,t6,0x1f
2bc: 000fc463 bltz t6,2c4 <begin_testcode+0x244>
2c0: 00000f93 li t6,0
2c4: 0100a023 sw a6,0(ra)
2c8: 0110a223 sw a7,4(ra)
2cc: 0120a423 sw s2,8(ra)
2d0: 0130a623 sw s3,12(ra)
2d4: 0140a823 sw s4,16(ra)
2d8: 0150aa23 sw s5,20(ra)
2dc: 0160ac23 sw s6,24(ra)
2e0: 0170ae23 sw s7,28(ra)
2e4: 0380a023 sw s8,32(ra)
2e8: 0390a223 sw s9,36(ra)
2ec: 03a0a423 sw s10,40(ra)
2f0: 03b0a623 sw s11,44(ra)
2f4: 03c0a823 sw t3,48(ra)
2f8: 03d0aa23 sw t4,52(ra)
2fc: 03e0ac23 sw t5,56(ra)
300: 03f0ae23 sw t6,60(ra)
304: 00002297 auipc t0,0x2
308: cfc28293 addi t0,t0,-772 # 2000 <begin_signature>
30c: 10000337 lui t1,0x10000
310: 00830313 addi t1,t1,8 # 10000008 <_end+0xfffde04>
314: 00532023 sw t0,0(t1)
318: 00002297 auipc t0,0x2
31c: d6828293 addi t0,t0,-664 # 2080 <end_signature>
320: 10000337 lui t1,0x10000
324: 00c30313 addi t1,t1,12 # 1000000c <_end+0xfffde08>
328: 00532023 sw t0,0(t1)
32c: 00100293 li t0,1
330: 10000337 lui t1,0x10000
334: 01030313 addi t1,t1,16 # 10000010 <_end+0xfffde0c>
338: 00532023 sw t0,0(t1)
33c: 00000013 nop
340: 00100193 li gp,1
344: 00000073 ecall
00000348 <end_testcode>:
348: c0001073 unimp
...
Disassembly of section .tohost:
00001000 <tohost>:
...
00001100 <fromhost>:
...
Disassembly of section .data:
00002000 <begin_signature>:
2000: ffff 0xffff
2002: ffff 0xffff
2004: ffff 0xffff
2006: ffff 0xffff
2008: ffff 0xffff
200a: ffff 0xffff
200c: ffff 0xffff
200e: ffff 0xffff
2010: ffff 0xffff
2012: ffff 0xffff
2014: ffff 0xffff
2016: ffff 0xffff
2018: ffff 0xffff
201a: ffff 0xffff
201c: ffff 0xffff
201e: ffff 0xffff
2020: ffff 0xffff
2022: ffff 0xffff
2024: ffff 0xffff
2026: ffff 0xffff
2028: ffff 0xffff
202a: ffff 0xffff
202c: ffff 0xffff
202e: ffff 0xffff
2030: ffff 0xffff
2032: ffff 0xffff
2034: ffff 0xffff
2036: ffff 0xffff
2038: ffff 0xffff
203a: ffff 0xffff
203c: ffff 0xffff
203e: ffff 0xffff
00002040 <test_A2_res>:
2040: ffff 0xffff
2042: ffff 0xffff
2044: ffff 0xffff
2046: ffff 0xffff
2048: ffff 0xffff
204a: ffff 0xffff
204c: ffff 0xffff
204e: ffff 0xffff
2050: ffff 0xffff
2052: ffff 0xffff
2054: ffff 0xffff
2056: ffff 0xffff
2058: ffff 0xffff
205a: ffff 0xffff
205c: ffff 0xffff
205e: ffff 0xffff
2060: ffff 0xffff
2062: ffff 0xffff
2064: ffff 0xffff
2066: ffff 0xffff
2068: ffff 0xffff
206a: ffff 0xffff
206c: ffff 0xffff
206e: ffff 0xffff
2070: ffff 0xffff
2072: ffff 0xffff
2074: ffff 0xffff
2076: ffff 0xffff
2078: ffff 0xffff
207a: ffff 0xffff
207c: ffff 0xffff
207e: ffff 0xffff
00002080 <end_signature>:
...
00002100 <begin_regstate>:
2100: 0080 addi s0,sp,64
...
00002200 <end_regstate>:
2200: 0004 0x4
...

Some files were not shown because too many files have changed in this diff Show More