Author: emaste
Date: Thu Jun 8 20:06:09 2017
New Revision: 319718
URL: https://svnweb.freebsd.org/changeset/base/319718
Log:
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
Modified:
head/sys/libkern/arm64/crc32c_armv8.S
Modified: head/sys/libkern/arm64/crc32c_armv8.S
==============================================================================
--- head/sys/libkern/arm64/crc32c_armv8.S Thu Jun 8 19:40:00 2017
(r319717)
+++ head/sys/libkern/arm64/crc32c_armv8.S Thu Jun 8 20:06:09 2017
(r319718)
@@ -27,6 +27,7 @@
#include <machine/asm.h>
__FBSDID("$FreeBSD$");
+.arch armv8-a+crc
/*
* uint32_t
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"