cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fengcheng
Adventurer
Adventurer
376 Views
Registered: ‎11-27-2020

HLS errors with “use of undeclared identifier '__builtin_ia32_*' in Vivado HLS 2019.1

Jump to solution

The source files have been compiled by makefile in Linux (CentOS) system with X86 computer. Now we want to use this source file to generate FFT IP in Vivado HLS 2019.1. When we run C simulation, we add some GCC compiler options (-msse3 -mssse3 -msse4.1 -m32 -lm)to Simulation Settings CFLAGS and Synthesis Settings CFLAGS.

1609814378(1).png

1609814407(1).png

But when we run C synthesis,  we meet problems as following.

ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_storeups': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/xmmintrin.h:630
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_movntps'; did you mean '__builtin_ia32_movntss'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/xmmintrin.h:678
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_cvtps2pd': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:380
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_cvtdq2pd'; did you mean '__builtin_ia32_cvtdq2ps'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:386
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_storeupd': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:586
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pavgb128': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:671
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pavgw128': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:677
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_storedqu': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:1177
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_storelv4si'; did you mean '__builtin_ia32_storelps'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:1189
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_movntpd'; did you mean '__builtin_ia32_movntsd'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:1195
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_movntdq'; did you mean '__builtin_ia32_movntq'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/emmintrin.h:1201
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_movntdqa': /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:143
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovsxbw128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:275
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovsxbd128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:281
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovsxbq128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:287
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovsxwd128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:293
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovsxwq128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:299
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovsxdq128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:305
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovzxbw128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:312
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovzxbd128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:318
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovzxbq128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:324
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovzxwd128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:330
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovzxwq128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:336
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_pmovzxdq128'; did you mean '__builtin_ia32_pmovmskb128'?: /opt/Xilinx/Vivado/2019.1/lnx64/tools/clang/lib/clang/3.1/include/smmintrin.h:342
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683
ERROR: [HLS 214-124] use of undeclared identifier '__builtin_ia32_psrldqi128': FFT2048.cpp:683

......................................

We wonder if there is any workaround. The attachement is source files. Thank you!

 

0 Kudos
1 Solution

Accepted Solutions
dsakjl
Explorer
Explorer
294 Views
Registered: ‎07-20-2018

Hi @fengcheng ,

I think you should not use GCC x86 specific compilation flags to compile a custom HLS code.

You are "compiling" a code to built a custom architecture, not a program for an x86 CPU.

Regards.

View solution in original post

1 Reply
dsakjl
Explorer
Explorer
295 Views
Registered: ‎07-20-2018

Hi @fengcheng ,

I think you should not use GCC x86 specific compilation flags to compile a custom HLS code.

You are "compiling" a code to built a custom architecture, not a program for an x86 CPU.

Regards.

View solution in original post