]> sourceware.org Git - cgen.git/log
cgen.git
21 years ago * mach.scm (current-*-add!): Disallow redefinition. Make result
Doug Evans [Tue, 10 Jun 2003 21:22:04 +0000 (21:22 +0000)]
* mach.scm (current-*-add!): Disallow redefinition.  Make result
"unspecified".
* insn.scm (insn-builtin!): Don't define relaxable here, now defined in
operand.scm.
* operand.scm (operand-builtin!): Define RELAXABLE for insns too.
* cpu/m32r.cpu (disp8,disp24): RELAX renamed to RELAXABLE.

* gen-all-doc: Split arm and frv docs up a bit.

* cpu/arm.cpu: Add IDOC attribute.
* cpu/frv.cpu: Ditto.
* cpu/i960.cpu: Ditto.
* cpu/openrisc.cpu: Ditto.
* cpu/xstormy16.cpu: Ditto.
* cpu/m32r.cpu: Ditto.
(all insns): Explicitly specify IDOC attribute.

* Makefile.am (MACH,ISAS,INSN_FILE_NAME): New vars.
(desc,opcodes,sim-arch,sim-cpu,gas-test,sim-test): Use MACH,ISAS.
(html): Use MACH,ISAS,INSN_FILE_NAME.  Generate insn.html separately.
* Makefile.in: Regenerate.
* attr.scm (<integer-attribute>:parse-value-def): Implement.
(-attr-read): Defer computing default value until we know the type.
(attr-has-attr?): Delete, move contents to <attr-list>:has-attr?.
(<attr-list>:attr-present?): New method.
(atlist-attr-present?,obj-attr-present?): New fns.
(obj-has-attr-value?,obj-has-attr-value-no-default?): New fns.
(attr-builtin!): New insn attr IDOC.
* cgen-doc.scm (doc-arguments): New args -I,-N.
* enum.scm (parse-enum-vals): New arg errtxt, all callers updated.
Support comment as fourth element of enum value.
(enum-val-name,enum-val-value,enum-val-attrs,enum-val-comment): New fns.
* html.scm (gen-html-header): New arg kind, all callers updated.
(gen-table-of-contents): New arg insn-file, all callers updated.
(gen-list-entry,gen-doc-header): New fn.
(get-operands): Delete.
(gen-iformat-table): Rewrite.
(gen-insn-doc-1): Print constant-folded and trimmed semantics.
(gen-insn-doc-list): New args name, comment, insns.  All callers updated.
(get-insn-properties,guess-insn-idoc-attr!): New fn.
(insn-sets-pc?,insn-refs-mem?,insn-uses-fpu?): New fns.
(get-insns-for-category,gen-categories-insn-lists): New fns.
(gen-insn-docs): Simplify each insn's semantics first.
Print insn tables sorted by IDOC categories.
(*insn-html-file-name*): New global.
(cgen-insn.html): New fn.
(cgen-all): Update.
* insn.scm (<insn>): Create a setter for the `tmp' member.
* semantics.scm (insn-build-known-values): Renamed from
-build-known-values.  All callers updated.

* rtl.scm: Move traveral/evaluation support to ...
* rtl-traverse.scm: New file.
* read.scm: Maybe-load rtl-traverse.scm.

* rtl.scm (-rtx-valid-types): Add SETRTX.

* rtx-funcs.scm (nop,parallel): Fix mode.

* utils.scm (eqv-lookup-index): New fn.
(assq-lookup-index): Renamed from lookup-index.  All callers updated.

* dev.scm (load-doc): Set APPLICATION.

21 years ago2003-06-10 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 10 Jun 2003 18:26:02 +0000 (18:26 +0000)]
2003-06-10  Dave Brolley  <brolley@redhat.com>

        * sid-cpu.scm: Generate #include of config.h into @prefix@-sem.cxx.
        * sid-decode.scm: Generate #include of config.h into
        @prefix@-decode.cxx.
        * sid-model.scm: Generate #include of config.h into @prefix@-model.cxx.

21 years ago * gen-all-sid: New file.
Doug Evans [Sat, 7 Jun 2003 18:22:02 +0000 (18:22 +0000)]
* gen-all-sid: New file.
* gen-all-opcodes: New file.

21 years agoAdd code to handle even-numbered only register operands
Nick Clifton [Thu, 5 Jun 2003 16:04:19 +0000 (16:04 +0000)]
Add code to handle even-numbered only register operands

21 years ago Better handling of 64 bit and mixed 32/64 bit architectures.
Doug Evans [Wed, 4 Jun 2003 20:22:49 +0000 (20:22 +0000)]
Better handling of 64 bit and mixed 32/64 bit architectures.
* hardware.scm (hw-update-word-modes!): New fn.
* mach.scm (define-cpu)): Call mode-set-word-modes!,
hw-update-word-modes!.
(state-word-bitsize): Replace FIXME with requested check.
(arch-analyze-insns!): Call mode-ensure-word-sizes-defined.
* mode.scm (mode-find): Ignore INT,UINT.
(-mode-word-sizes-kind): New global.
(mode-set-word-modes!,mode-set-identical-word-bitsizes!,
mode-set-biggest-word-bitsizes!,mode-ensure-word-sizes-defined): New fns.
(mode-init!): Initialize -mode-word-sizes-kind.  Move initialization
of mode-list to ...
(mode-builtin!): ... here.  Initialize WI/UWI/AI/IAI to something
unusable, correct values set later.
(mode-finish!): Remove cruft.
* html.scm (doc-init!): Call mode-set-biggest-word-bitsizes!.
* opcodes.scm (opcodes-init!): Ditto.
* rtx-funcs.scm (annul): Fix mode of pc.
* cpu/ia64.cpu: Remove cruft that sets word modes.
* cpu/xstormy16.cpu (define-cpu): Set word-bitsize.

21 years agooops - omitted entry in ChangeLog with the previous delta
Nick Clifton [Tue, 3 Jun 2003 17:36:14 +0000 (17:36 +0000)]
oops - omitted entry in ChangeLog with the previous delta

21 years agoFRV: Use a signed 6-bit immediate value not unsigned for mdrotli insn.
Nick Clifton [Tue, 3 Jun 2003 17:15:23 +0000 (17:15 +0000)]
FRV: Use a signed 6-bit immediate value not unsigned for mdrotli insn.
Use maintainer mode to regenerate ports.

21 years ago * cpu/sh.cpu: Amend comments to refer to SuperH.
Joern Rennecke [Wed, 21 May 2003 14:10:46 +0000 (14:10 +0000)]
* cpu/sh.cpu: Amend comments to refer to SuperH.
* cpu/sh64-compact.cpu: Change comment to refer to SuperH.
* cpu/sh64-media.cpu: Likewise.
(Saturation): Update manual reference.

21 years agoadd some more todos
Doug Evans [Thu, 15 May 2003 07:52:36 +0000 (07:52 +0000)]
add some more todos

21 years ago * Makefile.am (srcroot): New var.
Doug Evans [Thu, 15 May 2003 07:25:03 +0000 (07:25 +0000)]
* Makefile.am (srcroot): New var.
(html): New rule.
* Makefile.in: Regenerate.
* cgen-doc.scm: New file.
* html.scm: New file.
* gen-all-doc: New file.
* dev.scm (cload): Handle DOC application.
(load-doc): New fn.
* machs.scm (machs-for-cpu): New fn.
* model.scm (models-for-cpu): New fn.
* utils.scm (gen-c-copyright): Renamed from gen-copyright.
All uses updated.
(iota): Rewrite to be identical to pmacro version.  All uses updated.
* utils-cgen.scm (alpha-sort-obj-list): New fn.

21 years ago * utils-sim.scm (-gen-decoder-switch): Back out patch of 2003-01-09.
Doug Evans [Thu, 15 May 2003 07:16:52 +0000 (07:16 +0000)]
* utils-sim.scm (-gen-decoder-switch): Back out patch of 2003-01-09.
(-gen-decode-bits): Instead put in better fix here.

21 years ago * cpu/i960.cpu (index): Rename to indx. All uses updated.
Doug Evans [Thu, 15 May 2003 07:10:52 +0000 (07:10 +0000)]
* cpu/i960.cpu (index): Rename to indx.  All uses updated.

21 years agoadd more comments on use of unsigned modes
Doug Evans [Sun, 11 May 2003 20:06:20 +0000 (20:06 +0000)]
add more comments on use of unsigned modes

21 years ago* cpu/xstormy16.cpu (alignfix-mem): Correct logic for unaligned
DJ Delorie [Fri, 2 May 2003 00:09:25 +0000 (00:09 +0000)]
* cpu/xstormy16.cpu (alignfix-mem): Correct logic for unaligned
word accesses.
(set-alignfix-mem): Likewise.

21 years ago2003-04-16 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 16 Apr 2003 18:17:43 +0000 (18:17 +0000)]
2003-04-16  Dave Brolley  <brolley@redhat.com>

        * doc/rtl.texi (Iiming): Correct example to use 'model-name'.
        * utils.scm (copyright-fsf): Update generate copyright years.
        (copyright-cygnus): Ditto.
        * sid.scm (-op-gen-set-trace): Generate code to fill in bitmask of modified
        operands.
        (-gen-arch-model-decls): Don't generate unit enum declaration or MAX_UNITS
        here.
        (<operand>'gen-profile-code): New parameter 'when'.
        (<iunit>'gen-profile-code): Ditto.
        (<insn>'gen-profile-code): Ditto.
        (<unit>'gen-profile-code): Ditto. Only generate 'referenced' and
        'insn_reference' for the 'after' function.
        * model.scm (unit:enum): Moved to sim-model.scm.
        * sim-model.scm (unit:enum): Moved from model.scm.
        * sid-decode.scm (-gen-scache-decls): Generate the 'written' field.
        * cgen-sid.scm (sim-arguments): Document the generation of model.h.
        * sid-model.scm (unit:enum): New version for sid.
        (gen-model-class-name): New function.
        (gen-model-unit-fn-decl): New function.
        (gen-model-fn-decls): Call gen-model-unit-fn-decl.
        (gen-model-unit-fn-name): New parameter 'when'.
        (-gen-model-insn-fn-name): Ditto.
        (-gen-model-insn-qualified-fn-name): New function.
        (-gen-model-insn-fn-decl): New function.
        (-gen-model-insn-fn-decls): New function.
        (-gen-model-insn-fn): New parameter 'when'. Call
        -gen-model-insn-qualified-fn-name.
        (-gen-model-insn-fns): Generate the constructor for the model. Generate
        functions for modelling insn before and after execution.
        (-gen-model-class-decls): New function.
        (" (gen-model-class-name model) "): New function.
        (gen-model-classes): New function.
        (-gen-insn-timing): Generate functions for modelling insn before and after
        execution.
        (-gen-insn-unit-timing): Generate class-qualified names.
        (-gen-model-timing-table): Ditto.
        (cgen-model.cxx): Generate #include for @cpu@.h. Omit generation of code
        not needed (yet) by sid.
        (cgen-model.h): New function.

21 years ago2003-04-16 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 16 Apr 2003 18:09:06 +0000 (18:09 +0000)]
2003-04-16  Dave Brolley  <brolley@redhat.com>

        * doc/rtl.texi (Iiming): Correct example to use 'model-name'.
        * utils.scm (copyright-fsf): Update generate copyright years.
        (copyright-cygnus): Ditto.
        * sid.scm (-op-gen-set-trace): Generate code to fill in bitmask of modified
        operands.
        (-gen-arch-model-decls): Don't generate unit enum declaration or MAX_UNITS
        here.
        (<operand>'gen-profile-code): New parameter 'when'.
        (<iunit>'gen-profile-code): Ditto.
        (<insn>'gen-profile-code): Ditto.
        (<unit>'gen-profile-code): Ditto. Only generate 'referenced' and
        'insn_reference' for the 'after' function.
        * model.scm (unit:enum): Moved to sim-model.scm.
        * sim-model.scm (unit:enum): Moved from model.scm.
        * sid-decode.scm (-gen-scache-decls): Generate the 'written' field.
        * cgen-sid.scm (sim-arguments): Document the generation of model.h.
        * sid-model.scm (unit:enum): New version for sid.
        (gen-model-class-name): New function.
        (gen-model-unit-fn-decl): New function.
        (gen-model-fn-decls): Call gen-model-unit-fn-decl.
        (gen-model-unit-fn-name): New parameter 'when'.
        (-gen-model-insn-fn-name): Ditto.
        (-gen-model-insn-qualified-fn-name): New function.
        (-gen-model-insn-fn-decl): New function.
        (-gen-model-insn-fn-decls): New function.
        (-gen-model-insn-fn): New parameter 'when'. Call
        -gen-model-insn-qualified-fn-name.
        (-gen-model-insn-fns): Generate the constructor for the model. Generate
        functions for modelling insn before and after execution.
        (-gen-model-class-decls): New function.
        (" (gen-model-class-name model) "): New function.
        (gen-model-classes): New function.
        (-gen-insn-timing): Generate functions for modelling insn before and after
        execution.
        (-gen-insn-unit-timing): Generate class-qualified names.
        (-gen-model-timing-table): Ditto.
        (cgen-model.cxx): Generate #include for @cpu@.h. Omit generation of code
        not needed (yet) by sid.
        (cgen-model.h): New function.

21 years ago2003-04-16 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 16 Apr 2003 18:08:35 +0000 (18:08 +0000)]
2003-04-16  Dave Brolley  <brolley@redhat.com>

        * doc/rtl.texi (Iiming): Correct example to use 'model-name'.

21 years agoReplace occurrances of 'Hitachi' with 'Renesas'.
Nick Clifton [Tue, 15 Apr 2003 08:51:52 +0000 (08:51 +0000)]
Replace occurrances of 'Hitachi' with 'Renesas'.

21 years ago* cpu/xstormy16.cpu (basic-psw): New argument ws (wordsize),
DJ Delorie [Fri, 21 Mar 2003 06:15:55 +0000 (06:15 +0000)]
* cpu/xstormy16.cpu (basic-psw): New argument ws (wordsize),
which indicates if the sign flag is set from bit 15 or 7.
Adjust all callers.
(set-psw): New argument ws, propogate it.
(set-psw-nowrite): Likewise.
(set-mem-psw): Likewise.
(set-psw-carry): Likewise.  Use temporaries to prevent
prematurely overwriting needed inputs.
(set-psw-rrotate17): Fix logic.
(shrgrgr): Preserve carry for zero-bit shifts.
(shrgrimm): Likewise.
(shlgrgr): Likewise.
(shlgrimm): Likewise.
(asrgrgr): Likewise.
(asrgrimm): Likewise.
(reset): New.

21 years ago2003-03-12 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Wed, 12 Mar 2003 17:17:14 +0000 (17:17 +0000)]
2003-03-12  Frank Ch. Eigler  <fche@redhat.com>

        * sid.scm: Set APPLICATION to SID-SIMULATOR.

2003-03-12  Frank Ch. Eigler  <fche@redhat.com>

        * xstormy16-decode.cxx: Regenerate with fixed cgen SID-SIMULATOR.

21 years ago* cpu/xstormy16.cpu (set-psw-add): Use temporaries to prevent
DJ Delorie [Thu, 6 Mar 2003 00:34:06 +0000 (00:34 +0000)]
* cpu/xstormy16.cpu (set-psw-add): Use temporaries to prevent
prematurely overwriting needed inputs.
(set-psw-sub): Likewise.

21 years agocgen:
Joern Rennecke [Fri, 21 Feb 2003 20:05:41 +0000 (20:05 +0000)]
cgen:
* cpu/sh64-media.cpu (make-mextr): Fix setting of count.

sim/sh64:
* sem-media-switch.c, sem-media.c: Regenerate.

21 years ago* xstormy16.cpu (set-mem-alignfix-psw): Remove.
DJ Delorie [Tue, 18 Feb 2003 22:57:08 +0000 (22:57 +0000)]
* xstormy16.cpu (set-mem-alignfix-psw): Remove.
(movlmemimm): Just mask the address.
(movhmemimm): Likewise.
(movlmemgr): Likewise.
(movhmemgr): Likewise.
(set-psw): Always set the psw last.
(set-psw-carry): Likewise.
(set-psw-add): Likewise.
(set-psw-sub): Likewise.

* xstormy16.cpu (set-psw-rrotate17): New.  Choose the correct set
of 16 patterns from the set-psw-rotate17 function.
(movgrigr, movgripostincgr, movgripredecgr, movgriigr,
movgriipostincgr, movgriipredecgr): Set psw correctly.
(movfgrigr, movfgripostincgr, movfgripredecgr, movfgriigr,
movfgriipostincgr, movfgriipredecgr): Fix semantics.
(rrcgrgr, rrcgrimm4): Use new set-psw-rrotate17 function.

21 years agoUpdate copyright date.
Dave Brolley [Fri, 14 Feb 2003 00:02:40 +0000 (00:02 +0000)]
Update copyright date.

21 years ago2003-02-11 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 12 Feb 2003 22:31:31 +0000 (22:31 +0000)]
2003-02-11  Dave Brolley  <brolley@redhat.com>

        * desc-cpu.scm (gen-ifld-defns): Add all ifields to the
        @arch@_cgen-ifld_table.
        (gen-maybe-multi-ifld): Use the ifield enumerators to index the
        @arch@_cgen-ifld_table.

21 years ago2003-02-03 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Mon, 3 Feb 2003 23:07:50 +0000 (23:07 +0000)]
2003-02-03  Frank Ch. Eigler  <fche@redhat.com>

* sid-cpu.scm (-gen-sfrag-engine-fn): Generate more hygienic C++.

21 years agoadd an example on defining ifields the complete way,
Doug Evans [Tue, 14 Jan 2003 04:19:07 +0000 (04:19 +0000)]
add an example on defining ifields the complete way,
and a section on splicing arguments to define-*

21 years ago* whitespace fixes from the changelog elves
Ben Elliston [Thu, 9 Jan 2003 03:19:45 +0000 (03:19 +0000)]
* whitespace fixes from the changelog elves

21 years ago2003-01-07 Graydon Hoare <graydon@redhat.com>
Ben Elliston [Thu, 9 Jan 2003 03:15:42 +0000 (03:15 +0000)]
2003-01-07  Graydon Hoare  <graydon@redhat.com>

* utils-gen.scm (attr-int-gen-defn): Define.

21 years ago2003-01-09 Ben Elliston <bje@redhat.com>
Ben Elliston [Thu, 9 Jan 2003 03:08:32 +0000 (03:08 +0000)]
2003-01-09  Ben Elliston  <bje@redhat.com>

        From Graydon Hoare <graydon@redhat.com>:
* utils-sim.scm (-gen-decoder-switch): Fix edge condition for
empty ISAs.

21 years ago* merge with Red Hat internal tree
Ben Elliston [Fri, 3 Jan 2003 06:17:31 +0000 (06:17 +0000)]
* merge with Red Hat internal tree

21 years agoadd some comments
Doug Evans [Sun, 22 Dec 2002 19:01:36 +0000 (19:01 +0000)]
add some comments

21 years ago(try to) spiff up docs on writing ifield definitions
Doug Evans [Sun, 22 Dec 2002 04:49:26 +0000 (04:49 +0000)]
(try to) spiff up docs on writing ifield definitions

21 years ago * ifield.scm (-ifield-parse): Rewrite <bitrange> computation.
Doug Evans [Sun, 22 Dec 2002 02:12:13 +0000 (02:12 +0000)]
* ifield.scm (-ifield-parse): Rewrite <bitrange> computation.
(-get-ifld-word-offset,-get-ifld-word-length): New fns.

21 years agomore playing around
Doug Evans [Sun, 22 Dec 2002 02:06:47 +0000 (02:06 +0000)]
more playing around

21 years ago * dev.scm (cload): Update location of .cpu files.
Doug Evans [Sat, 21 Dec 2002 22:22:33 +0000 (22:22 +0000)]
* dev.scm (cload): Update location of .cpu files.

21 years agocomment tweaks
Doug Evans [Sat, 21 Dec 2002 22:19:22 +0000 (22:19 +0000)]
comment tweaks

21 years agotweak
Doug Evans [Sat, 21 Dec 2002 03:58:29 +0000 (03:58 +0000)]
tweak

21 years ago * utils-sim.scm (gen-profile-sym): New fn.
Doug Evans [Fri, 20 Dec 2002 07:58:32 +0000 (07:58 +0000)]
* utils-sim.scm (gen-profile-sym): New fn.
(<operand>,sbuf-profile-sym): New method.
(<operand>,sbuf-profile-elm): Use it.
* sim.scm (<operand>,gen-record-profile): Use sbuf-profile-sym instead
of hardcoding symbol name.
(<operand>,gen-profile-code): Ditto.
(<unit>,gen-profile-code): Use gen-profile-sym instead of hardcoding
symbol name.

21 years ago * mode.scm (mode-sem-mode): New fn.
Doug Evans [Fri, 20 Dec 2002 06:39:04 +0000 (06:39 +0000)]
* mode.scm (mode-sem-mode): New fn.
* operand.scm (op:new-mode): Update. mode-name.
(op-natural-mode?) New fn.
* rtl.scm (hw): Set hw-name,mode-name.
plus some comment tweaks

21 years ago Back out sim*.scm changes of 2001-04-02 Ben Elliston <bje@redhat.com>
Doug Evans [Fri, 20 Dec 2002 02:22:22 +0000 (02:22 +0000)]
Back out sim*.scm changes of 2001-04-02  Ben Elliston  <bje@redhat.com>
Instead do:
* sim-decode.scm (-gen-decode-insn-globals): Use @PREFIX@_INSN__MAX
as size of IDESC-TABLE-VAR.
(@prefix@_init_idesc_table): Ditto.
* sim-model.scm (-gen-mach-defns): Ditto.
* sim.scm (gen-cpu-insn-enum-decl): Rename last elm from max to -max.

* utils-scm.scm (-gen-decode-insn-entry): Fix some spacing in output.

* insn.scm (-parse-insn-format-symbol): Improve error message.
(-parse-insn-format): Ditto.

21 years agotweak
Doug Evans [Fri, 20 Dec 2002 02:20:50 +0000 (02:20 +0000)]
tweak

21 years ago * gen-all-sim: New script.
Doug Evans [Fri, 20 Dec 2002 01:38:32 +0000 (01:38 +0000)]
* gen-all-sim: New script.

21 years agoupdate my email address
Doug Evans [Thu, 19 Dec 2002 17:01:42 +0000 (17:01 +0000)]
update my email address

21 years ago* lost patch from RH tree:
Ben Elliston [Wed, 18 Dec 2002 01:43:11 +0000 (01:43 +0000)]
* lost patch from RH tree:

2001-09-17  graydon hoare  <graydon@redhat.com>

* insn.scm (syntax-break-out): Correct logic in handling escaped
syntax characters.

21 years ago* cpu/xstormy16.opc (parse_immediate16): Add prototype.
DJ Delorie [Tue, 17 Dec 2002 04:48:25 +0000 (04:48 +0000)]
* cpu/xstormy16.opc (parse_immediate16): Add prototype.

21 years ago* cpu/xstormy16.cpu (imm16): Call handler immediate16.
DJ Delorie [Tue, 17 Dec 2002 03:54:41 +0000 (03:54 +0000)]
* cpu/xstormy16.cpu (imm16): Call handler immediate16.
* cpu/xstormy16.opc (parse_small_immediate): Return on '@'.
(parse_immediate16): Handle immediate16 values, which now include
@hi(label) and @lo(label)

21 years ago * desc-cpu.scm (gen-maybe-multi-ifld): Remove superfluous parens.
Alan Modra [Mon, 2 Dec 2002 21:53:53 +0000 (21:53 +0000)]
* desc-cpu.scm (gen-maybe-multi-ifld): Remove superfluous parens.
Add braces and cast for union field.
(gen-multi-ifield-nodes): Add braces and cast for union field.
(cgen_operand_table): Similarly fix sentinel.
(cgen_cpu_close): Constify "insns".  Formatting.
(cgen-desc.c): Include xregex.h.
* cpu/ip2k.opc (ip2k_cgen_insn_supported): Move to opc.c section.
Prototype.
<opc.c>: Include safe-ctype.h.
(ip2k_asm_hash): Use ISSPACE and TOLOWER.
(PARSE_FUNC_DECL): Declare.  Use to prototype parse_fr, parse_addr16,
parse_addr16_p, parse_addr16_cjp, parse_lit8 and parse_bit3.
(parse_fr): Constify "old_strp".  Correct type of "tempvalue".
Don't test it for >= 0.  Use ISSPACE rather than isspace.  Formatting.
(parse_addr16): Correct type of "value".  Formatting.
(parse_addr16_p): Likewise.
(parse_addr16_cjp): Likewise.
(parse_lit8): Likewise.
(parse_bit3): Formatting.
(PRINT_FUNC_DECL): Define.  Use to prototype print_fr, print_dollarhex,
print_dollarhex8, print_dollarhex16, print_dollarhex_addr16h,
print_dollarhex_addr16l, print_dollarhex_p, print_dollarhex_cj and
print_decimal.
(print_fr): Add ATTRIBUTE_UNUSED on unused args.  Formatting.
(print_dollarhex): Add ATTRIBUTE_UNUSED on unused args.
(print_dollarhex8): Likewise.
(print_dollarhex16): Likewise.
(print_dollarhex_addr16h): Likewise.
(print_dollarhex_addr16l): Likewise.
(print_dollarhex_p): Likewise.
(print_dollarhex_cj): Likewise.
(print_decimal): Likewise.
* cpu/xstormy16.opc (parse_mem8): Use ISALNUM rather than isalnum.

21 years ago * doc/rtl.texi (Model variants): Mention current limitations for
Hans-Peter Nilsson [Sat, 30 Nov 2002 17:04:54 +0000 (17:04 +0000)]
* doc/rtl.texi (Model variants): Mention current limitations for
unit inputs and outputs.
(Hardware elements) <attribute PROFILE>: Be slightly more
verbose.
(Instructions) <timing>: input/output overrides have a direction
operand.

21 years ago* xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings.
DJ Delorie [Mon, 25 Nov 2002 21:14:16 +0000 (21:14 +0000)]
* xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings.

21 years ago * cpu/iq10.cpu: New file.
Stan Cox [Thu, 21 Nov 2002 22:12:20 +0000 (22:12 +0000)]
* cpu/iq10.cpu: New file.
* cpu/iq2000.cpu: Likewise.
* cpu/iq2000.opc: Likewise.
* cpu/iq2000m.cpu: Likewise.

21 years ago* cpu/xstormy16.cpu (sdiv, divlh, sdivlh): New.
DJ Delorie [Wed, 20 Nov 2002 03:14:19 +0000 (03:14 +0000)]
* cpu/xstormy16.cpu (sdiv, divlh, sdivlh): New.

22 years ago2002-11-05 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Tue, 5 Nov 2002 21:35:45 +0000 (21:35 +0000)]
2002-11-05  Frank Ch. Eigler  <fche@redhat.com>

* dev.scm: Call getenv with a string, not a symbol.

22 years ago * types.scm (bitrange-overlap?): Handle lsb0?.
Hans-Peter Nilsson [Mon, 7 Oct 2002 23:50:30 +0000 (23:50 +0000)]
* types.scm (bitrange-overlap?): Handle lsb0?.

22 years ago* arm7t missing instructions
Frank Ch. Eigler [Sat, 7 Sep 2002 14:42:48 +0000 (14:42 +0000)]
* arm7t missing instructions

[cgen]
2002-09-07  Frank Ch. Eigler  <fche@redhat.com>

From Robert Cragie <rcc@jennic.com>:
* cpu/arm7.cpu (ldm*-sw*, stm*-sw*): New instructions.

[sid]
2002-09-07  Frank Ch. Eigler  <fche@redhat.com>

* arm-*, thumb-*: Regenerated files with Robert Cragie's new
cgen instructions.

22 years ago * cpu/ip2k.cpu: New file.
Ben Elliston [Wed, 17 Jul 2002 14:56:53 +0000 (14:56 +0000)]
* cpu/ip2k.cpu: New file.
* cpu/ip2k.opc: Likewise.

22 years ago * utils-gen.scm (-gen-extract-word): Handle lsb0?.
Hans-Peter Nilsson [Sun, 30 Jun 2002 22:48:48 +0000 (22:48 +0000)]
* utils-gen.scm (-gen-extract-word): Handle lsb0?.

22 years ago* typo fix.
Ben Elliston [Tue, 25 Jun 2002 17:21:09 +0000 (17:21 +0000)]
* typo fix.

22 years ago2002-06-25 J"orn Rennecke <joern.rennecke@superh.com>
Ben Elliston [Tue, 25 Jun 2002 17:17:45 +0000 (17:17 +0000)]
2002-06-25  J"orn Rennecke <joern.rennecke@superh.com>

* cpu/sh64-compact.cpu (movw5): Use Correct operand field for reg.
* cpu/sh64-media.cpu (-ldhi-byte, -ldhi-word, -ldhi-long): New macros.
(-ldlo-byte, -ldlo-word, -ldlo-long): Likewise.
(-sthi-word, -sthi-long -stlo-byte, -stlo-word, -stlo-long): Likewise.
(ldhil, ldhiq, ldlol, ldloq, stlol, stloq): Implement.
(mshfhib, mshfhil, mshfhiw, mshflob, mshflol, mshflow): Fix indices.
(-sthi-byte): If there is a single byte to store, store it at
proper address.
(sthil, sthiq): Fix big-endian behaviour.
(mcnvslw, mcnvswb, mcnvswub, mmacfxwl, mmacnfx.wl): Fix indices.
(mmulfxl, mmulfxw, mmulfxrpw, mmulhiwl, mmullowl): Likewise.
(saturate): Use Dimode to check if saturation operation is required.
(usaturate): Likewise.
(mpermw): Fix mask.
(-maddsl, -maddsub): Compute to-be-saturated value in wider mode.
(-maddsw, mmacfxwl, mmacnfx.wl, -mshaldsl, -mshaldsw): Likewise.
(-mshardl, -mshardw, -msubsl, -msubsub, -msubsw): Likewise.
(msadubq): Fix subword index in second operand of first subtraction.

22 years ago * sim-cpu.scm (gen-semantic-code): Prepend with setup-semantics
Hans-Peter Nilsson [Wed, 19 Jun 2002 22:43:23 +0000 (22:43 +0000)]
* sim-cpu.scm (gen-semantic-code): Prepend with setup-semantics
code.

22 years ago2002-06-18 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 18 Jun 2002 21:12:34 +0000 (21:12 +0000)]
2002-06-18  Dave Brolley  <brolley@redhat.com>

* cpu/frv.cpu: New cpu description.
* cpu/frv.opc: New cpu support code.

22 years ago* typo fix.
Ben Elliston [Mon, 3 Jun 2002 13:25:38 +0000 (13:25 +0000)]
* typo fix.

22 years ago2002-05-21 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 22 May 2002 18:43:32 +0000 (18:43 +0000)]
2002-05-21  Dave Brolley  <brolley@redhat.com>

* decode.scm (-opcode-slots): Don't consider bits beyond the length of
the insn.

22 years ago * cpu/powerpc.cpu: New file.
Johan Rydberg [Fri, 17 May 2002 15:35:52 +0000 (15:35 +0000)]
    * cpu/powerpc.cpu: New file.

22 years ago[ cgen/ChangeLog ]
Graydon Hoare [Wed, 8 May 2002 20:47:04 +0000 (20:47 +0000)]
[ cgen/ChangeLog ]

2002-05-01  Graydon Hoare  <graydon@redhat.com>

* desc-cpu.scm (@arch@_cgen_cpu_close): Fix memory leaks.

[ opcodes/ChangeLog ]

2002-05-07  Graydon Hoare  <graydon@redhat.com>

* cgen-dis.in: (print_insn_@arch@): Cache list of opened CPUs rather
than just most-recently-opened.

22 years ago * doc/pmacros.texi (Symbol concatenation): Mention that .sym
Hans-Peter Nilsson [Wed, 20 Mar 2002 22:05:57 +0000 (22:05 +0000)]
* doc/pmacros.texi (Symbol concatenation): Mention that .sym
results are expanded recursively.

22 years ago * pmacros.scm (-pmacro-expand,scan): If result is a symbol,
Hans-Peter Nilsson [Tue, 19 Mar 2002 20:44:30 +0000 (20:44 +0000)]
* pmacros.scm (-pmacro-expand,scan): If result is a symbol,
call scan-symbol on it, to enable recursive macro-expansion.

22 years ago* better support multiple-isa devices.
Frank Ch. Eigler [Thu, 7 Feb 2002 18:46:19 +0000 (18:46 +0000)]
* better support multiple-isa devices.

2002-01-25  Frank Ch. Eigler  <fche@redhat.com>

        * sid-cpu.scm (-gen-hardware-types): Generate single hardware union
        for multiple-isa configurations.
        * sid-decode.scm (-gen-decode-fn): Tolerate empty insn list.

22 years ago* tweaks
Ben Elliston [Sun, 3 Feb 2002 23:07:55 +0000 (23:07 +0000)]
* tweaks

22 years ago* tweaks
Ben Elliston [Sun, 3 Feb 2002 23:04:19 +0000 (23:04 +0000)]
* tweaks

22 years ago* Contribute Hitachi SH5 port.
Ben Elliston [Fri, 1 Feb 2002 11:32:02 +0000 (11:32 +0000)]
* Contribute Hitachi SH5 port.

22 years ago * doc/rtl.texi: Fix typo: define-attr, not define-attribute.
Hans-Peter Nilsson [Tue, 29 Jan 2002 22:51:52 +0000 (22:51 +0000)]
* doc/rtl.texi: Fix typo: define-attr, not define-attribute.
(Enumerated constants): Mention that an ifield must not specify a
multi-ifield.
(Instruction operands): Ditto for index.
(Expressions) <parallel>: Remove misplaced mention of local
variables.
<if>: Mention that mode must be specified and non-VOID when the
result is used.

22 years ago * doc/porting.texi: When referring to *.opc, mention they are in
Hans-Peter Nilsson [Mon, 28 Jan 2002 20:23:17 +0000 (20:23 +0000)]
* doc/porting.texi: When referring to *.opc, mention they are in
the cpu subdir.  Call top-level directory toplevel, not devo.
Close string in define-normal-insn example.

22 years ago * doc/pmacros.texi: Fix .substr typo to .substring.
Hans-Peter Nilsson [Mon, 28 Jan 2002 19:53:16 +0000 (19:53 +0000)]
* doc/pmacros.texi: Fix .substr typo to .substring.
Mention that .sym expansions are not further expanded.

22 years ago[ include/opcode/ChangeLog ]
Graydon Hoare [Tue, 22 Jan 2002 21:45:38 +0000 (21:45 +0000)]
[ include/opcode/ChangeLog ]

2002-01-22  Graydon Hoare  <graydon@redhat.com>

* cgen.h (CGEN_MAYBE_MULTI_IFLD): New structure.
(CGEN_OPERAND): Add CGEN_MAYBE_MULTI_IFLD field.

[ opcodes/ChangeLog ]

2002-01-22  Graydon Hoare  <graydon@redhat.com>

* fr30-asm.c: Regenerate.
* fr30-desc.c: Likewise.
* fr30-desc.h: Likewise.
* fr30-dis.c: Likewise.
* fr30-ibld.c: Likewise.
* fr30-opc.c: Likewise.
* fr30-opc.h: Likewise.
* m32r-asm.c: Likewise.
* m32r-desc.c: Likewise.
* m32r-desc.h: Likewise.
* m32r-dis.c: Likewise.
* m32r-ibld.c: Likewise.
* m32r-opc.c: Likewise.
* m32r-opc.h: Likewise.
* m32r-opinst.c: Likewise.
* openrisc-asm.c: Likewise.
* openrisc-desc.c: Likewise.
* openrisc-desc.h: Likewise.
* openrisc-dis.c: Likewise.
* openrisc-ibld.c: Likewise.
* openrisc-opc.c: Likewise.
* openrisc-opc.h: Likewise.
* xstormy16-desc.c: Likewise.

[ cgen/ChangeLog ]

2002-01-22  Graydon Hoare  <graydon@redhat.com>

* desc-cpu.scm (ifld-number-cache): Add.
(ifld-number): Add.
(gen-maybe-multi-ifld-of-op): Add.
(gen-maybe-multi-ifld): Add.
(gen-multi-ifield-nodes): Add.
(cgen-desc.c): Add call to gen-multi-ifield-nodes.

22 years ago* tweaks.
Ben Elliston [Wed, 16 Jan 2002 21:22:44 +0000 (21:22 +0000)]
* tweaks.

22 years ago[cgen/ChangeLog]
Matthew Green [Fri, 11 Jan 2002 07:24:49 +0000 (07:24 +0000)]
[cgen/ChangeLog]
* cpu/xstormy16.cpu (gr-Rbj-names): Rename this ...
(gr-Rb-names): ... to this.
(h-Rb): New hardware peice.
(h-Rbj): Use gr-Rb-names.
(Rb): Use h-Rb.

(holdx): New instruction.

[opcodes/ChangeLog]
* xstormy16-asm.c: Regenerate.
* xstormy16-desc.c: Likewise.
* xstormy16-desc.h: Likewise.
* xstormy16-dis.c: Likewise.
* xstormy16-opc.c: Likewise.
* xstormy16-opc.h: Likewise.

[gas/testsuite/ChangeLog]
* gas/xstormy16/allinsn.sh (movf, jmp, call, icall): Update.
* gas/xstormy16/allinsn.d: Regenerate.
* gas/xstormy16/allinsn.s: Regenerate.

[sid/component/cgen-cpu/xstormy16/ChangeLog]
* xstormy16.cxx (do_holdx): Define.
* xstormy16.h (do_holdx): Declare.

22 years ago2002-01-07 Ben Elliston <bje@redhat.com>
Ben Elliston [Mon, 7 Jan 2002 08:23:59 +0000 (08:23 +0000)]
2002-01-07  Ben Elliston  <bje@redhat.com>

* utils.scm (package-cygnus-simulators): Rename from this ..
(package-red-hat-simulators): .. to this.
* opcodes.scm (option-set!): Use package-red-hat-simulators.
* sid-cpu.scm (cgen-desc.h): Likewise.
(cgen-cpu.h): Likewise.
(cgen-defs.h): Likewise.
(cgen-write.cxx): Likewise.
(cgen-semantics.cxx): Likewise.
(cgen-sem-switch.cxx): Likewise.
* sid-decode.scm (cgen-decode.h): Likewise.
(cgen-decode.cxx): Likewise.
* sid-model.scm (cgen-model.cxx): Likewise.
* sid.scm (option-set!): Likewise.
* sim.scm (option-set!): Likewise.

22 years ago2002-01-07 Ben Elliston <bje@redhat.com>
Ben Elliston [Mon, 7 Jan 2002 07:05:05 +0000 (07:05 +0000)]
2002-01-07  Ben Elliston  <bje@redhat.com>

* utils.scm (copyright-fsf): Add 2002.
(copyright-cygnus): Rename to copyright-red-hat.
(copyright-red-hat): Add 2002.
(CURRENT-COPYRIGHT): Update comment.
* opcodes.scm (option-set!): Update callers.
* sid-model.scm (cgen-model.cxx): Likewise.
* sid-cpu.scm: Likewise.
* sid-decode.scm: Likewise.
* sid.scm (option-set!): Handle "redhat" as an option for
"copyright"; use copyright-red-hat.
* sim.scm (option-set!): Likewise.

22 years ago2002-01-03 Dave Brolley <brolley@redhat.com>
Dave Brolley [Thu, 3 Jan 2002 18:30:26 +0000 (18:30 +0000)]
2002-01-03  Dave Brolley  <brolley@redhat.com>

* decode.scm (-distinguishing-bit-population): Compute num-insns, the
number of insns in the list.  Update the population count function to
identify and prioritize 3 catgories of useful bits.
(-population-top-few): Don't consider bits with a population count of
zero.
(-build-decode-table-entry): Don't call
filter-harmlessly-ambiguous-insns.  Filter out non-specialized and
identical insns at the next tree level.
* insn.scm (filter-harmlessly-ambiguous-insns): Note in a comment that
this function is no longer used.
(filter-non-specialized-ambiguous-insns): New function.
(filter-identical-ambiguous-insns): New function.
(find-identical-insn): New function.
(filter-harmlessly-ambiguous-insns): Removed.

22 years agoAdd all the xstormy16 authors to the ChangeLog entry.
Geoff Keating [Sat, 8 Dec 2001 01:18:14 +0000 (01:18 +0000)]
Add all the xstormy16 authors to the ChangeLog entry.

22 years ago * cpu/xstormy16.cpu: New file.
Geoff Keating [Fri, 7 Dec 2001 22:51:28 +0000 (22:51 +0000)]
* cpu/xstormy16.cpu: New file.
* cpu/xstormy16.opc: New file.

22 years ago* further converge with internal tree.
Ben Elliston [Tue, 27 Nov 2001 06:29:34 +0000 (06:29 +0000)]
* further converge with internal tree.

22 years ago2001-11-26 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler [Mon, 26 Nov 2001 16:41:08 +0000 (16:41 +0000)]
2001-11-26  Frank Ch. Eigler  <fche@redhat.com>

* doc/sim.texi, rtl.texi, porting.texi: Correct texinfo markup typos.

22 years ago* more formatting tweaks.
Ben Elliston [Mon, 26 Nov 2001 00:23:41 +0000 (00:23 +0000)]
* more formatting tweaks.

22 years ago* more formatting tweaks.
Ben Elliston [Mon, 26 Nov 2001 00:08:57 +0000 (00:08 +0000)]
* more formatting tweaks.

22 years ago* formatting tweak.
Ben Elliston [Sun, 25 Nov 2001 23:48:25 +0000 (23:48 +0000)]
* formatting tweak.

22 years ago* converge with Red Hat internal tree.
Ben Elliston [Sun, 25 Nov 2001 23:18:15 +0000 (23:18 +0000)]
* converge with Red Hat internal tree.

22 years ago* merge 2001-11-01.
Ben Elliston [Tue, 20 Nov 2001 05:16:06 +0000 (05:16 +0000)]
* merge 2001-11-01.

22 years ago2001-11-14 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 14 Nov 2001 19:46:43 +0000 (19:46 +0000)]
2001-11-14  Dave Brolley  <brolley@redhat.com>

* utils-gen.scm (-gen-extract-word): Correct computation of the length
of the field being extracted.

23 years ago2001-10-29 Johan Rydberg <johan@rydberg.com>
Ben Elliston [Thu, 8 Nov 2001 04:24:30 +0000 (04:24 +0000)]
2001-10-29  Johan Rydberg  <johan@rydberg.com>

* doc/rtl.texi (Expressions): Document the (error ..), (sqrt ..),
(cos ...) and (sin ..) rtx.

23 years agoUse safe-ctype.h not ctype.h
Nick Clifton [Sat, 13 Oct 2001 09:38:02 +0000 (09:38 +0000)]
Use safe-ctype.h not ctype.h

23 years agoFix compile time warning messages in generated C files
Nick Clifton [Tue, 9 Oct 2001 08:24:22 +0000 (08:24 +0000)]
Fix compile time warning messages in generated C files

23 years ago* back out for now.
Ben Elliston [Tue, 18 Sep 2001 03:17:13 +0000 (03:17 +0000)]
* back out for now.

23 years ago2001-09-17 graydon hoare <graydon@redhat.com>
Graydon Hoare [Mon, 17 Sep 2001 19:34:08 +0000 (19:34 +0000)]
2001-09-17  graydon hoare  <graydon@redhat.com>

* insn.scm (syntax-break-out): Change $ escape specifier
from \$ to $$, to reduce interactions with scheme and C escaping
conventions.
* doc/rtl.texi (Instructions): Document change.

23 years ago2001-07-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 12 Jul 2001 21:30:04 +0000 (21:30 +0000)]
2001-07-12  Jeff Johnston  <jjohnstn@redhat.com>

        * opc-itab.scm (@arch@_cgen_init_opcode_table): Unconditionally
        call @arch@_cgen_build_insn_regex now that regex support is in
        libiberty.

23 years ago* ambiguous insn sim decode fix
Frank Ch. Eigler [Thu, 12 Jul 2001 11:42:48 +0000 (11:42 +0000)]
* ambiguous insn sim decode fix

2001-07-12  Frank Ch. Eigler  <fche@redhat.com>

        * insn.scm (filter-harmlessly-ambiguous-insns): Fix msg typo.
        (mask-superset?): Look for strict supersets to allow rejection of
        duplicate insns.

23 years ago* more 16/32-bit insn set support; simulator (sid)
Frank Ch. Eigler [Thu, 12 Jul 2001 02:54:39 +0000 (02:54 +0000)]
* more 16/32-bit insn set support; simulator (sid)

2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

* sid-cpu.scm (-gen-mach-params): New proc to emit ...CHUNK_BITSIZE...
(cgen-desc.h): Call it.
* sid-decode.scm (-gen-decode-fn): Use base-insn-bitsize as
decode-size.
* utils-sim.scm (-gen-decode-insn-entry): For SID only, prepare
entire_insn for extraction, if it's shorter than base-insn-bitsize.

23 years ago* some support for funny-endian 16/32-bit insn sets
Frank Ch. Eigler [Thu, 12 Jul 2001 02:32:25 +0000 (02:32 +0000)]
* some support for funny-endian 16/32-bit insn sets

[cgen/ChangeLog]
2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

        * desc-cpu.scm (-gen-mach-table-defns): Emit fourth field: the
        mach->cpu insn-chunk-bitsize.
        (-gen-cpu-open): In @arch@_cgen_rebuild_tables, process above new
        field toward CGEN_CPU_TABLE->insn_chunk_bitsize.
        * mach.scm (<cpu>): New field insn-chunk-bitsize.
        (-cpu-parse, -cpu-read): Parse/initialize it.
        * doc/rtl.texi (define-cpu): Document it.

[opcodes/ChangeLog]
2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

        * cgen-dis.in (print_insn): Use cgen_get_insn_value instead of
        bfd_get_bits.
        * cgen-opc.c (cgen_get_insn_value, cgen_put_insn_value): Respect
        non-zero CGEN_CPU_DESC->insn_chunk_bitsize.

[include/opcode/ChangeLog]
2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

        * cgen.h (CGEN_MACH): Add insn_chunk_bitsize field.
        (cgen_cpu_desc): Ditto.

23 years ago * ifield.scm (<ifield> 'field-start): Don't look at word-len.
Geoff Keating [Mon, 9 Jul 2001 16:07:49 +0000 (16:07 +0000)]
* ifield.scm (<ifield> 'field-start): Don't look at word-len.

This page took 0.066344 seconds and 5 git commands to generate.