Submission #516303

# Submission time Handle Problem Language Result Execution time Memory
516303 2022-01-21T04:47:24 Z jjang36524 main 함수 (BSC_0_0) C++14
Compilation error
0 ms 0 KB
#include <iostream>
#include <immintrin.h>
using namespace std;
int main()
{
	__m256i a = _mm256_setzero_si256();
	a = _mm256_abs_epi32(a);
}

Compilation message

main.cpp: In function 'int main()':
main.cpp:6:35: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
    6 |  __m256i a = _mm256_setzero_si256();
      |                                   ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:53,
                 from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/10/include/avx2intrin.h:70:1: error: inlining failed in call to 'always_inline' '__m256i _mm256_abs_epi32(__m256i)': target specific option mismatch
   70 | _mm256_abs_epi32 (__m256i __A)
      | ^~~~~~~~~~~~~~~~
main.cpp:7:22: note: called from here
    7 |  a = _mm256_abs_epi32(a);
      |      ~~~~~~~~~~~~~~~~^~~
In file included from /usr/lib/gcc/x86_64-linux-gnu/10/include/immintrin.h:51,
                 from main.cpp:2:
/usr/lib/gcc/x86_64-linux-gnu/10/include/avxintrin.h:1235:1: error: inlining failed in call to 'always_inline' '__m256i _mm256_setzero_si256()': target specific option mismatch
 1235 | _mm256_setzero_si256 (void)
      | ^~~~~~~~~~~~~~~~~~~~
main.cpp:6:34: note: called from here
    6 |  __m256i a = _mm256_setzero_si256();
      |              ~~~~~~~~~~~~~~~~~~~~^~