Commit Graph

105 Commits

Author SHA1 Message Date
Diego Novillo 64a0c77978 2000-10-24 Diego Novillo <dnovillo@cygnus.com>
* tc-i386.c (i386_operand_modifier): Remove.
	(build_displacement_string): Remove.
	(i386_parse_seg): Remove.
	(i386_intel_memory_operand): Remove.
	(i386_intel_operand): Re-write using recursive descent parser based
	on MASM documentation.
	(struct intel_parser_s): New structure.
	(intel_parser): New static variable.
	(struct intel_token): New structure.
	(cur_token, prev_token): New static variables.
	(T_NIL): Define.
	(T_CONST): Define.
	(T_REG): Define.
	(T_BYTE): Define.
	(T_WORD): Define.
	(T_DWORD): Define.
	(T_QWORD): Define.
	(T_XWORD): Define.
	(T_SHORT): Define.
	(T_OFFSET): Define.
	(T_PTR): Define.
	(T_ID): Define.
	(intel_match_token): New function.
	(intel_get_token): New function.
	(intel_putback_token): New function.
	(intel_expr): New function.
	(intel_e05): New function.
	(intel_e05_1): New function.
	(intel_e06): New function.
	(intel_e06_1): New function.
	(intel_e09): New function.
	(intel_e09_1): New function.
	(intel_e10): New function.
	(intel_e10_1): New function.
	(intel_e11): New function.

2000-10-24  Diego Novillo  <dnovillo@cygnus.com>

	* intel.s, intel.d: Add new tests for intel syntax.
2000-10-25 01:39:11 +00:00
Alan Modra 73cd359e15 Ensure section sizes are multiples of 16, so that targets like MIPS
that pad out sections won't fail these tests.
2000-10-19 03:19:51 +00:00
H.J. Lu 476d4b9b97 2000-10-18 H.J. Lu <hjl@gnu.org>
* gas/i386/intel.d: Fix the support for 64bit BFD in the last
	change.
2000-10-18 19:46:28 +00:00
Diego Novillo 6588847e4f gas:
2000-10-15  Diego Novillo  <dnovillo@cygnus.com>

	* config/tc-i386.c (i386_operand_modifier): Only match
	modifiers SHORT and FLAT if they are followed by a space.
	(parse_register): When `allow_naked_reg' is set, do not confuse
	identifiers that start with a register name with a register.

gas/testsuite:

2000-10-15  Diego Novillo  <dnovillo@cygnus.com>

	* intel.s, intel.d: Add new tests for naked registers using intel
	syntax.
2000-10-15 06:17:36 +00:00
Hans-Peter Nilsson 2e968471c5 Oops. Forgot to commit ChangeLog 2000-09-29 18:40:19 +00:00
Hans-Peter Nilsson 37260204fd * gas/cris/regprefix-err-1.s, gas/cris/rd-regprefix-1.s,
gas/cris/rd-regprefix-1.d, gas/cris/rd-regprefix-1b.d,
	gas/cris/us-err-1.s, gas/cris/us-err-2.s, gas/cris/us-err-3.s: New.
	* gas/cris/cris.exp: Loop run_dump_test over files matching rd-*.d.
2000-09-29 18:39:31 +00:00
Alan Modra 170cdc4f01 Update for hppa*w -> hppa*64* configure name change. 2000-09-28 10:16:34 +00:00
Alan Modra 9a6355046e Modify .PARAM so we need an arg reloc. 2000-09-28 08:43:21 +00:00
Jim Wilson d48ad4f3b6 Add missing fpcmp instructions, and add missing fcmp/fpcmp tests.
* gas/ia64/opc-f.pl: Add missing fcmp and fpcmp tests.
	* gas/ia64/opc-f.s, gas/ia64/opc-f.d: Regenerate.
	* ia64-opc-f.c (ia64_opcodes_f): Add fpcmp pseudo-ops for
	gt, ge, ngt, and nge.
	* ia64-asmtab.c: Regenerate.
2000-09-22 22:34:41 +00:00
Jim Wilson 139368c9f3 Fix ia64 gas testsuite. Update ia64 DV tables. Fix ia64 gas testsuite again.
gas/ChangeLog
	* config/tc-ia64.c (dv_sem): Add "stop".
	(specify_resource, case IA64_RS_PR): Only handles regs 1 to 15 now.
	(specify_resource, case IA64_RS_PRr): New for regs 16 to 62.
	(specify_resource, case IA64_RS_PR63): Reorder (note == 7) test to
	match above.
	(mark_resources): Check IA64_RS_PRr.
gas/testsuite/ChangeLog
	* gas/ia64/dv-raw-err.s: Add new testcases for PR%, 16 - 62.
	* gas/ia64/dv-waw-err.s: Likewise.
	* gas/ia64/dv-imply.d: Regenerate.
	* gas/ia64/dv-mutex.d, gas/ia64/dv-raw-err.l, gas/ia64/dv-safe.d,
	gas/ia64/dv-srlz.d, gas/ia64/dv-war-err.l, gas/ia64/dv-waw-err.l,
	gas/ia64/opc-f.d, gas/ia64/opc-i.d, gas/ia64/opc-m.d: Likewise.
include/opcode/ChangeLog
	* ia64.h (enum ia64_dependency_semantics): Add IA64_DVS_STOP.
opcodes/ChangeLog
	* ia64-dis.c (print_insn_ia64): Revert Aug 7 byte skip count change.
	* ia64-gen.c (parse_semantics): Handle IA64_DVS_STOP.
	(lookup_specifier): Handle "PR%, 1 to 15" and "PR%, 16 to 62".
	* ia64-ic.tbl, ia64-raw.tbl, ia64-war.tbl, ia64-waw.tbl: Update.
	* ia64-asmtab.c: Regnerate.
2000-09-22 19:43:50 +00:00
Timothy Wall 7484b8e6d9 Eliminate false DVs on parallel compares. 2000-09-14 21:37:04 +00:00
Alan Modra 927781e250 Miscellaneous tiny fixes. 2000-09-05 03:53:02 +00:00
Timothy Wall 9a8f29e36f Fix some ia64 gas failures. 2000-08-29 12:15:51 +00:00
H.J. Lu 5e0c222624 2000-08-21 H.J. Lu <hjl@gnu.org>
* gas/all/cofftag.d: Support the strict COFF.
2000-08-22 19:11:55 +00:00
Jim Wilson 50b81f1903 Fix 3 DV bugs, and a few minor cleanups.
gas/
	* config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle
	postincrement modified registers.  Handle IA64_OPND_R3_2 addl
	source registers.
	(note_register_values): Handle IA64_OPND_R3_2 operands.
gas/testsuite/
	* gas/ia64/dv-raw-err.s: Add new tests for addl and postinc.
	* gas/ia64/dv-raw-err.l: Likewise.
	* gas/ia64/dv-waw-err.l: Update sed pattern.
	* gas/ia64/opc-f.pl: Delete fpsub, and fpadd comment.
	* gas/ia64/opc-f.s, gas/ia64/opc-f.d: Regenerate.
include/opcode/
	* ia64.h (IA64_OPCODE_POSTINC): New.
opcodes/
	* ia64-ic.tbl (pr-readers-nobr-nomovpr): Add addl, adds.  Delete
	break, mov-immediate, nop.
	* ia64-opc-f.c: Delete fpsub instructions.
	* ia64-opc-m.c: Add POSTINC to all instructions with postincrement
	address operand.  Rewrite using macros to avoid long lines.
	* ia64-opc.h (POSTINC): Define.
	* ia64-asmtab.c: Regenerate.
2000-08-16 23:20:15 +00:00
Nick Clifton 8cb8bcbabb Tidy up decoding of shift based addressing modes.
Add extra tests for these addressing modes
2000-08-16 19:02:00 +00:00
Hans-Peter Nilsson e5da6f528f Forgot to commit ChangeLog entry for CRIS gas tests. Oops. 2000-07-21 00:57:47 +00:00
Hans-Peter Nilsson a471a06b87 * gas/cris/*: New tests for CRIS. 2000-07-21 00:48:55 +00:00
Hans-Peter Nilsson 483f05e373 * gas/all/gas.exp: Don't run floating-point tests on CRIS.
* gas/ieee-fp/x930509a.exp: Ditto.
	* gas/macros/macros.exp: Mark strings test xfail for CRIS.
2000-07-20 17:53:38 +00:00
Alan Modra 81366cb8f6 Fix a couple of HPPA SOM test failures.
Re-enable some tests for hppa-linux.
2000-07-19 04:55:14 +00:00
Nick Clifton 4b43d9f691 Fix expected results to match current assembler output. 2000-07-18 22:07:53 +00:00
Alan Modra 4b6341e9d2 Yet more hppa testuite tweaks for hppa-linux. 2000-07-10 15:21:05 +00:00
Nick Clifton 97b39d03ca Fix expected results
Fix expected results.
2000-07-05 22:28:07 +00:00
Nick Clifton fbe1e41fe2 Change the registers used in ldmac and stmac tests. 2000-06-29 23:44:41 +00:00
Nick Clifton 6b2539e3e6 Do not allow EITHER_BUT_PREFER_MU opcodes to be packed into reverse
sequential buckets, and warn if the user does so.
2000-06-27 18:21:39 +00:00
Timothy Wall 39bec121fb TI C54x target. 2000-06-20 13:52:32 +00:00
Nick Clifton 60bcf0fa8c Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support
for m68hc11 and m68hc12 processors.
2000-06-19 01:22:44 +00:00
Alan Modra 55d98a80d4 Don't start directives in first column. 2000-06-17 12:09:58 +00:00
H.J. Lu 8e1b6ed697 2000-06-14 H.J. Lu <hjl@gnu.org>
* gas/macros/strings.d: Support a.out and coff.
2000-06-14 18:12:26 +00:00
Nick Clifton 88830cd102 Remove 'mrs r9, cpsr_all' since the cpsr_all flag is no longer legal syntax. 2000-06-14 18:08:24 +00:00
Nick Clifton aa787a8959 Add test of macro expansion of string arguments. 2000-06-13 21:23:28 +00:00
Alan Modra a6b9488aec Modify test to check line separator works. 2000-06-04 23:14:30 +00:00
Nick Clifton 992403b686 Update copyright dates 2000-05-29 20:10:32 +00:00
Nick Clifton 4b62050960 Do not run test sfor c54x 2000-05-29 20:04:54 +00:00
Hans-Peter Nilsson f48026f7d7 * gas/elf/elf.exp: Exclude *-*-linux*coff* as non-elf. 2000-05-21 18:06:40 +00:00
Nick Clifton 322f2c4579 Add support for _x and _s flags to MSR instruction 2000-05-15 19:25:22 +00:00
Alan Modra de950844b3 Ulf Carlsson's patches:
Include *-*-linux* in svr4pic tests
Test weak symbol handling.
2000-05-11 01:55:11 +00:00
Alan Modra 575bc3d64a Fix breakage from 2000-03-31 bfd/srec.c change. 2000-05-08 10:11:19 +00:00
Alan Modra 36f8992610 Duplicate hppa*-*-*elf* behaviour for hppa*-*-linux*.
Fix elf tests for targets that define LABELS_WITHOUT_COLONS.
2000-05-01 23:56:49 +00:00
Nick Clifton 7fca9a7240 Fix tests to remove leading zeroes from labels 2000-05-01 18:08:39 +00:00
Alan Modra ee68970f7e Cope with PE relocs. 2000-04-25 07:19:46 +00:00
Jim Wilson 8d82e76a9d Really fix last IA-64 gas testsuite failure.
* gas/ia64/opc-i.d: Change pmin2.u to pmin2.  Change pmax2.u to pmax2.
	Change MLI to MLX.  Switch operands for output matching tbit.z.orcm,
	tbit.z.andcm, tbit.nz.orcm, tbit.nz.andcm, tnat.z.orcm, tnat.z.andcm,
	tnat.nz.orcm, tnat.nz.andcm inputs.
	* gas/ia64/opc-i.pl: Insert padding nops before last dep.
	* gas/ia64/opc-i.s: Regenerate.
2000-04-25 01:52:27 +00:00
Jim Wilson c447920894 Fix last remaining IA-64 gas testsuite failure.
* gas/ia64/opc-i.s: Regenerate.
	* gas/ia64/opc-f.pl: Add explicit stop at end.
2000-04-24 23:53:54 +00:00
Timothy Wall bf3ca999c1 Clean up F-unit assembly and tests. 2000-04-23 02:53:35 +00:00
Jim Wilson 800eeca487 IA-64 ELF support. 2000-04-21 20:22:24 +00:00
Alan Modra 71851002d0 Add 16-bit immediate tests. 2000-04-03 12:20:55 +00:00
Alexandre Oliva 31254b20c5 * gas/mn10300/am33_5.s: Check that negative SP offsets are encoded
with 32 bits, not with the unsigned shorter opcodes.
* gas/mn10300/basic.exp: Likewise.
2000-04-01 23:46:53 +00:00
Alexandre Oliva 77f42f92d5 * lib/gas-defs.exp (regexp_diff): Don't break on the first
difference, list them all.
2000-03-31 18:54:24 +00:00
Nick Clifton d1a1bf19b4 Add "bal" instruction pattern.
Add test of assembling "bal" instruction
2000-03-29 18:25:37 +00:00
Alan Modra 224de7a50d Default LISTING_LHS_WIDTH to depend on LISTING_WORD_SIZE so that bytes per
line is 4.  Fix tests for LISTING_WORD_SIZE==1.
2000-03-27 23:47:09 +00:00