ChangeLog rotatation and copyright year update
[deliverable/binutils-gdb.git] / gas / testsuite / gas / vax / vax.exp
1 # Copyright (C) 2012-2015 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 #
18 # Some generic VAX tests
19 #
20
21 proc do_quad {} {
22 set testname "quad.s: quadword immediate values"
23 set x1 0
24 set x2 0
25 set x3 0
26 set file "quad.s"
27 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-*] } then {
28 set file "quad_elf.s"
29 }
30 gas_start $file "-al"
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 }
35 -re "^ +2\[ \t\]+BBAA50\[ \t\]*\r\n" { set x3 1 }
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
45 if [istarget vax-*-* ] then {
46 do_quad
47
48 run_dump_test "flonum"
49
50 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-*] } then {
51 run_dump_test "elf-rel"
52 }
53 }
This page took 0.037996 seconds and 4 git commands to generate.