x86, crc32-pclmul: Fix build with older binutils
authorJan Beulich <JBeulich@suse.com>
Wed, 29 May 2013 12:43:54 +0000 (13:43 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 May 2013 23:36:23 +0000 (16:36 -0700)
commit2baad6121e2b2fa3428ee6cb2298107be11ab23a
treee2f944a9ff91a60ab7ac73152f1ff9a8bb56f96c
parente9d0626ed43a41a3fc526d1df06122b0d4eac174
x86, crc32-pclmul: Fix build with older binutils

binutils prior to 2.18 (e.g. the ones found on SLE10) don't support
assembling PEXTRD, so a macro based approach like the one for PCLMULQDQ
in the same file should be used.

This requires making the helper macros capable of recognizing 32-bit
general purpose register operands.

[ hpa: tagging for stable as it is a low risk build fix ]

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/51A6142A02000078000D99D8@nat28.tlf.novell.com
Cc: Alexander Boyko <alexander_boyko@xyratex.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Huang Ying <ying.huang@intel.com>
Cc: <stable@vger.kernel.org> v3.9
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/crypto/crc32-pclmul_asm.S
arch/x86/include/asm/inst.h