Date: Thu, 17 Jan 2013 13:12:24 +0200 From: Konstantin Belousov <kostikbel@gmail.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: <20130117111224.GP2522@kib.kiev.ua> In-Reply-To: <20130117070516.GI1410@funkthat.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ99yXAAoJEJDCuSvBvK1BhFQP/RCxf03+i0N9hWQZHQFyAq+n 17lAoG0SGqGSNb29/bfINE6LZVlxAgpB8KnaHDQwMudBuJ7WEH6W0lALKrP7n4Wv bJ54Cn4rzDfpWuzxo3Gh847UZnNziwfVntplUq6T6Mpi8YEvkE4tbxR3ndDvqLIl hVvSntD3ZZ1Vy2gSvAaA2TDF/d1Rv2iAzCUTVfGAjlLu+/4SyuY8BMVhKAN6y5K4 JPhKopHiNgQEudcIi+EgvO9nRtX0zcLqymyvqAg7jwfYlN1I8xqxx8q1A1ABLHCe 6hGjiMxA9CbYy50hY57YJ7w4SKqVNDPWhVZ83/JotVRp45EIb2pf7n4DdKER+r17 Hq1Jrw9yvWNA5RAxBcnq5n/JORKxKewcxgf74Yf1gmVepG09i47KczjXoFK6wsii malBQw7PIKJ3Ug+eBzWMcyzhJ+5ioS8bUcEl5xpihYgmLLb/D1pUi8vM2YBGVmfL 4xwDYmKgyZMBhQKn5Dj02l/quEZRoUaoacb8g+pZ+tWLMoP0YU898c11QMBdye01 dvLFZtg5xUYmtFrEyG009M0PCg9tK3Q/GyK6wOABoHn2p6+zsxvIwgALJ37vX4zT 1BVe90xhFzifynT3fWqDYS1ArkmU8sqOpgwJBMuidaelcLVAKgEb2cU1WvlYEi4G bb8P8QZXBS/2djMdlkq4 =mfaX -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130117111224.GP2522>
