[llvm-bugs] [Bug 26258] New: wrong feature suggested when using AVX maskstore intrinsic

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 22 11:01:30 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160122/f0c3dc1f/attachment-0001.html>


More information about the llvm-bugs mailing list