forked from OSchip/llvm-project
Change parameter type of _mm_prefetch to "const void *".
Otherwise, this is not backwards compatible to the existing macro and can break existing code. llvm-svn: 201772
This commit is contained in:
parent
5e6d83258e
commit
5a02bf26fc
|
@ -59,7 +59,7 @@ BUILTIN(__builtin_ia32_pswapdsi, "V2iV2i", "nc")
|
|||
// All MMX instructions will be generated via builtins. Any MMX vector
|
||||
// types (<1 x i64>, <2 x i32>, etc.) that aren't used by these builtins will be
|
||||
// expanded by the back-end.
|
||||
BUILTIN(_mm_prefetch, "vcC*i", "nc")
|
||||
BUILTIN(_mm_prefetch, "vvC*i", "nc")
|
||||
BUILTIN(__builtin_ia32_emms, "v", "")
|
||||
BUILTIN(__builtin_ia32_paddb, "V8cV8cV8c", "")
|
||||
BUILTIN(__builtin_ia32_paddw, "V4sV4sV4s", "")
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <mmintrin.h>
|
||||
|
||||
// Check to make sure that _mm_prefetch survives redeclaration.
|
||||
void _mm_prefetch(char const*, int);
|
||||
void _mm_prefetch(void const*, int);
|
||||
|
||||
void f(char *a) {
|
||||
_mm_prefetch(a, 0);
|
||||
|
|
Loading…
Reference in New Issue