]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gas/testsuite/gas/ieee-fp/x930509a.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / ieee-fp / x930509a.exp
1 # Copyright (C) 2012-2021 Free Software Foundation, Inc.
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
16
17 # Reported 93/05/09 by Jim Wilson: IEEE single-precision FLT_MIN value gets
18 # assembled incorrectly. (Off by one ulp.)
19
20 proc dotest {} {
21 set testname "IEEE FLT_MIN, single-precision"
22 set x 0
23 gas_start "x930509a.s" "-al"
24 while 1 {
25 expect {
26 -re " 00 ?00 ?80 ?00\[ \]+.single" { pass $testname; set x 1 }
27 -re " 00 ?80 ?00 ?00\[ \]+.single" { pass $testname; set x 1 }
28 -re ".single" { fail $testname; set x 1 }
29 -re "\[^\n\]*\n" { }
30 timeout { perror "timeout\n"; break }
31 eof { break }
32 }
33 }
34 gas_finish
35
36 # C54x alignment/addressing is different, so the listing looks different
37 # float encoding is tested in c54x-specific tests.
38 # No floating point support in assembly code for CRIS.
39 setup_xfail "arc*-*-*" "cris-*-*" "*c30*-*-*" "*c54x*-*-*" "*c80*-*-*"
40 setup_xfail "vax*-*-*" "crisv32-*-*"
41
42 if !$x then { fail "$testname (listing didn't match)" }
43 }