Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2017 15:35:41 +0200 (CEST)
From:      Sebastian Huber <sebastian.huber@embedded-brains.de>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] bitset(9): Add some operations
Message-ID:  <1209023277.129369.1495978541048.JavaMail.zimbra@embedded-brains.de>
In-Reply-To: <d987232e-4a42-83c5-aab4-ed68ae84dd82@freebsd.org>
References:  <1495198830-10573-1-git-send-email-sebastian.huber@embedded-brains.de> <d987232e-4a42-83c5-aab4-ed68ae84dd82@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Alfred,

----- Alfred Perlstein <alfred@freebsd.org> schrieb:
> Would you consider using "3" instead of "2" as that would match what 
> machine opcodes typically are named. ex: OR3 instead of OR2.

my reasoning was that the existing macros had one input operand and the new have two input operands. The existing macros don't follow your pattern. If you really don't like the new names, we can change them of course.

> 
> Search for addl3 vs addl2 in this paper: 
> http://minnie.tuhs.org/CompArch/Resources/webext3.pdf

I don't know a second architecture that has such opcode names. On most architectures the assembler is smart enough to figure out the number of operands.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine gesch&auml;ftliche Mitteilung im Sinne des EHUG.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1209023277.129369.1495978541048.JavaMail.zimbra>