]> sourceware.org Git - cgen.git/log
cgen.git
6 years agobinutils opcodes error messages
Alan Modra [Sat, 3 Mar 2018 01:31:31 +0000 (01:31 +0000)]
binutils opcodes error messages

This patch is aimed at making binutils/opcodes files comply with the
GNU coding standard regarding error messages, that is, they should
start with the program name followed by a colon, then a lower case
message.  Accomplished by calling opcodes_error_handler to output the
program name (and final '\n'), rather than calling fprintf.

* desc-cpu.scm (opcodes_error_handler): Define.
(@arch@_cgen_rebuild_tables): Use opcodes_error_handler.
(@arch@_cgen_cpu_open): Likewise.
* opc-asmdis.scm (@arch@_cgen_parse_operand): Likewise.
(@arch@_cgen_print_operand): Likewise.
* opc-ibld.scm (@arch@_cgen_get_int_operand): Likewise.
(@arch@_cgen_get_vma_operand): Likewise.
(@arch@_cgen_set_int_operand): Likewise.
(@arch@_cgen_set_vma_operand): Likewise.
(@arch@_cgen_insert_operand): Likewise.
(@arch@_cgen_extract_operand): Likewise.
* utils.scm: Update emitted copyright dates.

7 years ago PR 20946
Alan Modra [Thu, 13 Apr 2017 11:58:48 +0000 (11:58 +0000)]
PR 20946
* desc-cpu.scm (lookup_mach_via_bfd_name): Return NULL if the name
could not be matched.
(@arch@_cgen_cpu_open): Allow for lookup_mach_via_bfd_name returning

7 years ago * utils.scm: Update emitted copyright dates.
Alan Modra [Fri, 7 Apr 2017 22:38:16 +0000 (22:38 +0000)]
* utils.scm: Update emitted copyright dates.

8 years ago2016-07-18 Trevor Saunders <tbsaunde@tbsaunde.org>
Frank Ch. Eigler [Mon, 25 Jul 2016 15:39:06 +0000 (15:39 +0000)]
2016-07-18  Trevor Saunders <tbsaunde@tbsaunde.org>

* desc-cpu.scm, opc-itab.sbm: Emit extern "C" { ... } wrappers to
make generated code usable by C++.

8 years agocgen: sim: Updates to sim files to match gdb types
Mike Frysinger [Mon, 9 May 2016 21:50:25 +0000 (21:50 +0000)]
cgen: sim: Updates to sim files to match gdb types

The types like MACH and MODEL have changes to SIM_MACH and SIM_MODEL
make updates to match these changes.  This way people dont have to
manually update the generated files in GDB.

8 years agoUpdate emitted copyright notice dates
Alan Modra [Fri, 22 Apr 2016 02:03:49 +0000 (02:03 +0000)]
Update emitted copyright notice dates

* utils.scm: Update emitted copyright dates.

8 years ago2016-04-14 Trevor Saunders <tbsaunde@tbsaunde.org>
Frank Ch. Eigler [Thu, 14 Apr 2016 15:27:54 +0000 (15:27 +0000)]
2016-04-14  Trevor Saunders  <tbsaunde@tbsaunde.org>

        * opc-itab.scm (asm_hash_insn_p): Stop using old style arguments.
        (dis_hash_insn_p): Likewise.
        (asm_hash_insn): Likewise.
        (dis_hash_insn): Likewise.
        * opc-opinst.scm (@arch@_cgen_init_opinst_table): Likewise.

8 years agoMake large enum constants hex
Alan Modra [Wed, 2 Mar 2016 12:23:31 +0000 (12:23 +0000)]
Make large enum constants hex

* enum.scm (gen-enum-decl): Emit large numbers as hex.  Tidy
start-sanitize.  Upcase just the identifiers.

10 years agoor1k support
Alan Modra [Mon, 19 May 2014 01:24:00 +0000 (01:24 +0000)]
or1k support
        * sim-arch.scm (WI, UWI, AI, IAI): Define.
        * rtl-c.scm (mul-o1flag, mul-o2flag, rem): New.
        * rtx-funcs.scn (mul-o1flag, mul-o2flag, rem): New.

11 years agoAdd copyright notices
Nick Clifton [Mon, 17 Dec 2012 16:55:42 +0000 (16:55 +0000)]
Add copyright notices

11 years agoAdd copyright notices
Nick Clifton [Mon, 10 Dec 2012 12:47:54 +0000 (12:47 +0000)]
Add copyright notices

11 years ago * Makefile.am: Add install-html and install-pdf.
Mike Stump [Tue, 30 Oct 2012 01:17:28 +0000 (01:17 +0000)]
* Makefile.am: Add install-html and install-pdf.
* Makefile.in: Regenerate.

13 years agoPatch for sid/cgen setter error.
Frank Ch. Eigler [Mon, 29 Aug 2011 17:31:16 +0000 (17:31 +0000)]
Patch for sid/cgen setter error.

http://sourceware.org/ml/cgen/2011-q3/msg00008.html

Author: John Wehle <john@cybersashi.com>

* sid.scm (/op-gen-set-trace1): Use rtl-c VOID instead of 'VOID.

13 years agoMove cpu files from cgen/cpu to top level cpu directory.
Nick Clifton [Mon, 22 Aug 2011 15:25:10 +0000 (15:25 +0000)]
Move cpu files from cgen/cpu to top level cpu directory.

13 years ago * cpu/xstormy16.cpu (alignfix-mem-far): New macro. Like
Nick Clifton [Wed, 3 Nov 2010 17:02:34 +0000 (17:02 +0000)]
* cpu/xstormy16.cpu (alignfix-mem-far): New macro.  Like
    alignfix-mem, but works with 32-bit addresses.
    (set-alignfix-mem-far): New macro.  Like set-alignfix-mem but
    works with 32-bit addresses.
    (movfgrgri, movfgrgripostinc, movfgrgripredec, movfgrgrii,
    movfgrgriipostinc, movfgrgriipredec): Use alignfix-mem-far.
    (movfgrigr, movfgripostincgr, movfgripredecgr): Use
    set-alignfix-mem-far.
    (movfgrgriipostinc, movfgriipostincgr): Propagate addition to
    source register into base register.
    (movfgrgriipredec, movfgriipredecgr): Propagate subtraction from
    source register into base register.

    * xstormy16-sem.cxx: Regenerate.

        * testutils.inc (pass): Update parameter layout for write syscall.
        (fail): Likewise.
        * movgrgrii.cgs: Fix endianness typo in assertion.
        * movgrgriipostinc.cgs: Likewise.
        * movgrgriipredec.cgs: Likewise.
        * movgrgripostinc.cgs: Likewise.
        * movgrgripredec.cgs: Likewise.
        * movgrigr.cgs: Likewise.
        * movgriipostincgr.cgs: Likewise.
        * movgripostincgr.cgs: Likewise.
        * movgripredecgr.cgs: Likewise.
        * rrcgrgr.cgs: Rotate only inserts carry flag once.
        * rrcgrimm4.cgs: Likewise.
        * movfgrgriipostinc.cgs: New test.  Checks MOVF load with post increment.
        * movfgrgriipredec.cgs: New test.  Checks MOVF load with pre decrement.
        * movfgriipostincgr.cgs: New test.  Checks MOVF store with post increment.
        * movfgriipostincgr.cgs: New test.  Checks MOVF store with pre decrement.

13 years agocgen/
Alan Modra [Sat, 9 Oct 2010 06:50:21 +0000 (06:50 +0000)]
cgen/
* utils-cgen.scm (gen-attr-accessors): Rename bool attribute to bool_.
* cpu/mep.opc (mep_cgen_insn_supported): Ditto.
include/opcode/
* cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE): Rename bool attribute to bool_.
(CGEN_ATTR_BOOLS, CGEN_ATTR_CGEN_INSN_ALIAS_VALUE): Likewise.

opcodes/
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mep-opc.c: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.

14 years ago * rtl-c.scm (s-float-predop): New function.
Doug Evans [Mon, 30 Aug 2010 16:51:27 +0000 (16:51 +0000)]
* rtl-c.scm (s-float-predop): New function.
(nan, qnan, snan): Call it.

14 years agocgen/
Alan Modra [Mon, 28 Jun 2010 14:41:58 +0000 (14:41 +0000)]
cgen/
* cpu/mep.opc (mep_examine_ivc2_insns): Delete set but unused var.
opcodes/
* mep-dis.c: Regenerate.

14 years agoFix dates :-P
DJ Delorie [Tue, 1 Jun 2010 22:08:35 +0000 (22:08 +0000)]
Fix dates :-P

14 years ago[cgen]
DJ Delorie [Tue, 1 Jun 2010 22:06:50 +0000 (22:06 +0000)]
[cgen]
* cpu/xstormy16.cpu (movgriipostincgr, movgriipredecgr,
movfgriipredecgr): Fix increment/decrement amount.
[sid]
* xstormy16-sem.cxx: Regenerate.

14 years ago * iformat.scm (/sfmt-search-key): Use iformat key instead of list
Doug Evans [Sat, 13 Feb 2010 04:34:49 +0000 (04:34 +0000)]
* iformat.scm (/sfmt-search-key): Use iformat key instead of list
of ifields.

14 years agoupdate copyright year
Doug Evans [Sat, 13 Feb 2010 03:39:15 +0000 (03:39 +0000)]
update copyright year

14 years ago * testsuite/location-1.test: Use %pmacros.
Doug Evans [Fri, 12 Feb 2010 05:32:12 +0000 (05:32 +0000)]
* testsuite/location-1.test: Use %pmacros.

14 years ago * desc-cpu.scm (/gen-cpu-open): Remove comment on K&R support.
Doug Evans [Fri, 12 Feb 2010 02:12:12 +0000 (02:12 +0000)]
* desc-cpu.scm (/gen-cpu-open): Remove comment on K&R support.
* utils-cgen.scm (gen-define-with-symcat): Remove K&R support.

* utils-sim.scm (compute-sformat-argbufs!): Use more consistent name
for name of empty sbuf.

* iformat.scm (/sfmt-search-key, /ifmt-lookup-sfmt!): Add assert.

* insn.scm (<insn>): Add initial value for members fmt-desc, ifmt,
sfmt, tmp.
(/sub-insn-ifields): Delete old commented out code.
(/sub-insn-make!, /parse-insn-format-symbol): Ditto.
* operand.scm (/anyof-merge-setter, anyof-merge-semantics): Ditto.

* sim-decode.scm (/gen-decode-insn-globals): Tweak formatting of
generated code.

14 years ago * gen-all: Print options.
Doug Evans [Wed, 10 Feb 2010 19:28:35 +0000 (19:28 +0000)]
* gen-all: Print options.

14 years agotweak comment
Doug Evans [Wed, 10 Feb 2010 04:22:57 +0000 (04:22 +0000)]
tweak comment

14 years agoadd list of supported apps for application-is?
Doug Evans [Fri, 29 Jan 2010 03:11:43 +0000 (03:11 +0000)]
add list of supported apps for application-is?

14 years ago * pmacros.scm (pmacros-init!): New arg rtl-version, all callers
Doug Evans [Fri, 29 Jan 2010 02:59:02 +0000 (02:59 +0000)]
* pmacros.scm (pmacros-init!): New arg rtl-version, all callers
updated.  Use %-prefix if rtl-version >= 0.9.
* read.scm (/supported-rtl-versions): Add (0 9).
(/rtl-version-valid?): New function.
(/cmd-define-rtl-version): If new rtl version, reinvoke pmacros-init!.
(/reader-expr): New function.
(reader-process): New function.
(/reader-process-with-loc!): Renamed from /reader-process!.
Don't pre-expand `if' commands.
(/cmd-if): Simplify.  Pmacro-expand test, then, else clauses here.
Handle rtl-version-equal?, rtl-version-at-least?.
* testsuite/Makefile.am (clean-test-files): Remove *.test.cpu*.
* testsuite/Makefile.in: Regenerate.
* testsuite/pmacros-1.test: Test both . and % as prefixes.
* testsuite/testsuite.cpu (/begin, /print, /dump): New pmacros.
(newline, print-match, print-expr, print-thunk): Use them.
(internal-verify): Update definition.
* doc/rtl.texi (define-rtl-version): Document rtl version 0.9.
(Top level conditionals): New node.

14 years agotweak comment
Doug Evans [Fri, 29 Jan 2010 02:28:40 +0000 (02:28 +0000)]
tweak comment

14 years ago * read.scm (rtl-version-at-least?): Fix typo.
Doug Evans [Fri, 29 Jan 2010 02:26:57 +0000 (02:26 +0000)]
* read.scm (rtl-version-at-least?): Fix typo.

14 years ago * mach.scm: Follow commenting convention.
Doug Evans [Thu, 28 Jan 2010 05:29:04 +0000 (05:29 +0000)]
* mach.scm: Follow commenting convention.

14 years ago * read.scm: Follow commenting convention.
Doug Evans [Thu, 28 Jan 2010 05:05:47 +0000 (05:05 +0000)]
* read.scm: Follow commenting convention.

14 years ago * pmacros.scm: Follow commenting convention. Replace change to
Doug Evans [Thu, 28 Jan 2010 04:45:15 +0000 (04:45 +0000)]
* pmacros.scm: Follow commenting convention.  Replace change to
$pmacro to %pmacro.  $pmacro is confusing with $ in assembler syntax.
(/pmacro-orig-prefix, /pmacro-prefix): New globals.

14 years ago * co-for-gen-all: Simplify a bit.
Doug Evans [Tue, 26 Jan 2010 03:07:31 +0000 (03:07 +0000)]
* co-for-gen-all: Simplify a bit.

14 years ago * desc-cpu.scm (cgen-desc.h): Don't print virtual enums.
Doug Evans [Mon, 25 Jan 2010 03:50:44 +0000 (03:50 +0000)]
* desc-cpu.scm (cgen-desc.h): Don't print virtual enums.
* sid-cpu.scm (cgen-desc.h): Ditto.
* enum.scm (enum-builtin!): New function.
* read.scm (reader-install-builtin!): Call it.
* rtl-c.scm (s-convop): Delete, replaced with ...
(s-int-convop, s-float-convop): ... new fns.
(ext, zext, trunc): Update.
(fext, ftrunc, float, ufloat, fix, ufix): Update.
* rtx-funcs.scm (fext, ftrunc, float, ufloat, fix, ufix): New parameter
`how'.
* cpu/mep-fmax.cpu (fcvtsw): Update.
* cpu/sh.cpu (h-fsd, h-fmov): Update.
* doc/rtl.texi (float-convop): Update.

* frv.cpu (floating-point-conversion): Update call to fp conv op.
(floating-point-dual-conversion, ne-floating-point-dual-conversion,
conditional-floating-point-conversion, ne-floating-point-conversion,
float-parallel-mul-add-double-semantics): Ditto.

14 years ago * gen-all: Be more consistent with intrinsic generation.
Doug Evans [Mon, 25 Jan 2010 01:08:01 +0000 (01:08 +0000)]
* gen-all: Be more consistent with intrinsic generation.

14 years ago * utils-cgen.scm (<location>): Define using new define-class.
Doug Evans [Mon, 25 Jan 2010 00:40:29 +0000 (00:40 +0000)]
* utils-cgen.scm (<location>): Define using new define-class.
(<ident>, <source-ident>, <context>): Ditto.

* cos.scm (/object-string): New function.
(/object-error): Use it.
(/object-count-true): New function
(object-copy-top): Delete.  All callers changed to call object-copy.
(/parse-member-list, /build-getter-defs, /build-setter-defs): New fns.
(define-class, define-interface, define-method): New macros.
(define-getters, define-setters, vmake): Moved here ...
* utils-cgen.scm: ... from here.

14 years agowhitespace fixes in previous patch
Doug Evans [Sun, 24 Jan 2010 23:54:57 +0000 (23:54 +0000)]
whitespace fixes in previous patch

14 years ago* utils-cgen.scm: Follow commenting convention.
Doug Evans [Sun, 24 Jan 2010 23:48:37 +0000 (23:48 +0000)]
* utils-cgen.scm: Follow commenting convention.

14 years agominor whitespace fix
Doug Evans [Sun, 24 Jan 2010 23:37:39 +0000 (23:37 +0000)]
minor whitespace fix

14 years ago * cos.scm: Follow commenting convention. Why did a single ; have to
Doug Evans [Sun, 24 Jan 2010 21:43:59 +0000 (21:43 +0000)]
* cos.scm: Follow commenting convention.  Why did a single ; have to
get indented like it does? :-(

14 years agogen-all: Be smarter about what diffs to generate.
Doug Evans [Sat, 23 Jan 2010 22:22:28 +0000 (22:22 +0000)]
gen-all: Be smarter about what diffs to generate.

14 years agogen-all: add "force" option
Doug Evans [Sat, 23 Jan 2010 20:24:22 +0000 (20:24 +0000)]
gen-all: add "force" option

14 years agoadd usage info
Doug Evans [Sat, 23 Jan 2010 19:57:20 +0000 (19:57 +0000)]
add usage info

14 years ago * gen-all: Move build-configuration related parameters to an
Doug Evans [Sat, 23 Jan 2010 19:21:27 +0000 (19:21 +0000)]
* gen-all: Move build-configuration related parameters to an
external file.

14 years ago * doc/rtl.texi (Expressions): Add more docs on conversion functions.
Doug Evans [Sat, 23 Jan 2010 18:39:35 +0000 (18:39 +0000)]
* doc/rtl.texi (Expressions): Add more docs on conversion functions.

14 years ago * doc/rtl.texi (Expressions): Fix docs on `subword'.
Doug Evans [Fri, 22 Jan 2010 07:40:39 +0000 (07:40 +0000)]
* doc/rtl.texi (Expressions): Fix docs on `subword'.

14 years agoadd more docs on *nan
Doug Evans [Thu, 21 Jan 2010 09:35:39 +0000 (09:35 +0000)]
add more docs on *nan

14 years ago * rtx-funcs.scm (nan,qnan,snan): New rtl functions.
Doug Evans [Thu, 21 Jan 2010 07:56:42 +0000 (07:56 +0000)]
* rtx-funcs.scm (nan,qnan,snan): New rtl functions.
* rtl-c.scm (nan,qnan,snan): New rtl functions.
* doc/rtl.texi (Expressions): Add docs for them.

14 years ago * rtl-traverse.scm (/rtx-canon-anycexprmode): New function.
Doug Evans [Thu, 21 Jan 2010 07:34:56 +0000 (07:34 +0000)]
* rtl-traverse.scm (/rtx-canon-anycexprmode): New function.
(/rtx-make-canon-table): Add entry for ANYCEXPRMODE.
(/rtx-canon-operands): Print expr-mode if /rtx-canon-debug?
Do final error check on mode assigned to expression.
(/rtx-make-traverser-table): Add entry for ANYCEXPRMODE.
* rtl-xform.scm (/rtx-trim-args): Handle ANYCEXPRMODE.
* rtl.scm (/rtx-valid-mode-types): Add ANYCEXPRMODE.
* rtx-funcs.scm (c-code, c-call, c-raw-call): Use ANYCEXPRMODE.
(if, cond, case): Use ANYEXPRMODE.

14 years agomove Ian's entry to list, that was then ...
Doug Evans [Wed, 20 Jan 2010 06:51:57 +0000 (06:51 +0000)]
move Ian's entry to list, that was then ...

14 years ago(.splice): Note that arguments are evaluated first.
Doug Evans [Wed, 20 Jan 2010 06:31:25 +0000 (06:31 +0000)]
(.splice): Note that arguments are evaluated first.

14 years ago * testsuite/pmacros-1.test: Add more .splice tests.
Doug Evans [Wed, 20 Jan 2010 06:22:19 +0000 (06:22 +0000)]
* testsuite/pmacros-1.test: Add more .splice tests.

14 years ago * read.scm (/cmd-include): Fix absolute path handling.
Doug Evans [Wed, 20 Jan 2010 05:56:59 +0000 (05:56 +0000)]
* read.scm (/cmd-include): Fix absolute path handling.

14 years ago * mode.scm (<mode>) Rename member non-mode-c-type to c-type.
Doug Evans [Wed, 6 Jan 2010 05:05:13 +0000 (05:05 +0000)]
* mode.scm (<mode>) Rename member non-mode-c-type to c-type.
All uses updated.
(mode:non-mode-c-type): Delete.
(mode:c-type): Update.
* rtl-c.scm (s-shop): Fix casting of DI mode values.

14 years ago * gen-all (all_cgen_cpus): Add sh.
Doug Evans [Tue, 5 Jan 2010 06:09:01 +0000 (06:09 +0000)]
* gen-all (all_cgen_cpus): Add sh.

14 years ago * utils.scm (copyright-fsf, copyright-red-hat): Update copyright year.
Doug Evans [Sat, 2 Jan 2010 17:53:10 +0000 (17:53 +0000)]
* utils.scm (copyright-fsf, copyright-red-hat): Update copyright year.

14 years ago * mep.opc: Apply patches from opcodes to compile with -Wshadow.
Doug Evans [Fri, 18 Dec 2009 06:04:33 +0000 (06:04 +0000)]
* mep.opc: Apply patches from opcodes to compile with -Wshadow.
mep-asm.c now regenerates correctly again.

14 years ago * gen-all: Add support for building gcc/newlib.
Doug Evans [Thu, 17 Dec 2009 17:52:00 +0000 (17:52 +0000)]
* gen-all: Add support for building gcc/newlib.
Specify --prefix and install all built tools.

14 years ago * sim.scm (/op-gen-written-update): Disable operand number is too
Doug Evans [Wed, 16 Dec 2009 15:33:33 +0000 (15:33 +0000)]
* sim.scm (/op-gen-written-update): Disable operand number is too
large warning, for now.

14 years agoAdd -Wshadow to the gcc command line options used when compiling the binutils.
Nick Clifton [Fri, 11 Dec 2009 13:42:07 +0000 (13:42 +0000)]
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.

14 years ago * gen-all: Rewrite. Build more ports. Split out building of sid.
Doug Evans [Thu, 10 Dec 2009 17:22:51 +0000 (17:22 +0000)]
* gen-all: Rewrite.  Build more ports.  Split out building of sid.

14 years agotweak comment
Doug Evans [Thu, 3 Dec 2009 03:03:17 +0000 (03:03 +0000)]
tweak comment

14 years ago(list-expand): Flag wip better.
Doug Evans [Tue, 24 Nov 2009 16:39:21 +0000 (16:39 +0000)]
(list-expand): Flag wip better.

14 years ago * hardware.scm (hw-pc?): New function.
Doug Evans [Mon, 23 Nov 2009 09:03:01 +0000 (09:03 +0000)]
* hardware.scm (hw-pc?): New function.
* ifield.scm (ifld-signed?): New function.
* iformat.scm (ifmt-analyze): Call insn-cti-attr? instead of insn-cti?.
* insn.scm (insn-cti-attr?): Renamed from insn-ctl?.
(insn-cti?): New function.
* rtl.scm (/hw): Create <pc> object for pcs.
* semantics.scm (/build-reg-operand!): New args ref-type, sem-attrs.
All callers updated.  Watch for sets to the pc.
(semantic-attrs): Watch for sets to the pc.
* sid.scm (<pc> cxmake-get): Handle raw-reg.
* sim.scm (<pc> cxmake-get): Handle raw-reg.
(<operand> cxmake-get): Add debugging printf.
* utils-gen.scm (/gen-ifld-extract-base): Emit calls to
EXTRACT_[LM]SB0_LG[SU]INT for values > 32 bits.
(/gen-extract-word): Ditto.

* utils.scm (gen-c-hex-constant): New function.
* utils-sim.scm (/gen-decode-insn-entry): Call it.

14 years agoremove unnecessary comment in generated code
Doug Evans [Mon, 23 Nov 2009 04:18:05 +0000 (04:18 +0000)]
remove unnecessary comment in generated code

14 years ago * insn.scm (/parse-insn-format): Watch for duplicate ifields.
Doug Evans [Mon, 23 Nov 2009 03:28:31 +0000 (03:28 +0000)]
* insn.scm (/parse-insn-format): Watch for duplicate ifields.
* read.scm (parse-error-continuable): New function.
(define /continuable-error-found?): New variable.
(/init-reader!): Initialize it.
(/finish-reader!): New function.
(cpu-load): Call it.
* utils-cgen.scm (obj-list-nub): New function.

14 years ago * mach.scm (<derived-arch-data>): New member large-insn-word?.
Doug Evans [Mon, 23 Nov 2009 00:59:57 +0000 (00:59 +0000)]
* mach.scm (<derived-arch-data>): New member large-insn-word?.
(/adata-set-derived!): Set it.
(adata-large-insn-word?): New function.
* sim-arch.scm (/gen-cpuall-includes): Don't #include cgen-engine.h
here.
* sim-cpu.scm (cgen-cpu.h): #include it here.
(/gen-cpu-defines): Define CGEN_INSN_WORD.
(/gen-no-scache-semantic-fn): Use CGEN_INSN_WORD instead of
CGEN_INSN_INT.
* sim-decode.scm (/gen-idesc-decls): Ditto.
(/gen-extract-case, /gen-decode-fn): Ditto.
* sim-model.scm (/gen-model-insn-fn): Ditto.
* sim.scm (gen-argbuf-type): Ditto.

14 years ago * rtl-c.scm (/use-gcc-stmt-expr?): New function.
Doug Evans [Mon, 23 Nov 2009 00:44:48 +0000 (00:44 +0000)]
* rtl-c.scm (/use-gcc-stmt-expr?): New function.
(s-sequence): Call it.

14 years agoremove old FIXME
Doug Evans [Sat, 21 Nov 2009 23:41:18 +0000 (23:41 +0000)]
remove old FIXME

14 years ago * rtl-c.scm (s-sequence): Use gcc's statement expressions for
Doug Evans [Sat, 21 Nov 2009 17:39:14 +0000 (17:39 +0000)]
* rtl-c.scm (s-sequence): Use gcc's statement expressions for
non-VOID-mode expressions with multiple statements.

14 years ago * sim.scm (/operand-number-elaboration-written?): New variable.
Doug Evans [Sat, 21 Nov 2009 09:57:58 +0000 (09:57 +0000)]
* sim.scm (/operand-number-elaboration-written?): New variable.
(/op-gen-written-update op): New function.
(/op-gen-set-trace, /op-gen-set-trace-parallel): Call it.

14 years ago * read.scm (/cmd-define-rtl-version): Only log rtl version if changed.
Doug Evans [Sat, 21 Nov 2009 09:40:26 +0000 (09:40 +0000)]
* read.scm (/cmd-define-rtl-version): Only log rtl version if changed.

14 years ago * operand.scm (op-nub): Delete.
Doug Evans [Sat, 21 Nov 2009 09:36:47 +0000 (09:36 +0000)]
* operand.scm (op-nub): Delete.

14 years ago * dev-utils.scm: New file.
Doug Evans [Sat, 21 Nov 2009 09:34:06 +0000 (09:34 +0000)]
* dev-utils.scm: New file.
* dev.scm (srcdir, load-doc, load-opc, load-gtest, load-sid,
load-sim, load-stest, load-testsuite): Moved to dev-utils.scm.
* read.scm (CHECK-LOADED?, libcpu.so, /loaded-file-list, /loaded-file?,
/loaded-file-record!, maybe-load): Delete.
Load cgen files directly instead of via maybe-load.

14 years ago * rtl-traverse.scm (/rtx-canon): Flag an error for non-void
Doug Evans [Sat, 14 Nov 2009 20:16:34 +0000 (20:16 +0000)]
* rtl-traverse.scm (/rtx-canon): Flag an error for non-void
expressions used in a void context.

14 years ago * gen-all: Explicitly build binutils, gas, ld, gdb, sid.
Doug Evans [Sat, 14 Nov 2009 20:15:56 +0000 (20:15 +0000)]
* gen-all: Explicitly build binutils, gas, ld, gdb, sid.

14 years ago opcodes/
Doug Evans [Sat, 14 Nov 2009 20:04:59 +0000 (20:04 +0000)]
opcodes/
* Makefile.am (stamp-xc16x): Use ../cpu/xc16x.cpu instead of
../cgen/cpu.
* Makefile.in: Regenerate.

cgen/
* cpu/xc16x.cpu: Delete, use copy in ../cpu.
* cpu/xc16x.opc: Ditto.

14 years agowhitespace tweak to previous entry
Doug Evans [Thu, 12 Nov 2009 16:05:55 +0000 (16:05 +0000)]
whitespace tweak to previous entry

14 years ago * rtl-c.scm (s-parallel): Use map-in-order instead of map.
Doug Evans [Thu, 12 Nov 2009 16:05:29 +0000 (16:05 +0000)]
* rtl-c.scm (s-parallel): Use map-in-order instead of map.
* rtl-xform.scm (/rtx-trim-for-doc): Handle set-quiet, nop,
eq, ne, lt, le, gt, ge, ltu, leu, gtu, geu, index-of.

14 years ago * html.scm (gen-insn-docs): Add logging message.
Doug Evans [Thu, 12 Nov 2009 05:33:53 +0000 (05:33 +0000)]
* html.scm (gen-insn-docs): Add logging message.

14 years ago * utils-cgen.scm (gen-set-macro2): New function.
Doug Evans [Thu, 5 Nov 2009 19:23:08 +0000 (19:23 +0000)]
* utils-cgen.scm (gen-set-macro2): New function.
* sim.scm (<hw-register> gen-get-macro): Call it.

14 years ago * co-for-gen-all: New file.
Doug Evans [Thu, 5 Nov 2009 18:42:30 +0000 (18:42 +0000)]
* co-for-gen-all: New file.

14 years ago * testsuite/name-comments-1.test: Update call to current-insn-lookup.
Doug Evans [Thu, 5 Nov 2009 16:59:54 +0000 (16:59 +0000)]
* testsuite/name-comments-1.test: Update call to current-insn-lookup.

14 years ago * utils.scm (reduce): Delete.
Doug Evans [Thu, 5 Nov 2009 16:55:33 +0000 (16:55 +0000)]
* utils.scm (reduce): Delete.

* rtl-traverse.scm (/rtx-canon-rtx-enum): Tweak local name.

* enum.scm (gen-enum-sym): Make consistent with gen-enum-decl
regarding PREFIX attribute handling.

* operand.scm (<hw-index>): Add enum to possible types, all uses
updated.
(hw-index-constant?, hw-index-constant-value): New functions.
(make-enum-hw-index, hw-index-enum-name, hw-index-enum-value,
hw-index-enum-obj): New functions.
(/operand-parse): Handle enum indices.
* intrinsics.scm (md-operand:fixed-register): Use hw-index-constant?,
hw-index-constant-value.
* rtl.scm (rtx-constant-value): Fix handling of enums.
* rtx-funcs.scm (enum): Ditto.
* sid.scm (<hardware-base> cxmake-get): Only ifield indices are
currently supported here.

14 years agodowngrade some fixmes -> ???
Doug Evans [Thu, 5 Nov 2009 16:53:40 +0000 (16:53 +0000)]
downgrade some fixmes -> ???

14 years ago Specify isa(s) when doing ifield, operand, insn lookups.
Doug Evans [Tue, 3 Nov 2009 16:24:02 +0000 (16:24 +0000)]
Specify isa(s) when doing ifield, operand, insn lookups.
ACU = all callers updated.
* attr.scm (/attr-eval): Call rtx-value instead of rtx-eval-with-estate.
* enum.scm (define-full-insn-enum): Pass isa-name-list to
current-ifld-lookup.
* html.scm (get-insn-properties): Pass isa-name-list to
current-op-lookup.
* ifield.scm (/ifld-parse-follows): New arg isas, ACU.
* insn.scm (/parse-insn-format-symbol): New arg isa-name-list, ACU.
(/parse-insn-format-list, /parse-insn-iformat-iflds): Ditto.
(/parse-insn-format, syntax-break-out): Ditto.
* mach.scm (obj-filter-by-isa): New function.
(current-ifld-lookup): New optional arg maybe-isa-name-list.
(/ifld-already-defined?, /op-already-defined?): Simplify.
(current-op-lookup): New optional arg maybe-isa-name-list.
(current-insn-lookup): New arg isa-name-list, ACU.
(/insn-already-defined?, /minsn-already-defined?): Simplify.
(current-minsn-lookup): New arg isa-name-list, ACU.
* minsn.scm (/minsn-compute-iflds): Pass isa-name-list to
current-op-lookup.
* opc-itab.scm (compute-syntax): New arg isa-name-list, ACU.
(gen-syntax-entry): Ditto.
* operand.scm (/operand-parse): Pass isa-name-list to
current-ifld-lookup.
(/derived-parse-encoding): New arg isa-name-list, ACU.
(/derived-parse-ifield-assertion): Ditto.
(/derived-operand-parse): Pass isa-name-list to current-op-lookup.
(/anyof-parse-choice): Ditto.
(anyof-satisfies-assertions?): Pass context to rtx-solve.
(/anyof-merge-syntax): New arg container, ACU.
(operand-builtin!): Add pc to all isas.
* rtl-c.scm (estate-make-for-rtl-c): Delete arg extra-vars-alist, ACU.
(estate-make-for-rtl-c++, rtl-c-expr-parsed): Ditto.
(rtl-c-parsed, rtl-c++-parsed): Ditto.
(rtl-c): New arg isa-name-list, ACU.
(rtl-c-expr, rtl-c++): Ditto.
(closure): New arg isa-name-list, ACU.
* rtl-traverse.scm (/make-cstate): New arg isa-name-list, ACU.
(/cstate-isas): New function.
(/rtx-canon-symbol-list): New function.
(/rtx-canon-env-stack): Renamed from /rtx-canon-env, ACU.
updated.
(/rtx-make-canon-table): Rename ENV to ENVSTACK, new entry SYMBOLLIST.
(/rtx-canon-rtx-operand): Pass isa list to current-op-lookup.
(/rtx-canon-rtx-ref, /rtx-canon): Ditto.
(rtx-canonicalize): New arg isa-name-list, ACU.
(rtx-canonicalize-stmt): Delete.
(tstate-make): New arg isas, ACU.
(tstate-isas, tstate--set-isas!): New functions.
(tstate-env-stack): Renamed from tstate-env, ACU.
(tstate-set-env-stack!): Renamed from tstate-set-env!, ACU.
(tstate-make-closure): Renamed from tstate-new-env, new arg
isa-name-list, ACU.
(/rtx-traverse-env): Delete.
(/rtx-make-traverser-table): Rename ENV to ENVSTACK, new entry
SUMBOLLIST.
(/rtx-traverse): Include conditional flag in dump output.
Update isa,envstack for closures.  Pass isa list to current-op-lookup.
(<eval-state>): New member isas.  Rename env to env-stack.
(<eval-state> vmake!): Handle #:isas.  #:env renamed to #:env-stack.
(<eval-state>): New getter/setter for isas.  Rename env getter/setter
to env-stack.
(estate-make-for-eval): Provide #:isas.
(estate-make-closure): Renamed from estate-new-env.  New arg
isa-name-list, ACU.
* rtl-xform.scm (/rtx-simplify-expr-fn): Handle closures.
(/rtx-trim-args): ENV renamed to ENVSTACK.  Ad ITERATION, SYMBOLLIST.
(/rtx-trim-for-doc): Handle closures.
* rtl.scm (/rtx-valid-types): Rename ENV to ENVSTACK.  Add ITERATION,
SYMBOLLIST.
(rtx-env-var-list): Delete.
(rtx-env-make): Handle already-compiled environments.
(rtx-var-alist-to-env): New function.
(rtx-var-alist-to-closure-env-stack, rtx-make-env-stack): New functions.
(rtx-env-stack-dump): Renamed from rtx-env-dump, ACU.
(rtx-operand-obj): New arg isa-name-list, ACU.
(rtx-closure-isas, rtx-closure-env-stack, rtx-closure-expr): New
functions.
* rtx-funcs.scm (closure): New arg isa-name-list, reorder args, ACU.
* sem-frags.scm (<sfrag>): Delete member compiled-semantics.
(/frag-compute-desired-frags): Minor simplification.
(/frag-pick-best): Ditto.
* sid-cpu.scm (gen-semantic-code): Require canonical rtl.
(/gen-sfrag-code): Update.
* sim-cpu.scm (gen-semantic-code): Require canonical rtl.
* utils-cgen.scm (sanitize): New arg isa-name-list, ACU.
* utils.scm (non-null-intersection?): New function.

14 years agocomment tweaks
Doug Evans [Tue, 3 Nov 2009 07:03:35 +0000 (07:03 +0000)]
comment tweaks

14 years ago * gen-all (do_src): Manually run cgen-all for sid.
Doug Evans [Tue, 3 Nov 2009 06:59:25 +0000 (06:59 +0000)]
* gen-all (do_src): Manually run cgen-all for sid.

14 years agowhitespace cleanup
Doug Evans [Sun, 1 Nov 2009 22:54:16 +0000 (22:54 +0000)]
whitespace cleanup

14 years agominor spelling tweak
Doug Evans [Sun, 1 Nov 2009 22:53:32 +0000 (22:53 +0000)]
minor spelling tweak

14 years ago * gen-all: New file.
Doug Evans [Sun, 1 Nov 2009 22:42:59 +0000 (22:42 +0000)]
* gen-all: New file.

14 years ago(/rtx-canon): Minor simplification of previous patch.
Doug Evans [Sun, 1 Nov 2009 21:09:57 +0000 (21:09 +0000)]
(/rtx-canon): Minor simplification of previous patch.

14 years ago * rtl-traverse.scm (/rtx-canon): Issue better error message for
Doug Evans [Sun, 1 Nov 2009 20:58:40 +0000 (20:58 +0000)]
* rtl-traverse.scm (/rtx-canon): Issue better error message for
invalid rtx function names.

14 years ago * cos.scm (object-assign!): New function.
Doug Evans [Wed, 28 Oct 2009 16:37:33 +0000 (16:37 +0000)]
* cos.scm (object-assign!): New function.
* mode.scm (/mode-set-word-params!): Call it.

14 years ago Record bitset attributes internally as a list.
Doug Evans [Mon, 26 Oct 2009 00:56:35 +0000 (00:56 +0000)]
Record bitset attributes internally as a list.
Record rtx attribute values internally as ((rtx-expr)).
* attr.scm (bitset-attr?): Delete, unused.
(<bitset-attribute> parse-value): Rewrite.
(/attr-parse): Rewrite bitset default value processing.
(/attr-read): Pick out values of scalar attributes to distinguish
them from bitset values which are a list.
Fix spelling errors for processing of default values.
Handle string attributes.
(bitset-attr->list): Delete, all callers updated.
(/bitset-attr->charmask): Renamed from bitset-attr->charmask.
All callers updated.
(atlist-source-form): Rewrite.
* hardware.scm (<hardware-base> 'get-isas): Update recognition
of all isas.
(hardware-builtin!): Update spec of ISA attribute, (ISA foo,bar)
-> (ISA foo bar).
* intrinsics.scm (target:belongs-to-group?): Update, bitset attribute
values are now lists.
* mach.scm (def-isa-attr!): Update, bitset attribute values,
including the default, are now lists.
(all-isas-attr-value): Result is now a list.
* doc/rtl.texi: Clean up pass over attribute docs.

14 years ago * attr.scm (/attr-parse): Use /attr-val-is-rtx? to detect rtx values.
Doug Evans [Mon, 26 Oct 2009 00:25:33 +0000 (00:25 +0000)]
* attr.scm (/attr-parse): Use /attr-val-is-rtx? to detect rtx values.
Disallow rtx values for bitset attributes.
(/attr-read): Record rtx in default value as ((rtx-expr)).
(/attr-eval): Update.

14 years ago Change internal representation of rtx attribute values.
Doug Evans [Sun, 25 Oct 2009 16:30:42 +0000 (16:30 +0000)]
Change internal representation of rtx attribute values.
* attr.scm (/attr-val-is-rtx?): New function.
(attr-value): Call it.
(atlist-attr-value-no-default, attr-lookup-default): Ditto.

14 years ago * gen-all-desc: Use cpu/sh.cpu instead of ../cpu/sh.cpu
Doug Evans [Sat, 24 Oct 2009 23:09:47 +0000 (23:09 +0000)]
* gen-all-desc: Use cpu/sh.cpu instead of ../cpu/sh.cpu
(until ../cpu/sh.cpu is updated and cpu/sh.cpu is deleted).

14 years ago * gen-all-doc: Add sh.cpu.
Doug Evans [Sat, 24 Oct 2009 22:34:51 +0000 (22:34 +0000)]
* gen-all-doc: Add sh.cpu.

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