https://llvm.org/bugs/show_bug.cgi?id=26258
Bug ID: 26258 Summary: wrong feature suggested when using AVX maskstore intrinsic Product: clang Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: spatel+l...@rotateright.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified It would be better if the error message gave me the correct advice the first time. :) $ ./clang -v clang version 3.9.0 (trunk 258513) (llvm/trunk 258512) Target: x86_64-apple-darwin15.2.0 Thread model: posix $ cat juke.c #include <immintrin.h> void juke(float *f, __m128i mask, __m128 v) { _mm_maskstore_ps(f, mask, v); } $ ./clang -O1 juke.c -S juke.c:4:3: error: always_inline function '_mm_maskstore_ps' requires target feature 'sse4.2', but would be inlined into function 'juke' that is compiled without support for 'sse4.2' _mm_maskstore_ps(f, mask, v); ^ 1 error generated. $ ./clang -O1 juke.c -S -msse4.2 juke.c:4:3: error: always_inline function '_mm_maskstore_ps' requires target feature 'avx', but would be inlined into function 'juke' that is compiled without support for 'avx' _mm_maskstore_ps(f, mask, v); ^ 1 error generated. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs