From owner-freebsd-toolchain@FreeBSD.ORG Thu Jan 17 14:12:26 2013 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C3C13DE3 for ; Thu, 17 Jan 2013 14:12:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id A1269ED for ; Thu, 17 Jan 2013 14:12:26 +0000 (UTC) Received: by mail-pb0-f44.google.com with SMTP id uo1so1425756pbc.3 for ; Thu, 17 Jan 2013 06:12:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=+9/9PrkPZmekRTZzNnTPZDfYBFVZrnG0pG3XBiq93Y8=; b=UlyGy2cAEvrGoSKfewaeb0L7sk3oe7UzqzvQEczHk/jM+S9lBAngwdjwAbvhRe2Y6C zFvn4idGWEYuBksMiVqM/Ngjusq5KCFV8vOuG5BgdA582HcYp9TWz1B8A7YJxO3wrins Cbd0j3M40p7oS9REcw3rjMUPOpxCdbHw/V64hl7ExkjGzNaQJ0sCiJvltX81HiUMBRsl xmKrX10E3S1dVHn3KWin7WYFCFZXmdP4bN23hW7F41AYZyiDaZDF0qs2bZK9HCwQjuqW ye8zQD3oHxRz+CeVZkighxpmGRS7U5jc8B5bobt4g5SF/tZk4yWNddHyATeP4bJfQZ1h Qycw== X-Received: by 10.68.239.104 with SMTP id vr8mr13842472pbc.59.1358431486504; Thu, 17 Jan 2013 06:04:46 -0800 (PST) Received: from [10.0.0.53] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id sb3sm1129866pbc.44.2013.01.17.06.04.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Jan 2013 06:04:44 -0800 (PST) Sender: Warner Losh Subject: Re: patch to add aes and pclmulqdq instructions to gcc Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20130117070516.GI1410@funkthat.com> Date: Thu, 17 Jan 2013 07:04:40 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <75C84A9C-E12A-4D2E-8474-46678932236B@bsdimp.com> References: <20130117070516.GI1410@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkZfX3YE0Z1EEQb+Tt0aCjDUzu5VYD4EmbRI+qIy0/QcfeaJsgW9StvEvUmpwnqv66BoGeC Cc: toolchain@FreeBSD.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 14:12:26 -0000 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=