diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-01 23:23:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-01 23:23:24 +0000 |
commit | 946928f48c96bddf3cfa126862f5ab69c2d904a0 (patch) | |
tree | bfa1c65f8d70c03f693e40ec4f0148f3ed6340ee /test/ASTMerge/Inputs/class1.cpp | |
parent | 14e0e7436cf6650a72052baea1f8ebe644cef489 (diff) |
diagnose errors when a builtin that require constant arguments don't have them.
For example, on:
#include <emmintrin.h>
int foo(int N) {
__m128i white2;
white2 = _mm_slli_si128(white2, N);
return 0;
}
we used to get:
fatal error: error in backend: Cannot yet select: intrinsic %llvm.x86.sse2.psll.dq
now we get:
/Users/sabre/t.c:4:11: error: argument to '__builtin_ia32_pslldqi128' must be a
constant integer
white2 = _mm_slli_si128(white2, N);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/sabre/t.c:1:
/Volumes/Projects/cvs/llvm/Debug+Asserts/lib/clang/2.9/include/emmintrin.h:781:13: note: instantiated from:
((__m128i)__builtin_ia32_pslldqi128((__m128i)(VEC), (IMM)*8))
^ ~~~~~~~
1 error generated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ASTMerge/Inputs/class1.cpp')
0 files changed, 0 insertions, 0 deletions