| 1 |
233 |
julius |
# testfloat.exp - Run and check the testfloat test
|
| 2 |
|
|
|
| 3 |
|
|
# Copyright (C) 2010 Embecosm Limited
|
| 4 |
|
|
# Copyright (C) 2010 ORSoC AB
|
| 5 |
|
|
|
| 6 |
|
|
# Contributor Jeremy Bennett
|
| 7 |
|
|
# Contributor Julius Baxter
|
| 8 |
|
|
|
| 9 |
|
|
# This file is part of OpenRISC 1000 Architectural Simulator.
|
| 10 |
|
|
|
| 11 |
|
|
# This program is free software; you can redistribute it and/or modify it
|
| 12 |
|
|
# under the terms of the GNU General Public License as published by the Free
|
| 13 |
|
|
# Software Foundation; either version 3 of the License, or (at your option)
|
| 14 |
|
|
# any later version.
|
| 15 |
|
|
|
| 16 |
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
| 17 |
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
| 18 |
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
| 19 |
|
|
# more details.
|
| 20 |
|
|
|
| 21 |
|
|
# You should have received a copy of the GNU General Public License along
|
| 22 |
|
|
# with this program. If not, see . */
|
| 23 |
|
|
|
| 24 |
|
|
# -----------------------------------------------------------------------------
|
| 25 |
|
|
# This code is commented throughout for use with Doxygen.
|
| 26 |
|
|
# -----------------------------------------------------------------------------
|
| 27 |
|
|
|
| 28 |
|
|
|
| 29 |
|
|
# Can take up to 5 minutes to run this test
|
| 30 |
|
|
set timeout 300
|
| 31 |
|
|
|
| 32 |
|
|
# Run testfloat
|
| 33 |
|
|
run_or1ksim "testfloat" \
|
| 34 |
|
|
[list "!No errors found in int32_to_float32, rounding nearest_even." \
|
| 35 |
|
|
"No errors found in int32_to_float32, rounding to_zero." \
|
| 36 |
|
|
"No errors found in int32_to_float32, rounding down." \
|
| 37 |
|
|
"No errors found in int32_to_float32, rounding up." \
|
| 38 |
|
|
"No errors found in float32_to_int32, rounding nearest_even." \
|
| 39 |
|
|
"No errors found in float32_to_int32, rounding to_zero." \
|
| 40 |
|
|
"No errors found in float32_to_int32, rounding down." \
|
| 41 |
|
|
"No errors found in float32_to_int32, rounding up." \
|
| 42 |
|
|
"No errors found in float32_to_int32_round_to_zero." \
|
| 43 |
|
|
"No errors found in float32_add, rounding nearest_even." \
|
| 44 |
|
|
"No errors found in float32_add, rounding to_zero." \
|
| 45 |
|
|
"No errors found in float32_add, rounding down." \
|
| 46 |
|
|
"No errors found in float32_add, rounding up." \
|
| 47 |
|
|
"No errors found in float32_sub, rounding nearest_even." \
|
| 48 |
|
|
"No errors found in float32_sub, rounding to_zero." \
|
| 49 |
|
|
"No errors found in float32_sub, rounding down." \
|
| 50 |
|
|
"No errors found in float32_sub, rounding up." \
|
| 51 |
|
|
"No errors found in float32_mul, rounding nearest_even." \
|
| 52 |
|
|
"No errors found in float32_mul, rounding to_zero." \
|
| 53 |
|
|
"No errors found in float32_mul, rounding down." \
|
| 54 |
|
|
"No errors found in float32_mul, rounding up." \
|
| 55 |
|
|
"No errors found in float32_div, rounding nearest_even." \
|
| 56 |
|
|
"No errors found in float32_div, rounding to_zero." \
|
| 57 |
|
|
"No errors found in float32_div, rounding down." \
|
| 58 |
|
|
"No errors found in float32_div, rounding up." \
|
| 59 |
|
|
"No errors found in float32_eq." \
|
| 60 |
|
|
"No errors found in float32_le." \
|
| 61 |
|
|
"No errors found in float32_lt" \
|
| 62 |
|
|
"exit(0)"] \
|
| 63 |
|
|
"testfloat.cfg" "testfloat/testfloat"
|