From c2aa86d19c5b52ce2a7383a088ddda959c23db58 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 8 Jun 2017 20:06:09 +0000 Subject: [PATCH] arm64: add ".arch armv8-a+crc" to allow use of crc instructions With Clang 5.0 the .arch directive is required, otherwise Clang complains "error: instruction requires: crc". This was reported in D10499 but not added initially, because clang 3.8 available on a ref machine reported unknown directive. Clang 4.0 allows but does not require the directive. Submitted by: andrew MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/libkern/arm64/crc32c_armv8.S | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/libkern/arm64/crc32c_armv8.S b/sys/libkern/arm64/crc32c_armv8.S index 072dfd6427ba..e5d0ff80d97b 100644 --- a/sys/libkern/arm64/crc32c_armv8.S +++ b/sys/libkern/arm64/crc32c_armv8.S @@ -27,6 +27,7 @@ #include __FBSDID("$FreeBSD$"); +.arch armv8-a+crc /* * uint32_t