[Bug target/87976] [i386] Sub-optimal code generation for _mm256_set1_epi64()

thiago at kde dot org gcc-bugzilla@gcc.gnu.org
Mon Nov 12 02:50:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87976

--- Comment #3 from Thiago Macieira <thiago at kde dot org> ---
Workaround:
    __m128i value64 = _mm_set_epi64x(0, value); // _mm_cvtsi64_si128(value);
    asm ("" : "+x" (value64));
    __m256i value256 =  _mm256_broadcastq_epi64(value64);


More information about the Gcc-bugs mailing list