Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-nios2 / nios2.exp
blobc7860a4680015d785af63c67e7a3376f3b5f9611
1 if { ! [istarget nios2-*-*] } {
2 return
5 foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.d]] {
6 run_dump_test [file rootname $test]
9 set test_name "NIOS2 Mixed R1 and R2 objects"
10 set test mixed1
12 if ![ld_assemble $as "-march=r1 $srcdir/$subdir/${test}a.s" tmpdir/${test}a.o] {
13 fail "Build mixed1a.o"
14 return
17 if ![ld_assemble $as "-march=r2 $srcdir/$subdir/${test}b.s" tmpdir/${test}b.o] {
18 fail "Build mixed1b.o"
19 return
22 if { ![ld_link $ld tmpdir/$test "tmpdir/${test}a.o tmpdir/${test}b.o"] } {
23 if [string match "*architecture * is incompatible*" $link_output] {
24 pass "$test_name"
25 } {
26 fail "$test_name"