summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-02-20 10:04:07 +0000
committerDaniel Jasper <djasper@google.com>2014-02-20 10:04:07 +0000
commit4b32b6871e2d433e1b71edc5a0dc4decc124b305 (patch)
tree29e24acbd1dbeb27d6b3dc73326b91b2b8080484
parent45a0a2f6a29457b219a00b8f9f0dd1e60fa6aa9b (diff)
downloadclang-4b32b6871e2d433e1b71edc5a0dc4decc124b305.tar.gz
Change parameter type of _mm_prefetch to "const void *".
Otherwise, this is not backwards compatible to the existing macro and can break existing code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201772 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/BuiltinsX86.def2
-rw-r--r--test/Headers/mmprefetch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/BuiltinsX86.def b/include/clang/Basic/BuiltinsX86.def
index 4a67fc1f5f..8223938262 100644
--- a/include/clang/Basic/BuiltinsX86.def
+++ b/include/clang/Basic/BuiltinsX86.def
@@ -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", "")
diff --git a/test/Headers/mmprefetch.c b/test/Headers/mmprefetch.c
index 7452bea85d..ba4ebd9b22 100644
--- a/test/Headers/mmprefetch.c
+++ b/test/Headers/mmprefetch.c
@@ -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);