diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-06-21 20:22:55 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-06-21 20:22:55 +0000 |
commit | a4d156980e69fd3787a8a3948d4f1da16b1abf32 (patch) | |
tree | 12af3b81f09e7ea714b42f022415bb63309361f6 /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | 325c7274809b637e86a8e81e7c78667d939440a8 (diff) | |
download | llvm-a4d156980e69fd3787a8a3948d4f1da16b1abf32.zip llvm-a4d156980e69fd3787a8a3948d4f1da16b1abf32.tar.gz llvm-a4d156980e69fd3787a8a3948d4f1da16b1abf32.tar.bz2 |
[x86] AVX FP compare builtins should require AVX target feature (PR28112)
This is a fix for PR28112:
https://llvm.org/bugs/show_bug.cgi?id=28112
The FP comparison intrinsics that take an immediate parameter (rather than specifying
a comparison predicate in the function name) were added with AVX; these are macros in
avxintrin.h. This patch makes clang behavior match gcc (error if a program tries to use
these without -mavx) and matches the Intel documentation, eg:
VCMPPS: m128 _mm_cmp_ps(m128 a, __m128 b, const int imm)
'V' means this is intended to only work with the AVX form of the instruction.
Differential Revision: http://reviews.llvm.org/D21306
llvm-svn: 273311
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions