Re: Does Linaro's GCC 4.9 include Crypto extensions and intrinsics?

2017-01-13 Thread Jeffrey Walton
Thanks guys, that was it.

I did not realize the build system was omitting the flags.

On Fri, Jan 13, 2017 at 2:23 AM, Pinski, Andrew
 wrote:
> Can you try -march=armv8+crypto ?
>
> -Original Message-
> From: linaro-toolchain [mailto:linaro-toolchain-boun...@lists.linaro.org] On 
> Behalf Of Jeffrey Walton
> Sent: Thursday, January 12, 2017 10:56 PM
> To: Linaro Toolchain Mailman List 
> Subject: Does Linaro's GCC 4.9 include Crypto extensions and intrinsics?
>
> Please forgive my ignorance. I'm working on a Pine64 dev-board Pine64 
> supplies Linaro's GCC 4.9.2 toolchain.
>
> I am catching a compile error, and I am trying to determine why.
>
> Does Linaro's GCC 4.9 provide AES and SHA intrinsics?
___
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain


Re: Does Linaro's GCC 4.9 include Crypto extensions and intrinsics?

2017-01-12 Thread Jim Wilson
On Thu, Jan 12, 2017 at 10:55 PM, Jeffrey Walton  wrote:
> Does Linaro's GCC 4.9 provide AES and SHA intrinsics?

Crypto is an optional feature that is not enabled by default when
selecting the armv8-a architecture.  You either need to specify a
processor that implements the crypto extension, or else you need to
specify the crypto extension when specifying the architecture.  The
latter is probably easier.  For instance, you can do
-march=armv8-a+crypto to enable the crypto support.  You can also
enable crc support by adding "+crc", separately, or in combination
with +crypto.

> $ grep -IR vaeseq_u8 /usr/include
> /usr/include/clang/3.5.0/include/arm_neon.h:__ai uint8x16_t
> vaeseq_u8(uint8x16_t __p0, uint8x16_t __p1) {
> ...

GCC specific header files are normally not in /usr/include.  On my
Ubuntu 14.04 system, it is
/usr/lib/gcc/aarch64-linux-gnu/4.8/include/arm_neon.h
and vaeseq_u8 is in there, but only enabled when crypto support is enabled.

Jim
___
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain