Date: Thu, 17 Jan 2013 07:04:40 -0700 From: Warner Losh <imp@bsdimp.com> To: John-Mark Gurney <jmg@funkthat.com> Cc: toolchain@FreeBSD.org Subject: Re: patch to add aes and pclmulqdq instructions to gcc Message-ID: <75C84A9C-E12A-4D2E-8474-46678932236B@bsdimp.com> In-Reply-To: <20130117070516.GI1410@funkthat.com> References: <20130117070516.GI1410@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 17, 2013, at 12:05 AM, John-Mark Gurney wrote: > Mike Belopuhov pointed me to the patch in OpenBSD: > = http://freshbsd.org/commit/openbsd/0babc91a00b1f1953637bb39c8ec97aef704629= e/diff.txt >=20 > 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. >=20 > 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.. >=20 > I have attached the patch, and it is also availble at: > http://people.freebsd.org/~jmg/gcc.aes.patch >=20 > Comments? >=20 > I have not passed it through a make universe yet, but will before > committing... >=20 > I am also working on basic intrinsics header files for these = instructions > too... This looks like it should do the trick. Warner=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75C84A9C-E12A-4D2E-8474-46678932236B>