https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85236
Bug ID: 85236 Summary: missing _mm256_atan2_ps Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bking at rtlogic dot com Target Milestone: --- The intel AVX2 intrinsic _mm256_atan2_ps is missing in 7.3.0 Below is the compiler command: g++ -march=native -fopenmp -ffast-math -o atan2 atan2.cpp -lprofiler -v And the output: Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/localgcc730/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/gcc-7.3.0-build/../gcc-7.3.0/configure --prefix=/usr/localgcc730 --with-tune=intel --disable-multilib --disable-nls --disable-libsanitizer --enable-languages=c,c++,lto --enable-threads=posix --enable-__cxa_atexit Thread model: posix gcc version 7.3.0 (GCC) COLLECT_GCC_OPTIONS='-march=native' '-fopenmp' '-ffast-math' '-o' 'atan2' '-v' '-shared-libgcc' '-pthread' /usr/localgcc730/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/cc1plus -quiet -v -D_GNU_SOURCE -D_REENTRANT atan2.cpp -march=broadwell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -msgx -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288 -mtune=generic -quiet -dumpbase atan2.cpp -auxbase atan2 -version -fopenmp -ffast-math -o /tmp/ccmqqsm7.s GNU C++14 (GCC) version 7.3.0 (x86_64-pc-linux-gnu) compiled by GNU C version 7.3.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/localgcc730/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/localgcc730/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../include/c++/7.3.0 /usr/localgcc730/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../include/c++/7.3.0/x86_64-pc-linux-gnu /usr/localgcc730/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../include/c++/7.3.0/backward /usr/localgcc730/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include /usr/local/include /usr/localgcc730/include /usr/localgcc730/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include-fixed /usr/include End of search list. GNU C++14 (GCC) version 7.3.0 (x86_64-pc-linux-gnu) compiled by GNU C version 7.3.0, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: fc95ef22dbe2a51096aba3db7cdac263 atan2.cpp: In function 'int main()': atan2.cpp:51:21: error: '_mm256_atan2_ps' was not declared in this scope __m256 tanRes = _mm256_atan2_ps(A2,A1); ^~~~~~~~~~~~~~~ atan2.cpp:51:21: note: suggested alternative: '_mm256_and_ps' __m256 tanRes = _mm256_atan2_ps(A2,A1); ^~~~~~~~~~~~~~~ _mm256_and_ps Below is the output of gcc -v: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/localgcc730/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/gcc-7.3.0-build/../gcc-7.3.0/configure --prefix=/usr/localgcc730 --with-tune=intel --disable-multilib --disable-nls --disable-libsanitizer --enable-languages=c,c++,lto --enable-threads=posix --enable-__cxa_atexit Thread model: posix gcc version 7.3.0 (GCC) I am using centOs 7. Below is the output of "cat /etc/os-release" NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"