]> sourceware.org Git - cgen.git/log
cgen.git
2 years agosid/sim: constify sim_machs storage
Mike Frysinger [Mon, 28 Jun 2021 15:33:56 +0000 (11:33 -0400)]
sid/sim: constify sim_machs storage

The array itself is read-only, so mark it const.

2 years agodesc: include stdlib.h for free() prototype
Mike Frysinger [Wed, 19 May 2021 02:01:04 +0000 (22:01 -0400)]
desc: include stdlib.h for free() prototype

3 years agosim-decode: include cgen-mem & cgen-ops
Mike Frysinger [Sun, 27 Jun 2021 03:26:58 +0000 (23:26 -0400)]
sim-decode: include cgen-mem & cgen-ops

The bpf & cris ports use functions from both of these APIs, so include
them here for all ports just in case (and since there isn't an API for
ports to declare specific additional headers they need).

3 years agosim: rename TRACE_EXTRACT to CGEN_TRACE_EXTRACT
Mike Frysinger [Sun, 31 Jan 2021 21:40:48 +0000 (16:40 -0500)]
sim: rename TRACE_EXTRACT to CGEN_TRACE_EXTRACT

As was done for other touch points in the sim project, add a CGEN_
prefix to namespace it away from the common code.  The generated
files have already been updated years ago.

3 years agoUpdate year range in emitted copyright notice
Alan Modra [Thu, 31 Dec 2020 23:05:41 +0000 (09:35 +1030)]
Update year range in emitted copyright notice

4 years agodesc-cpu.scm: support passing the instruction endianness to cgen_cpu_open
Jose E. Marchesi [Fri, 29 May 2020 14:03:48 +0000 (16:03 +0200)]
desc-cpu.scm: support passing the instruction endianness to cgen_cpu_open

2020-05-29  Jose E. Marchesi  <jemarch@gnu.org>

* desc-cpu.scm (/gen-cpu-open): Support passing the instruction
endianness to cgen_cpu_open.

4 years agoReplace "if (x) free (x)" with "free (x)"
Alan Modra [Thu, 21 May 2020 00:44:26 +0000 (10:14 +0930)]
Replace "if (x) free (x)" with "free (x)"

* desc-cpu.scm (@arch@_cgen_cpu_close): Free without first
checking for non-NULL.

4 years agoUpdate to autotools used by binutils
Alan Modra [Thu, 13 Jun 2019 01:45:07 +0000 (11:15 +0930)]
Update to autotools used by binutils

When cgen source is installed in the top source directory of
binutils-gdb and configuring with --enable-maintainer-mode
--enable-cgen-maint=yes it is somewhat annoying to regenerate cgen
files without differences due to using different autotools.
Particularly so since the generated files in the git repository don't
all use the same autotools.

This patch fixes that by modernising the source a little and
regenerating with autoconf-2.69 and automake-1.15.1.

Note that doc/stamp-vti and doc/version.texi contain dates taken from
your checked out doc/cgen.texi file time stamp.  So in order to
regenerate these files consistently it is necessary to
  touch --date=xxx doc/cgen.texi
with the date taken from the last doc/cgen.texi commit.

* configure.ac: Renamed from configure.in.
(AC_INIT, AM_INIT_AUTOMAKE): Modernize.
(AC_CONFIG_SRCDIR): Invoke.
* INSTALL: Adjust for configure.ac renaming.
* Makefile.am (AUTOMAKE_OPTIONS): Delete cygnus and version.
Add foreign.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Likewise.
* doc/Makefile.am (AUTOMAKE_OPTIONS): Delete cygnus, add foreign,
info-in-builddir and no-texinfo.tex.
(DISTCLEANFILES): Delete automake-1.9 hack.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.
* doc/stamp-vti: Regenerate.
* testsuite/Makefile.in: Regenerate.

4 years agoCopyright update
Alan Modra [Fri, 7 Feb 2020 13:38:33 +0000 (00:08 +1030)]
Copyright update

5 years agogen-doc: Updates for latest cpu definitions
Stafford Horne [Sat, 1 Jun 2019 07:26:29 +0000 (16:26 +0900)]
gen-doc: Updates for latest cpu definitions

Doc generation was no longer working due to several issues.

 - openrisc.cpu no longer exists (its not cpu/or1k.cpu in binutils-gdb)
 - Relavive paths for archfile no longer work due to wrong cwd.
 - Many architectures have been added and removed.

I have be able to get this working and added all the architectures I
could get working with the below changes. I have posted the results
here:

  http://shorne.noip.me/downloads/gen-doc/

ChangeLog:

yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>

* gen-all-doc (archs): Add new archs and update locations.
(archfile): Prepend cgendir.
(index.html gen): Change name openrisc to or1k.
* html.scm (gen-html-trailer): Change redhat.com to
sourceware.org.

5 years agocgen: Add unordered compare operation
Stafford Horne [Sat, 1 Jun 2019 07:26:28 +0000 (16:26 +0900)]
cgen: Add unordered compare operation

On OpenRISC we have added FPU unordered comparison operations (NaN
detection).  This patch adds the unordered operation which will generate
c hooks to be implemented in simulators.

An unordered comparison can now be defined as:

  ; Compare unordered (set flag if either r1 or r2 is NaN)
  (set BI flag (unordered WI r1 r2))

  ; Compare unordered, greater than or equal
  (set BI flag (or (unordered WI r1 r2)
   (ge WI r1 r2)))

ChangeLog:

yyyy-mm-dd  Stafford Horne  <shorne@gmail.com>

* rtl-c.scm (unordered): New comparison operation.
* rtx-funcs.scm (unordered): New rtx node.

5 years agocgen: partial support for 64-bit wide fields in 32-bit hosts
Jose E. Marchesi [Tue, 14 May 2019 18:09:25 +0000 (20:09 +0200)]
cgen: partial support for 64-bit wide fields in 32-bit hosts

Hi people!

This patch adds support for having 64-bit wide fields working in
32-bit hosts.  This is not a complete solution, but it is enough for
supporting:

- Defining a 64-bit h-sint in your .cpu file.
- Using that hardware to define an operand featuring as index a
  64-bit wide multi-ifield.

Note that the current CGEN support in binutils provides
cgen_{extract,insert}_normal functions that get `long' values, hence
the need for the operand to be indexed by a multi-ifield.

This is used by an eBPF binutils port which I will be upstreaming this
week.  All other CGEN-based ports currently in binutils are not
impacted by this change.

Eventually, we shall make the "portable" INT/UINT modes (and
associated hardwares s-int/s-uint) to work properly in 32-bit hosts
when holding 64-bit values.

I have a tentative large patch attempting that, including changes in
binutils's opcodes CGEN support, that I will send for comments soon,
but in the meanwhile I would really appreciate if this gets into cgen.
(Without this patch applied, the eBPF assembler doesn't work properly
in 32-bit hosts.)

Thanks!

2019-05-14  Jose E. Marchesi  <jose.marchesi@oracle.com>

* opcodes.scm (gen-ifield-default-type): Use int64_t for fields
wider than 32-bits.
(/gen-parse-number): Use u?int64_t for > 32-bit modes.
(gen-ifield-value-decl): Fix call to gen-ifield-default-type.
(<ifield>, gen-insert): Likewise.
(<ifield>, gen-extract): Likewise.
* opc-asmdis.scm (char): Likewise.

5 years agomanual: remove obsolete comment about using multi-ifields in operands
Jose E. Marchesi [Tue, 14 May 2019 18:32:40 +0000 (20:32 +0200)]
manual: remove obsolete comment about using multi-ifields in operands

This little patch removes an obsolete comment from the manual.
Multi-ifields certainly work as indexes in instruction operands.

Salud!

ChangeLog:

2019-05-14  Jose E. Marchesi  <jose.marchesi@oracle.com>

* doc/rtl.texi (Instruction operands): Remove obsolete comment
about multi-ifields.

5 years ago * utils.scm: Update emitted copyright dates.
Alan Modra [Tue, 1 Jan 2019 11:51:25 +0000 (11:51 +0000)]
* utils.scm: Update emitted copyright dates.

5 years ago2018-11-20 Jose E. Marchesi <jose.marchesi@oracle.com>
Frank Ch. Eigler [Tue, 20 Nov 2018 20:32:39 +0000 (20:32 +0000)]
2018-11-20  Jose E. Marchesi  <jose.marchesi@oracle.com>

* doc/running.texi (Set up the arguments for cgen): Raised from a
subsection to a section.

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.

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