Commit 1bfe5fd6 authored by Martin Liska's avatar Martin Liska Committed by Tim-Philipp Müller

Add used attribute in order to make NEON detection working with -flto.

parent 737c87a3
Pipeline #55431 passed with stages
in 50 minutes and 15 seconds
......@@ -225,7 +225,7 @@ AC_MSG_CHECKING(for ARM NEON support in current arch/CFLAGS)
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
#include <arm_neon.h>
int32x4_t testfunc(int16_t *a, int16_t *b) {
int32x4_t __attribute__((used)) testfunc(int16_t *a, int16_t *b) {
asm volatile ("vmull.s16 q0, d0, d0" : : : "q0");
return vmull_s16(vld1_s16(a), vld1_s16(b));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment