summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/builtins-decl.c
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-03-09 12:00:19 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-03-09 12:00:19 +0000
commit4e8c365e9a750b9cd86a64408c44408f08af2ee9 (patch)
treeda9f2716d66b2ba8ef49b42b8bc3d214c52fb76f /clang/test/Sema/builtins-decl.c
parent58d1f93b03e2cc0a3f8d683792a51f26edd7d0a6 (diff)
downloadbcm5719-llvm-4e8c365e9a750b9cd86a64408c44408f08af2ee9.tar.gz
bcm5719-llvm-4e8c365e9a750b9cd86a64408c44408f08af2ee9.zip
include/clang/Basic/BuiltinsX86.def: __builtin_ia32_crc32**() should be defined to take unsigned args and to return unsigned value.
mingw-w64's intrin.h declares __builtin_ia32_crc32**() as external. llvm-svn: 127329
Diffstat (limited to 'clang/test/Sema/builtins-decl.c')
-rw-r--r--clang/test/Sema/builtins-decl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/builtins-decl.c b/clang/test/Sema/builtins-decl.c
new file mode 100644
index 00000000000..19bdb840ccf
--- /dev/null
+++ b/clang/test/Sema/builtins-decl.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -fsyntax-only -verify -triple=i686-mingw32
+// RUN: %clang_cc1 %s -fsyntax-only -verify -triple=x86_64-mingw32
+
+// mingw-w64's intrin.h has decls below.
+// we should accept them.
+extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
+extern unsigned int __builtin_ia32_crc32hi (unsigned int, unsigned short);
+extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);
OpenPOWER on IntegriCloud