public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Stafford Horne <shorne@gmail.com>
To: Richard Henderson <rth@twiddle.net>
Cc: Segher Boessenkool <segher@kernel.crashing.org>,
	GCC patches <gcc-patches@gcc.gnu.org>,
	Openrisc <openrisc@lists.librecores.org>,
	Jeff Law <law@redhat.com>,	Joseph Myers <joseph@codesourcery.com>,
	Joel Sherrill <joel@rtems.org>,
	Sebastian Huber <sebastian.huber@embedded-brains.de>,
	cgen@sourceware.org
Subject: Re: [PATCH v3 3/3] or1k: gcc: initial support for openrisc
Date: Mon, 29 Oct 2018 13:34:00 -0000	[thread overview]
Message-ID: <20181029133425.GE1761@lianli.shorne-pla.net> (raw)
In-Reply-To: <ed59f12b-a2a3-fa28-0d03-de1d11bb6e42@twiddle.net>

On Sun, Oct 28, 2018 at 11:16:13PM +0000, Richard Henderson wrote:
> On 10/28/18 2:57 AM, Segher Boessenkool wrote:
> >> +(define_insn "xorsi3"
> >> +  [(set (match_operand:SI 0 "register_operand" "=r,r")
> >> +	  (xor:SI
> >> +	   (match_operand:SI 1 "register_operand"   "%r,r")
> >> +	   (match_operand:SI 2 "reg_or_s16_operand" " r,I")))]
> >> +  ""
> >> +  "@
> >> +  l.xor\t%0, %1, %2
> >> +  l.xori\t%0, %1, %2")
> > 
> > Is this correct?  Should this be unsigned (u16 and K)?
> 
> No, l.xori is signed.

Right, sorry, I didn't have enough time to look at this at all this morning.  It
is correct.

It looks like the documentation for this page [1] is generated from the cgen cpu
descriptions that were removed from binutils-gdb back in 2014.  Ccing cgen who
seem to maintain this web page.  How can we go about getting it regenerated?

cpu/or1korbis.cpu

    (alu-insn-uimm and)
    (alu-insn-uimm or)
    (alu-insn-simm xor)

    (define-pmacro (alu-carry-insn-simm mnemonic)
      (begin
	(dni (.sym l- mnemonic "i")
	     (.str "l." mnemonic "i reg/reg/simm16")
	     ((MACH ORBIS-MACHS))
	     (.str "l." mnemonic "i $rD,$rA,$simm16")
	     (+ (.sym OPC_ (.upcase mnemonic) "I") rD rA simm16)

[1] https://sourceware.org/cgen/gen-doc/openrisc-insn.html#insns

-Stafford

       reply	other threads:[~2018-10-29 13:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181027043702.18414-1-shorne@gmail.com>
     [not found] ` <20181027043702.18414-4-shorne@gmail.com>
     [not found]   ` <20181028025730.GH5766@gate.crashing.org>
     [not found]     ` <ed59f12b-a2a3-fa28-0d03-de1d11bb6e42@twiddle.net>
2018-10-29 13:34       ` Stafford Horne [this message]
2018-10-29 16:35         ` Segher Boessenkool
2018-10-29 16:42           ` Richard Henderson
2018-10-30 11:26             ` Stafford Horne
2018-10-30 15:42               ` Segher Boessenkool

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181029133425.GE1761@lianli.shorne-pla.net \
    --to=shorne@gmail.com \
    --cc=cgen@sourceware.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joel@rtems.org \
    --cc=joseph@codesourcery.com \
    --cc=law@redhat.com \
    --cc=openrisc@lists.librecores.org \
    --cc=rth@twiddle.net \
    --cc=sebastian.huber@embedded-brains.de \
    --cc=segher@kernel.crashing.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).