1 # Copyright (C) 2012-2019 Free Software Foundation, Inc.
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.
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.
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.
18 # Some generic VAX tests
22 set testname "quad.s: quadword immediate values"
27 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-*] } then {
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 }
37 timeout { perror "timeout\n"; break }
42 if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
45 if [istarget vax-*-* ] then {
48 run_dump_test "flonum"
50 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-*] } then {
51 run_dump_test "elf-rel"