David Edelsohn
02465e5628
Fix patterns.
1995-04-10 08:12:12 +00:00
David Edelsohn
5ceb5916f0
Delete illegal insns.
1995-04-10 08:11:59 +00:00
David Edelsohn
c39cd01b14
(test_template_insn): Delete .s/.d files afterwards.
...
(main body): Run ld, st tests.
1995-04-10 07:36:06 +00:00
David Edelsohn
d1f32b4e46
* gas/arc/{ld.[sd],st.[sd]}: New files.
1995-04-10 07:34:05 +00:00
David Edelsohn
4bc30d8131
Tests for ld, lr, st, sr insns.
1995-04-10 07:32:57 +00:00
David Edelsohn
d874fb48fa
shimm values "are always signed"
1995-04-10 06:54:14 +00:00
David Edelsohn
4028415325
More ARC stuff.
1995-04-09 00:47:26 +00:00
David Edelsohn
c4ec94c9d6
Test extended shifts, mul64/mulu64 insns.
1995-04-09 00:22:54 +00:00
David Edelsohn
3a5e9b6e86
(test_template_insn): Document usage.
...
New parameter `cpu', callers updated.
(main body): Test host/graphics/audio extensions.
Test ext/sex insns.
1995-04-08 23:43:39 +00:00
David Edelsohn
48fb4d9f90
Tests for various insn3 insns (eg: ext, sex).
1995-04-08 23:25:34 +00:00
David Edelsohn
d4e91451d7
* gas/arc/{arc.exp,math.[sd],flag.[sd],j.[sd]}: New files.
...
* gas/arc/{branch.[sd],alias.[sd],sshift.[sd]}: New files.
1995-04-08 23:10:39 +00:00
David Edelsohn
04b8d170c1
More tests.
1995-04-08 23:09:56 +00:00
David Edelsohn
32b1930be2
Tests for single bit versions of asr, lsr, ror, rrc.
1995-04-08 23:09:22 +00:00
David Edelsohn
673f0762f6
Testcases for mov, rlc, asl.
1995-04-08 22:31:23 +00:00
David Edelsohn
4f1fc8f9c2
Stay away from duplicate arguments, will collide with aliases (eg: and->mov).
1995-04-08 22:06:24 +00:00
David Edelsohn
e6d7eb499e
Testcases for b, bl, and lp insns.
1995-04-08 20:33:35 +00:00
David Edelsohn
02cc32c5c3
Start of ARC testsuite.
1995-04-08 19:58:59 +00:00
David Edelsohn
ac2bed8708
keep arc subdir if keep-arc.
1995-04-08 19:53:24 +00:00
David Edelsohn
003587bd1f
* lib/gas-defs.exp (run_dump_test): Handle arguments with paths.
...
Always resolve testcase status before returning.
If `slurp_options' fails, return and don't do test.
(slurp_options): Fix "can't open" error message.
Return -1 to indicate error.
1995-04-08 19:51:42 +00:00
David Edelsohn
91e3b58270
*** empty log message ***
1995-04-08 19:50:44 +00:00
David Edelsohn
47ba63b2bb
ARC stuff.
1995-04-07 03:14:12 +00:00
David Edelsohn
5acf432d3f
* config/tc-arc.c (arc_condition_codes): Deleted.
...
(init_opcode_tables): Delete cpu_type_map, call
arc_get_opcode_mach instead.
(arc_common): Delete non-ELF stuff. Require leading '.' in .data.
(md_apply_fix): Delete non-ELF stuff.
Disable special handling of limm values, treat them normally.
(get_arc_exp_reloc_type): New argument `data_p'. Callers updated.
(md_assemble): All limm operands must be output by gas, the opcode
insertion routines cannot be used (they don't do anything and we're
using implicit addends now so we need to output something).
* config/tc-arc.h (FAKE_LABEL_NAME): Define.
1995-04-07 03:13:42 +00:00
Torbjorn Granlund
6d7bcd2f26
Changes for hosting on 64 bit machines.
1995-03-30 01:18:40 +00:00
Ian Lance Taylor
350f083c5f
* config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650.
1995-03-21 21:54:25 +00:00
Jeff Law
9f2c5c9751
* gas/hppa/unsorted/common.s: New test.
...
* gas/hppa/unsorted/unsorted.exp: Run it.
1995-03-21 05:47:14 +00:00
Stan Shebs
f64fd87f2b
* mpw-config.in (TDEFINES): Put empty definition into
...
makefile fragment.
* mpw-make.in (xmalloc.c.o): Remove.
(as.new): Depend on Version.r.
(Version.r): Generate from version info.
1995-03-18 00:50:51 +00:00
Jeff Law
bff1e14da7
* config/tc-hppa.c (pa_comm): Make sure to always reset the frag
...
and section for common symbols.
1995-03-17 19:42:22 +00:00
Ian Lance Taylor
e5926c4a4c
* ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
...
may be NULL when given strange input. Don't core dump.
PR 6509.
1995-03-15 19:47:15 +00:00
Ian Lance Taylor
a7f668c02f
* config/tc-mips.c (load_register): Don't use addiu for dli of an
...
unsigned seemingly negative number. Don't bother shifting a zero
value.
(mips_ip): For case 'j', if there are more alternatives, and the
ISA level is at least 3, don't accept an unsigned seemingly
negative number.
1995-03-15 02:39:39 +00:00
Ken Raeburn
f6bc42a3c0
* read.c (s_app_line): Fix last patch to deal with a line number of 1.
1995-03-15 00:44:25 +00:00
Michael Meissner
ce9a280583
Warn rather than cause an error if the reloc is not compatible with -mrelocatable.
1995-03-14 22:05:48 +00:00
Ken Raeburn
85a30e5978
Mon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
...
* config/tc-vax.c (md_assemble): issue a warning if a constant
is used as an operand where an immediate value is not allowed.
1995-03-14 02:27:26 +00:00
Ken Raeburn
78fcad5848
* config/obj-coff.c: Redo my 10 Jan change, but get it right this time. :-)
...
(fixup_segment): If linkrelax is set, just return.
(write_object_file): Don't treat h8300 and z8k specially with regard to fixups.
* config/tc-h8300.c (md_begin): Set linkrelax.
* config/tc-z8k.c (md_begin): Ditto.
1995-03-11 00:30:30 +00:00
Ken Raeburn
13641953c5
* gas/h8300/ffxx1.s: Add .word 0 at the end to eliminate uncertainty as to
...
whether there should be trailing bytes in the output file.
* gas/h8300/ffxx1.d: Adjust reloc values to permit an addend value of
0x00000000ffffffff on 64-bit hosts. (I'm not sure if this is correct.) End
with "..." to match trailing zero bytes.
1995-03-11 00:17:26 +00:00
Ken Raeburn
0eb1f9cefa
whitespace/comment formatting
1995-03-10 22:33:28 +00:00
Ian Lance Taylor
5fc2a6ecd2
* config/obj-coff.c (coff_header_append): Check return value of
...
bfd_coff_swap_scnhdr_out.
1995-03-09 23:02:43 +00:00
David Edelsohn
9a6ec5ebd1
Delete this patch, it breaks the h8300 assembler.
...
Tue Jan 10 13:34:14 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
specially with regard to fixups.
1995-03-09 21:54:14 +00:00
David Edelsohn
df0f11ff33
Delete this patch, it breaks the h8300 assembler.
...
* config/obj-coff.c (write_object_file): Don't treat h8300 and z8k
specially with regard to fixups.
1995-03-09 21:51:42 +00:00
Ken Raeburn
f3a01d90ed
keep new mips4 test files
1995-03-09 20:28:14 +00:00
Ian Lance Taylor
27326785a5
* gas/mips/mips4.d, gas/mips/mips4.s: New files.
...
* gas/mips/mips.exp: Run new test.
1995-03-08 20:51:35 +00:00
Ian Lance Taylor
a79bf95d03
* config/tc-mips.c (md_begin): Check for a cpu string of r8000 or
...
r10000. If mips_isa is 4, set the machine number to 8000.
(append_insn): If mips_isa is at least 4, don't generate nops for
coprocessor delays. Check INSN_READ_FPR_R when setting
mips_cprmask[1].
(mips_emit_delays): If mips_isa is at least 4, don't generate nops
for coprocessor delays.
(mips_ip): Check for INSN_ISA4 instructions. Handle new argument
types 'h', 'R', 'N', and 'M'.
(md_longopts): Accept "mips4".
(md_parse_option): Handle -mips4, and -mcpu=10000 and -mcpu=8000.
(s_mipsset): Permit .set mips4.
1995-03-08 20:46:47 +00:00
Michael Meissner
74e1b52ea3
Allow .stab section to contain non PC relative addresses if -mrelocatable.
1995-03-08 15:03:50 +00:00
Ken Raeburn
82a7c4572a
* config/tc-m68k.c (opcode_ptr): Return pointer to const.
...
(md_begin): Make hash table errors fatal. Process opcode aliases after main
opcode table.
(md_apply_fix_2, case 4): Recode setting of lower_limit to avoid gcc warning.
1995-03-08 08:10:49 +00:00
David Edelsohn
3f4487d078
Patches to ARC to make byte order runtime selectable.
1995-03-08 04:47:31 +00:00
Ian Lance Taylor
3e39a55624
* doc/as.texinfo: Add documentation for SPARC V9, from Doug Evans
...
<dje@cygnus.com>.
1995-03-07 21:08:53 +00:00
Jeff Law
5f24161709
* config/tc-hppa.c: Change all occurences of pa-89 with pa-11 to
...
be consistent with current naming conventions.
(md_begin): Set a default architecture and machine type.
(pa_ip): If the current instruction specifies a newer machine type
than the current machine type, then update the current machine
type.
(need_pa11_opcode): Likewise.
1995-03-06 17:02:38 +00:00
Jeff Law
2c23d22bee
* config/tc-hppa.c (pa_ip, case 'z'): Don't lose argument
...
relocation bits for absolute calls.
1995-03-06 02:42:14 +00:00
Ken Raeburn
cb7973c33e
* config/tc-h8300.* (md_operand): Change empty function to empty macro.
...
* config/tc-h8300.c (build_bytes): Make H8/300-H warning message clearer.
1995-03-03 22:55:46 +00:00
Ken Raeburn
46f1280981
m68k entry i forgot to check in
1995-03-03 22:49:11 +00:00
Ken Raeburn
0578ade3f2
* write.c (write_contents): If bfd_set_section_contents fails, print a message
...
and exit, instead of aborting.
1995-03-03 22:44:04 +00:00
Michael Meissner
3f81f3cfe4
If -mrelocatable, warn about relocs that are incompatible.
1995-03-03 21:34:36 +00:00
Ken Raeburn
33d8f4697c
read.c, tc-* md_operand changes
1995-02-28 23:38:47 +00:00
Ken Raeburn
03678945bd
(md_operand): Replaced empty function in .c file with empty macro in .h file.
1995-02-28 23:37:38 +00:00
Ian Lance Taylor
0877841d73
* config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust PLT or
...
GOT relocs either.
1995-02-28 20:35:41 +00:00
Kung Hsu
d2c0206038
* configure.in: add a29k-*-vxworks configuration.
1995-02-27 21:05:00 +00:00
Ian Lance Taylor
6b67ed7865
tweak previous patch
1995-02-24 20:25:52 +00:00
Ian Lance Taylor
7811254cb0
* config/tc-mips.c (load_register): Correctly handle 32 bit values
...
with the high bit set in 64 bit mode.
PR 6381.
1995-02-24 19:42:43 +00:00
Jeff Law
e386acc8d7
* config/tc-hppa.c (md_apply_fix): Don't subtract the value of the
...
add symbol if it's a common symbol (the value of a common symbol
is its size, not a value in the traditional sense).
1995-02-23 06:16:35 +00:00
Ian Lance Taylor
546f553610
* config/tc-mips.c (append_insn): If listing_prev_line is called,
...
call frag_grow to make sure there is still room for a variant.
1995-02-23 02:20:57 +00:00
Jeff Law
d4a9bc73c1
Add missing ChangeLog entry.
1995-02-21 05:14:22 +00:00
Ian Lance Taylor
61420a2049
* config/tc-mips.c (md_pseudo_table): Add 2byte, 4byte and 8byte
...
if OBJ_ELF. From gary@Intrepid.COM (Gary Funck).
1995-02-17 20:13:41 +00:00
Ian Lance Taylor
7a3761e194
* config/obj-elf.c (elf_frob_symbol): Warn if a symbol is both
...
weak and common.
* config/obj-aout.c (obj_aout_frob_symbol): Likewise.
1995-02-17 19:54:47 +00:00
Michael Meissner
5836732bf5
Add PC relative support to PowerPC ELF assembler.
1995-02-17 17:51:00 +00:00
David Edelsohn
b8ed3de398
* expr.c (operand): Move md_operand handling to default case
...
(so it works).
1995-02-16 22:35:50 +00:00
Ian Lance Taylor
efc538bab9
Wed Feb 15 16:08:47 1995 Jason Molenda <crash@cygnus.com>
...
* config/tc-h8500.c (tc_coff_symbol_emit_hook): Add ignored
parameter, to match prototype.
1995-02-15 21:11:10 +00:00
Ian Lance Taylor
49ad0c4cf3
* config/tc-mips.c (md_apply_fix): Accept BFD_RELOC_16, for
...
DWARF. From gary@Intrepid.COM (Gary Funck).
1995-02-15 21:08:05 +00:00
Ian Lance Taylor
a93c34edf1
* gas/mips/uld.d: New file.
...
* gas/mips/uld.s: New file.
* gas/mips/usd.d: New file.
* gas/mips/usd.s: New file.
* gas/mips/mips.exp: Run new tests.
1995-02-15 20:45:35 +00:00
Ian Lance Taylor
adcf2b9d57
* config/tc-mips.c (macro): Handle M_U{L,S}D[_A] (unaligned double
...
loads and stores).
1995-02-15 20:43:57 +00:00
Ian Lance Taylor
34419a7fe3
Gas reloc handling reeks.
...
PR 6343.
1995-02-15 20:34:32 +00:00
Michael Meissner
4a6b2f8bbd
All ELF relocs.
1995-02-15 20:15:07 +00:00
Ian Lance Taylor
b2b8c24e2f
* config/tc-mips.c (macro): Don't use the target register as a
...
base register when building the address for M_L{W,D}{L,R}_AB.
1995-02-15 16:48:18 +00:00
Ian Lance Taylor
08b7351f06
* config/tc-sparc.h (tc_fix_adjustable): Define if OBJ_ELF.
...
* config/tc-sparc.c (md_apply_fix): If OBJ_ELF, subtract out the
value of a defined symbol; the value was added in by
fixup_segment. This was previously corrected, if the reloc was
changed to be against a section symbol, in tc_gen_reloc.
1995-02-13 21:18:22 +00:00
Ian Lance Taylor
e13a80f72f
* config/tc-i386.c (tc_i386_fix_adjustable): Use S_IS_EXTERN
...
rather than !S_IS_LOCAL.
You might think they would be equivalent, but....
1995-02-10 19:05:43 +00:00
David Edelsohn
31add5f0c9
* config/tc-arc.c (md_pseudo_table): Add .cpu.
...
(comment_chars): Add ';'.
(arc_mach_type, mach_type_specified, cpu_tables_init_p): New globals.
(md_parse_option): Delete support for -mmult. Add -mcpu=xxx.
(md_begin): Current ARCs are little endian.
Call bfd_set_arch_mach to set the cpu type.
(init_opcode_tables): New function.
(md_begin): Ignore suffixes and registers not supported by cpu.
(md_assemble): Initialize opcode tables here.
Ignore opcodes not supported by selected cpu.
Always ask for more memory in one piece.
(arc_cpu): New function.
(md_numbers_to_chars): Support both endians (will probably be needed
eventually anyway).
(md_apply_fix): Likewise.
1995-02-10 02:01:01 +00:00
David Edelsohn
2db01c3d52
* config/tc-arc.h (LOCAL_LABEL): Delete "_.L_", gcc works around
...
dwarfout.c quirk.
1995-02-10 02:00:43 +00:00
David Edelsohn
2ec8f45e6a
Lotsa arc stuff.
1995-02-10 02:00:13 +00:00
Ian Lance Taylor
79c4bb347e
* config/tc-i386.c (md_assemble): Adjust conditions for changing
...
BFD_RELOC_32 to BFD_RELOC_386_GOTPC to handle a switch in frags.
Patch originally from Rob Ryan <robr@cmu.edu>.
* config/tc-i386.c: Include subsegs.h.
(tc_i386_fix_adjustable): Declare return value.
(i386_operand): Don't use an assignment directly as a condition.
1995-02-09 23:19:27 +00:00
Jeff Law
257fcf3621
* gas/hppa/reloc/applybug.s: New test.
...
* gas/hppa/reloc/reloc.exp (do_applybug_test): Run it.
1995-02-09 17:58:59 +00:00
Jeff Law
e6d311352a
* config/tc-hppa.c (md_apply_fix): In some cases subtract the
...
value of the add symbol from valp. Offsets braindamage in the
"machine independent" fixup_segment.
1995-02-09 17:44:30 +00:00
Ken Raeburn
e10c7dfcf4
* messages.c (as_abort): New function.
...
* as.h (as_abort): Declare it.
(abort): New macro.
1995-02-08 23:57:26 +00:00
Ken Raeburn
15f146bec4
Thu Jan 19 18:10:05 1995 Pat Rankin (rankin@eql.caltech.edu)
...
* config/vms-conf.h (HAVE_UNISTD_H): define it unconditionally.
* config-gas.com: test for availability of <unistd.h>; create a rudimentary
one if necessary.
1995-02-08 23:52:51 +00:00
Michael Meissner
06c08e9a1f
Add support for powerpc-*-eabi in configure.in, rebuild configure.
1995-02-07 18:42:04 +00:00
Jeff Law
b4682e519f
Apparently I forgot to commit this change:
...
* config/tc-hppa.c (md_apply_fix): Go ahead and call
hppa_field_adjust to get a new value for R_DATA_ONE_SYMBOL
relocations in SOM.
(hppa_fix_adjustable): Refine somewhat.
1995-02-07 18:20:57 +00:00
Ken Raeburn
c54c7aaca3
Bryan Ford's changes for 16-bit i386 support, and i386-msdos support.
1995-02-06 08:53:05 +00:00
Ken Raeburn
b003a2d9ee
vms fixes from pat rankin
1995-02-02 21:33:40 +00:00
Ken Raeburn
b3b2623c31
under m68k description, indicate that only a subset of moto syntax is handled
1995-02-02 20:54:14 +00:00
Ken Raeburn
e2bf68803d
* config/tc-m68k.c (cpu32_control_regs): New macro.
...
(m68k_init_after_args): Use it, for cpu32 processors.
1995-02-02 20:23:15 +00:00
Ken Raeburn
f91ed64591
update copyright
1995-02-02 20:11:43 +00:00
Jeff Law
bd1738b89c
* gas/hppa/reloc/picreloc.c: New test.
...
* gas/hppa/reloc/reloc.exp (do_pic_relocation_test): Run it.
1995-02-02 07:39:23 +00:00
Ken Raeburn
e1affd5840
keep h8300 tests
1995-02-01 19:11:10 +00:00
Ken Raeburn
abd77746de
added two h8300 tests
1995-01-27 19:06:56 +00:00
Ken Raeburn
a18a0f225d
* config/tc-h8300.c (get_specific): Add parens around | inside &.
...
(skip_colonthing): Set L_8 if ":8" is specified.
1995-01-27 00:05:09 +00:00
Ian Lance Taylor
76e30835ad
* config/tc-ppc.c (md_begin): Permit mfdec to be duplicated on the
...
601. Check that the error return from hash_insert is "exists".
1995-01-26 23:41:12 +00:00
Michael Meissner
da8fa3ba29
Allow configuration of PowerPC embedded ABI.
1995-01-26 16:39:26 +00:00
Jim Wilson
8d9a1cce3f
* tc-sh.c (little): Add argument IGNORE to avoid compiler warnings.
...
(md_pseudo_table): Add space for consistent formatting.
(COND8_RANGE, COND12_RANGE): Delete unused macros.
(COND8_F, COND8_M, COND12_F, COND12_M, UNCOND12_F, UNCOND12_M):
Correct minimum and maximum branch offsets. Add comments explaining
why these numbers are correct.
1995-01-26 00:26:11 +00:00
Ian Lance Taylor
1eeb357e6a
Wed Jan 25 15:32:09 1995 David Edelsohn <edelsohn@mhpcc.edu>
...
* config/tc-ppc.c (md_parse_option): Accept mpwr2 as a synonym for
mpwrx; mppc32, m603, and m604 as synonyms for mppc; and mppc64 and
m620 for PowerPC64 mode.
(ppc_symbol_new_hook): Add T0 as synonym for TC0 suffix.
1995-01-25 20:43:50 +00:00
Ken Raeburn
f2224fe249
"gcc -fno-builtin -Wall -Wwrite-strings -Wshadow" can be your friend.
...
Well, sometimes.
Bunch of patches from Pat Rankin for cleaning up some warnings in vax-vms gas.
1995-01-24 21:56:29 +00:00
Jeff Law
359bb9a364
* config/tc-hppa.c (pa_ip, case 'D'): Fix typo which caused
...
miscompilation of "diag" instructions.
* gas/hppa/basic/basic.exp (do_system): Update.
1995-01-24 04:50:43 +00:00
Ken Raeburn
7343338436
configure regen, tc-mips.c libiberty.h include
1995-01-23 21:57:32 +00:00
Ken Raeburn
051fbc8919
regenerated
1995-01-23 21:56:46 +00:00