Skip to content

NEON64 code link error if gcc -O1 or -O0 #573

Description

@cyb70289

A simple test code

#include<cstddef>
#include<xsimd/xsimd.hpp>intmain() {
using simd_batch = xsimd::batch<int8_t, xsimd::neon64>;
simd_batch a(1);
simd_batch b(2);
simd_batch c = a | b;
returnxsimd::any(b < c);
}

Compile with gcc -O1 or -O0

$ g++ -O1 neon-debug.cc -I./include -march=armv8-a -std=c++11
/tmp/cc89XtTV.o: In function`main':
neon-debug.cc:(.text+0x10): undefined reference to `vorrq_s8(__Int8x16_t, __Int8x16_t)'neon-debug.cc:(.text+0x1c): undefined reference to `vcltq_s8(__Int8x16_t, __Int8x16_t)'collect2: error: ld returned 1 exit status

Other info

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions