4 * gas/arc: Testsuite for ARC.
5 * gas/arc/{arc.exp,math.[sd],flag.[sd],j.[sd]}: New files.
6 * gas/arc/{branch.[sd],alias.[sd],sshift.[sd]}: New files.
9 * lib/gas-defs.exp (run_dump_test): Handle arguments with paths.
10 Always resolve testcase status before returning.
11 If `slurp_options' fails, return and don't do test.
12 (slurp_options): Fix "can't open" error message.
13 Return -1 to indicate error.
17 * gas/hppa/unsorted/common.s: New test.
18 * gas/hppa/unsorted/unsorted.exp: Run it.
22 * gas/h8300/ffxx1.s: Add .word 0 at the end to eliminate
23 uncertainty as to whether there should be trailing bytes in the
25 * gas/h8300/ffxx1.d: Adjust reloc values to permit an addend value
26 of 0x00000000ffffffff on 64-bit hosts. (I'm not sure if this is
27 correct.) End with "..." to match trailing zero bytes.
31 * gas/mips/mips4.d, gas/mips/mips4.s: New files.
32 * gas/mips/mips.exp: Run new test.
36 * gas/hppa/basic/fmemLRbug.s: Add indexing variants.
37 * gas/hppa/basic/basic.exp: Test them.
41 * gas/mips/uld.d: New file.
42 * gas/mips/uld.s: New file.
43 * gas/mips/usd.d: New file.
44 * gas/mips/usd.s: New file.
45 * gas/mips/mips.exp: Run new tests.
49 * gas/hppa/reloc/applybug.s: New test.
50 * gas/hppa/reloc/reloc.exp (do_applybug_test): Run it.
54 * gas/hppa/reloc/picreloc.s: New test.
55 * gas/hppa/reloc/reloc.exp (do_pic_relocation_test): Run it.
59 * gas/h8300/ffxx1.d, gas/h8300/ffxx1.s, gas/h8300/cmpsi2.s,
60 gas/h8300/h8300.exp: New tests.
64 * gas/hppa/basic/basic.exp (do_system): Update.
68 * gas/mips/mips.exp: Don't run the memory-access tests if the
69 format is a.out, because the generated code is different from what
70 is used with other formats.
74 * gas/hppa/unsorted/unsorted.exp (align4.s): Fix glitch in
75 regexp to avoid losing without a controlling tty.
79 * gas/i386/pushw.l: Fixed whitespace to match current listing
82 * gas/all/gas.exp: Mark test p1480.s expected to pass, even with
87 * Makefile.in (AS_FOR_TARGET, OBJDUMP_FOR_TARGET): Don't set.
88 (uninstall): Don't set OBJDUMP and OBJDUMPFLAGS in site.exp.
89 * config/default.exp: Default OBJDUMP and OBJDUMPFLAGS. Use
90 findfile and transform procedures to determine objdump program
93 * gas/mips/abs.s, gas/mips/div.s: Force some padding at the end,
94 in case the format doesn't automatically require it.
95 * gas/mips/beq.d, gas/mips/jal.d: Handle MIPS_JMP as an alternate
96 name for the reloc type.
98 * lib/gas-defs.exp (file_contents, verbose_eval): New procs.
99 (run_dump_test): If verbosity level is over 3, print out dump
100 command and its output.
104 * gas/mips/jal-svr4pic.d: Fix 0-strings to work with 64-bit hosted
109 * gas/all/gas.exp (comment.s test): Make the "\r" optional, since
110 it depends on tty modes.
112 * lib/gas-defs.exp (gas_start): Try using -nottycopy instead of
115 * gas/arm/gas.exp: The arm6 test should report errors, for now.
119 * lib/gas-defs.exp: Use -i in expect_after command.
123 * gas/mips/mul.d,jal.d: Fix 0-strings to work with 64-bit hosted
126 * gas/ieee-fp: Renamed from ieee.fp.
128 * lib/gas-defs.exp: Make sure timeout is at least 2 minutes.
132 * gas/hppa/parse: Renamed from gas/hppa/more.parse.
136 * gas/hppa/more.parse/parse.exp (nosubspace.s): No longer expected
137 to fail. Fix comments for the test. Tweak test name.
141 * gas/hppa/reloc/reloc.exp: Minor tweaks to match current PA ELF
146 * gas/mips/ld.d: Adjust to work for both big and little endian
148 * gas/mips/ld.s, gas/mips/lif-empic.d: Likewise.
149 * gas/mips/lifloat.d, gas/mips/ulh-empic.d: Likewise.
150 * gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d: Likewise.
151 * gas/mips/usw.d: Likewise.
155 * gas/hppa/unsorted/align4.s: New test.
156 * gas/hppa/unsorted/unsorted.exp: Run it.
158 * gas/hppa/unsorted/unsorted.exp (importbug): Tweak to match
159 current expected PA ELF output.
160 * gas/hppa/reloc/reloc.exp (do_r_no_reloc): Likewise.
161 (do_plabel_relocation_test): Likewise.
165 * gas/all/p1480.s: Use larger constant, so expression can have a
167 * gas/all/gas.exp: Expect p1480.s without listings to pass.
171 * gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d, gas/mips/usw.d:
176 * gas/hppa/reloc/blebug3.s: New test.
177 * gas/hppa/reloc/reloc.exp: Run it.
181 * gas/hppa/reloc/reduce3.s: New test.
182 * gas/hppa/reloc/reloc.exp: Run it.
186 * gas/hppa/reloc/reloc.exp (r_no_reloc): Tweak output to match
191 * gas/hppa/reloc/reduce.s: Renamed from relocreduce.s
192 * gas/hppa/reloc/reduce2.s: Renamed from relocreduce2.s
193 * gas/hppa/reloc/r_no_reloc.s: Renamed from r_no_relocbug.s
194 * gas/hppa/reloc/reloc.exp: Changed accordingly.
198 * gas/mips/beq.d, gas/mips/beq.s: Test that unconditional branch
199 overflows are correctly converted to jumps.
203 * gas/mips: Add test cases for PIC code, both SVR4 style and
204 -membedded-pic style.
208 * gas/mips: New directory with MIPS specific test cases.
210 * lib/gas-defs.exp (run_dump_test): Permit the .d file to specify
211 the name of the source file to assemble.
212 (regexp_diff): Put the reason for failure in the log file.
216 * lib/gas-defs.exp: Don't try to use shell redirection, since TCL
217 doesn't support it. Redirect stdout using > instead of 1>, and
218 don't bother to redirect stderr since TCL redirects it anyhow.
219 (run_dump_test): Pass appropriate arguments to program, defaulting
224 * gas/vax: New directory.
225 * gas/vax/{quad.s,quad.exp}: New test, for immediate quadword
230 * gas/hppa/reloc/r_no_relocbug.s: New test.
231 * gas/hppa/reloc/reloc.exp: Run it.
233 * gas/hppa/reloc/reloc.exp (do_function_reloc_bug): Update
238 * gas/arm/*: New subtree. Add ARM tests.
242 * gas/hppa/unsorted/unsorted.exp: Accept any character
243 between foo's type and foo itself.
247 * lib/gas-defs.exp (run_dump_test): New routine for running the
248 assembler, running objdump or nm (not fully supported) on the
249 resulting object file, and comparing the results against a file of
250 regular expressions in the test suite, all in one command.
251 Options for the assembler and objdump are read from comments at
252 the start of the .d file.
253 (fail_phase, slurp_options): New auxiliary routines.
254 (regexp_diff): Always return a value. Fix bugs in actually doing
257 * gas/sun4/addend.exp: Use run_dump_test.
258 * gas/sun4/addend.d: Fix regular expressions so that they work.
262 * gas/hppa/reloc/relocreduce2.s: More relocation reduction tests.
263 * gas/hppa/reloc/reloc.exp: Run them.
267 * config/default.exp: Look for "as.new" in "$base_dir/..", where
268 it got compiled, not in "$base_dir".
269 * config/unknown.exp: Deleted.
273 * gas/lib/gas-defs.exp (gas_finish): Call "close" and "wait"
274 before exiting. Enclose both calls inside a "catch".
275 (objdump_finish): Likewise.
279 * gas/hppa/reloc/reloc.exp (roundmode test): Tweak expected output
280 for SOM to match current testcase.
284 * gas/i386/{pushw.s,pushw.l}: New test.
285 * gas/i386/all.exp: Run it.
287 * Makefile.in (distclean): Remove site config files and gas.sum.
291 * gas/m68k/disperr.s: Use % for registers.
293 * gas/m68k-coff/gas.exp: Expect failure for p2389a.s.
297 * lib/gas-defs.exp: Replace error proc calls with perror calls.
301 * gas/hppa/reloc/reloc.exp: Tweak expected output to match new
303 * gas/hppa/reloc/roundmode.s: Avoid "S" and "D" modes, ELF does
305 * gas/hppa/unsorted/unsorted.exp: Tweak expected output to match
310 * config/default.exp: Renamed from unix-gas.exp.
314 * Makefile.in (check): Set TCL_LIBRARY for runtest.
318 * gas/hppa/more.parse/callinfobug.s: Add missing name for
321 * gas/hppa/reloc/funcrelocbug.s: Place the trampoline in the
322 $DATA$ rather than $LIT$ subspace.
326 * gas/hppa/reloc/funcrelocbug.s: New test.
327 * gas/hppa/reloc/reloc.exp: Run it.
331 * gas/hppa/unsorted/importbug.s: New test.
332 * gas/hppa/unsorted/unsorted.exp: Run it.
336 * gas/hppa/more.parse/regpopbug.s: Add trivial .equ test.
338 * gas/hppa/unsorted/globalbug.s: New test (expected to fail).
339 * gas/hppa/unsorted/unsorted.exp: Run it.
341 * gas/hppa/more.parse/callinfobug.s: New test.
342 * gas/hppa/omre.parse/parse.exp: Run it.
344 * gas/hppa/more.parse/regpopbug.s: New test.
345 * gas/hppa/more.parse/parse.exp: Run it.
349 * lib/gas-defs.exp (objdump): New proc.
350 (objdump_start): Deleted unused proc.
351 (objdump_start_common): Merged into objdump_start_no_subdir.
353 * gas/alpha/fp.exp: Use objdump instead of
354 objdump_start_no_subdir, since the former actually waits for
355 objdump to finish. Specify .rdata section only. Make comment
356 indicate Alpha architecture rather than SPARC.
357 * gas/alpha/fp.d: Omit .reginfo patterns. Just use "." to match
358 against ASCII code 0x2a ("*", special in regexp).
359 * gas/sun4/addend.exp: Use objdump instead of
360 objdump_start_no_subdir.
364 * gas/hppa/more.parse/parse.exp (no subspace test): Only expect
365 a failure if gas is not producing an ELF object.
369 * gas/hppa/basic/fmemLRbug.s: New test.
370 * gas/hppa/basic/basic.exp: Run it.
374 * gas/alpha/fp.*: New files.
375 * lib/gas-defs.exp (regexp_diff): Report noted mismatch at
376 verbosity level 3 or above only.
380 * gas/hppa/*/*.exp: Change xfails to check for PA ELF rather than
385 * gas/hppa/more.parse/xmpyubug.s: New test.
386 * gas/hppa/more.parse/parse.exp: Run it.
390 * lib/gas-defs.exp (regexp_diff): New procedure, vaguely based on
391 "simple_diff" from linker test suite.
392 * gas/sun4/addend.exp: Use it.
393 * gas/sun4/addend.d: New file.
397 * gas/all/gas.exp: Adjust regexp for x930509.s for current listing
402 * gas/all/gas.exp, lib/gas-defs.exp, sun4/addend.exp,
403 sparc-solaris/addend.exp: Tweaked to fix a few bugs and to run
404 well under either version of expect.
408 * gas/hppa/basic/fp_misc.s: Delete copr instruction. It's tested
410 * gas/hppa/basic/{copr, coprmem, spop}.s: New tests.
411 * gas/hppa/basic/basic.exp: Run them.
415 * gas/all/gas.exp: No longer expect difference of forward
417 * gas/all/x930509.s: Fix testcase to match how the expect code was
422 * gas/hppa/reloc/reloc.exp: Fix typo in last change. Latest test
423 for cross-subspace call bugs is no longer expected to fail.
425 * gas/hppa/more.parse/procbug.s: Add test for another bug relating
426 to having a function's label follow the .PROC directive.
430 * gas/hppa/reloc/reloc.exp: Add test for cross-subspace call bug
431 found while working on multiple $CODE$ subspace support.
435 * gas/hppa/more.parse/parse.exp: procbug.s is no longer expected
437 * gas/hppa/more.parse/procbug.s: Add missing .procend.
441 * gas/hppa/more.parse/labelbug.s: Add testcase for bug in last
446 * gas/hppa/more.parse/labelbug.s: Add more colonless label tests.
450 * Makefile.in (site.exp): Don't set ASFLAGS. Quote value of
451 OBJDUMPFLAGS in case it's empty. Use temporary names until the
452 end; make creating site.exp the final step.
453 (check): Pass in ASFLAGS.
455 * gas/all/gas.exp: Use all_ones proc. Change regexp for matching
456 C comments to avoid bugs in latest expect code.
460 * gas/m68k/disperr.s: New test.
461 * gas/m68k/all.exp: Run it.
465 * gas/hppa/reloc/roundmode.s: New test.
466 * gas/hppa/reloc/reloc.exp: Run it. Fix typo in last change.
470 * gas/hppa/reloc/reloc.exp: Run the first half of bogus R_EXIT
475 * gas/hppa/more.parse/parse.exp: Test for error on for subspace
476 directive is an XFAIL for SOM assmeblers.
478 * gas/hppa/reloc/reloc.exp: Remove XFAIL for relocation on
479 cross-subspace call test.
483 * gas/hppa/more.parse/appbug.s: New test.
484 * gas/hppa/more.parse/parse.exp: Run it.
486 * gas/hppa/unsorted/align3.s: New test.
487 * gas/hppa/unsorted/unsorted.exp: Run it.
491 * gas/all/p2425.s: Insert a tab before assembler directives so
492 that the directives are not interpreted as labels.
494 * gas/hppa/basic/weird.s: Sync with GDB version.
496 * gas/hppa/more.parse/labelbug.s: New test.
498 * gas/hppa/more.parse/parse.exp: Run it.
502 * gas/hppa/reloc/fixupbug.s: New test.
503 * gas/hppa/reloc/reloc.exp: Run it.
505 * gas/hppa/reloc/exitbug.s: New test.
506 * gas/hppa/reloc/reloc.exp: Run it.
510 * gas/hppa/reloc/reloc.exp: Minor fixes so that SOM & ELF can
511 share the same test code.
512 * gas/hppa/reloc/relocreduce.s: Likewise.
514 * gas/hppa/basic/fmem.s: Add quadword FP store instructions.
515 * gas/hppa/basic/basic.exp: Test quadword FP store instructions.
519 * gas/hppa/reloc/reloc.exp: No longer expect failure for
520 field selector on ble instruction test.
522 * gas/hppa/basic/basic.exp: No longer expect failures for
523 system instruction tests now that probei is fixed.
527 * gas/hppa/reloc/selectorbug.s: New test.
528 * gas/hppa/reloc/reloc.exp: Run it.
532 * gas/hppa/unsorted/fragbug.s: New test.
533 * gas/hppa/unsorted/unsorted.exp: Run it.
537 * Makefile.in: Changed RUNTESTFLAGS to RUNTEST_FLAGS
541 * gas/hppa/more.parse/{defbug.s, stdreg.s}: New tests.
542 * gas/hppa/more.parse/parse.exp: Run them.
546 * gas/hppa/reloc/reloc.exp (reloc_reduce): Correct offsets at
547 which specific relocations are expected to be found.
551 * gas/hppa/unsorted/unsorted.exp (ss_align): Remove OSF xfail.
553 * gas/hppa/more.parse/parse.exp: Add new test.
554 * gas/hppa/more.parse/ssbug.s: New test to make sure non-default
555 sections are handled correctly.
557 * gas/all/gas.exp: Disable (and fail) p1480.s for all PA targets.
561 * gas/hppa/more.parse/calldatabug.s: Colonize.
562 * gas/hppa/more.parse/parse.exp: Fix typos.
566 * gas/hppa/{basic, more.parse, reloc, unsorted}: New directories.
567 * gas/hppa/*/*.exp: New test drivers.
568 * gas/hppa/*/*.s: New test files.
572 * gas/sun4: New directory.
573 * gas/sun4/addend.s,addend.exp: New test case.
574 * gas/sparc-solaris/addend.s,addend.exp: Solaris version of same
577 * gas/all/gas.exp: Check `*' in C comments.
579 * lib/gas-defs.exp (all_ones): New procedure, for a predicate to
581 (want_no_output): Return zero or nonzero, depending on success or
583 (gas_test_old): Return value from want_no_output.
584 (objdump_start_common): Split off from objdump_start.
585 (objdump_start_no_subdir): New procedure.
589 * gas/all/diff1.s, gas/m68k/pic1.s: New tests.
590 * gas/all/gas.exp, gas/m68k/all.exp: Run them.
592 * Makefile.in (OBJDUMP_FOR_TARGET): Define similar to
594 (check): Don't pass ASFLAGS variable.
595 (site.exp): Put ASFLAGS, OBJDUMP, OBJDUMPFLAGS into site.exp.
599 * lib/gas-defs.exp (objdump_start, objdump_finish): New functions
600 so that tests can parse the output of objdump looking for errors
601 in relocation entires, file headers and the like.
605 * gas/ieee.fp/x930509a.exp: Currently expected to fail always.
606 * gas/all/gas.exp (p1480.s, x930509.s): Ditto. Break up gas_test
607 call so it no longer performs multiple tests.
608 * gas/m68k/all.exp (t2.s): Don't bother with listings.
609 (p2410.s): Don't pass unwanted arguments to gas_test_error.
613 * lib/do*: Remove RCS id strings.
617 * gas/all/float.s, gas/all/p1480.s, gas/m68k/p2410.s: New tests.
618 * gas/all/gas.exp, gas/m68k/all.exp: Run them.
619 * gas/i386: New directory.
623 * Added directory structure, to categorize tests by targets.
624 * Added new tests all/x930509.s, ieee.fp/x930509a.s, m68k/p2663.s,
625 and refined some to examine the assembler listing output.
626 * lib/gas-defs.exp: Renamed gas_start to gas_run. Added some
627 expect_after patterns.
628 (gas_start, gas_finish): New procs, for tests that examine process
630 * config/unix-gas.exp: Invoke gas_init directly, instead of
631 requiring test .exp files do it.
635 * gas/gas.exp: Handle new tests, and changes to testing procs.
637 * lib/gas-defs.exp (want_no_output): New proc; success iff output
639 (gas_test_old): Functionally same as old gas_test.
640 (gas_test_ignore_stdout): Rewritten to use want_no_output.
641 (gas_test): New argument lists set of options to be tried in
642 combinations. Option with trailing ">" indicates standard output
645 * gas/p2425a.s: Use %-form for registers, so this test can be run
646 on m68k-coff targets too.
648 * gas/p2430a.s: New test case, whitespace &c matches customer
649 report more closely. Gets different results from p2430.s; this is
650 bad, and not yet tested for.
654 * gas/p2389a.s, gas/p2411.s, gas/t2.s: New test cases.
655 * lib/run: New script.
656 * gas/gas-defs.exp (gas_start): Takes new args, assembler options
657 and redirection options. Use "run" script so redirection works.
658 (gas_test): Now takes assembler options as separate arg from input
660 (gas_test_ignore_stdout): New proc. Discards output.
661 (gas_test_error): New proc. Expects assembler to generate output.
662 (target_cpu_family setting): Handle i486->i386 also.
664 * lib/do*: Scripts moved here from gas/testscripts. May be useful
665 someday for writing more test cases; not currently used.
669 * gas/sol-gcc.s, gas/sol-cc.s, gas/p2425a.s, gas/p2389.s: New test
671 * gas/gas.exp: Enable them for appropriate targets. Removed some
672 useless comments &c. Changed m68k target test to be more general.
674 * lib/gas-defs.exp (gas_exit, gas_init): New procs.
675 * gas/gas.exp: Call gas_init.
679 * Test suite created.