Add vax-linux-gnu target
[binutils.git] / gas / testsuite / gas / vax / vax.exp
blobf61906c15d31b010971cf538b8acc1a9c1cad097
2 # Some generic VAX tests
5 proc do_quad {} {
6 set testname "quad.s: quadword immediate values"
7 set x1 0
8 set x2 0
9 set x3 0
10 set file "quad.s"
11 if { [istarget vax-*-*elf*] || [istarget vax-*-linux-gnu*] } then {
12 set file "quad_elf.s"
14 gas_start $file "-al"
15 while 1 {
16 expect {
17 -re "^ +2\[ \t\]+0000+ 7D8F7856\[ \t\]+movq\[^\n\]*\n" { set x1 1 }
18 -re "^ +2\[ \t\]+3412DDCC\[^\n\]*\n" { set x2 1 }
19 -re "^ +2\[ \t\]+BBAA50\[ \t\]*\r\n" { set x3 1 }
20 -re "\[^\n\]*\n" { }
21 timeout { perror "timeout\n"; break }
22 eof { break }
25 gas_finish
26 if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
29 if [istarget vax-*-* ] then {
30 do_quad
32 if [istarget vax-*-*elf*] {
33 run_dump_test "elf-rel"