Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2017 20:06:09 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r319718 - head/sys/libkern/arm64
Message-ID:  <201706082006.v58K69Ee062607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706082006.v58K69Ee062607>