patch to add aes and pclmulqdq instructions to gcc

Konstantin Belousov kostikbel at gmail.com
Thu Jan 17 11:12:29 UTC 2013


On Wed, Jan 16, 2013 at 11:05:16PM -0800, John-Mark Gurney wrote:
> Mike Belopuhov pointed me to the patch in OpenBSD:
> http://freshbsd.org/commit/openbsd/0babc91a00b1f1953637bb39c8ec97aef704629e/diff.txt
> 
> While OpenBSD's binutils is quite different than FreeBSD's, I was able
> to use his patch to teach binutils how to assemble and disassemble the
> aes and pclmulqdq instructions.
> 
> I have done basic tests, such as verified that it can assemble the aesni
> module and get the same results, and assemble a sample file for
> pclmulqdq..  For each of these tests, I have verified that it's output
> matches (as close as possible, as gcc/clang compile callq's differently)
> clang on amd64..
Did you removed the manually assembled bytes from aes*.S and replaced them
with the commented-out instructions for the test ?

There is also newer VEX encoding for the same AESNI set, but adding the
support for them might be hard because the source base is old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20130117/9ea2ad98/attachment.sig>


More information about the freebsd-toolchain mailing list