]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/vax/vax.exp
ChangeLog rotatation and copyright year update
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / vax / vax.exp
CommitLineData
b90efa5b 1# Copyright (C) 2012-2015 Free Software Foundation, Inc.
5bf135a7
NC
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
8f3f3666
JT
17#
18# Some generic VAX tests
19#
20
252b5132
RH
21proc do_quad {} {
22 set testname "quad.s: quadword immediate values"
23 set x1 0
24 set x2 0
25 set x3 0
6c2beb07 26 set file "quad.s"
ee58dd1e 27 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-*] } then {
8f3f3666 28 set file "quad_elf.s"
6c2beb07
AM
29 }
30 gas_start $file "-al"
252b5132
RH
31 while 1 {
32 expect {
33 -re "^ +2\[ \t\]+0000+ 7D8F7856\[ \t\]+movq\[^\n\]*\n" { set x1 1 }
34 -re "^ +2\[ \t\]+3412DDCC\[^\n\]*\n" { set x2 1 }
bbe6d95f 35 -re "^ +2\[ \t\]+BBAA50\[ \t\]*\r\n" { set x3 1 }
252b5132
RH
36 -re "\[^\n\]*\n" { }
37 timeout { perror "timeout\n"; break }
38 eof { break }
39 }
40 }
41 gas_finish
42 if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
43}
44
8f3f3666 45if [istarget vax-*-* ] then {
252b5132 46 do_quad
8f3f3666 47
d2c5f73e
NC
48 run_dump_test "flonum"
49
ee58dd1e 50 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-*] } then {
8f3f3666
JT
51 run_dump_test "elf-rel"
52 }
252b5132 53}