-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Or1k spec 1.4 user mode FPCSR R/W (#26)
- Loading branch information
Showing
17 changed files
with
846 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# fpee.exp. Floating point exception DejaGNU tests | ||
|
||
# Copyright (C) 2023 OpenRISC Developers | ||
|
||
# Contributor Stafford Horne <[email protected]> | ||
|
||
# This file is part of OpenRISC 1000 Architectural Simulator. | ||
|
||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by the Free | ||
# Software Foundation; either version 3 of the License, or (at your option) | ||
# any later version. | ||
|
||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
# more details. | ||
|
||
# You should have received a copy of the GNU General Public License along | ||
# with this program. If not, see <http:#www.gnu.org/licenses/>. */ | ||
|
||
# ----------------------------------------------------------------------------- | ||
# This code is commented throughout for use with Doxygen. | ||
# ----------------------------------------------------------------------------- | ||
|
||
|
||
# Run the floating point test | ||
run_or1ksim "fpee" \ | ||
[list "Switching to User Mode" \ | ||
"Enabling FPU Exceptions" \ | ||
"Exceptions enabled, now DIV 3.14 / 0" \ | ||
"Got fpe: " \ | ||
"report(0x7f800000);" \ | ||
"report(0x00000801);" \ | ||
"One more, now MUL 3.14 * MAX" \ | ||
"Got fpe: " \ | ||
"report(0x7f800000);" \ | ||
"report(0x00000109);" \ | ||
"exit(0)"] \ | ||
"fp.cfg" "fpee/fpee" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ SUBDIRS = support \ | |
ext \ | ||
fbtest \ | ||
fp \ | ||
fpee \ | ||
testfloat \ | ||
functest \ | ||
flag \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -386,6 +386,7 @@ SUBDIRS = support \ | |
ext \ | ||
fbtest \ | ||
fp \ | ||
fpee \ | ||
testfloat \ | ||
functest \ | ||
flag \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Makefile.am for or1ksim testsuite CPU test program: fpee | ||
|
||
# Copyright (C) OpenRISC Developers, 2023 | ||
|
||
# Contributor Stafford Horne <[email protected]> | ||
|
||
# This file is part of OpenRISC 1000 Architectural Simulator. | ||
|
||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by the Free | ||
# Software Foundation; either version 3 of the License, or (at your option) | ||
# any later version. | ||
|
||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
# more details. | ||
|
||
# You should have received a copy of the GNU General Public License along | ||
# with this program. If not, see <http:#www.gnu.org/licenses/>. */ | ||
|
||
# ----------------------------------------------------------------------------- | ||
# This code is commented throughout for use with Doxygen. | ||
# ----------------------------------------------------------------------------- | ||
|
||
# A test program of the floating point exceptions test | ||
check_PROGRAMS = fpee | ||
|
||
fpee_SOURCES = fpee.c | ||
|
||
fpee_LDFLAGS = -T$(srcdir)/../default.ld | ||
|
||
fpee_LDADD = ../except/except.lo \ | ||
../support/libsupport.la |
Oops, something went wrong.