diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-09 12:00:19 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-09 12:00:19 +0000 |
commit | 02b3774347158753dd72c1bb8a29eb78a16440ab (patch) | |
tree | 52db36f733be27151ac45a97180846fa7f62f941 /test/Sema/builtins-decl.c | |
parent | 60be4deb8d90e58cc65b41722d694599e387fc33 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/builtins-decl.c')
-rw-r--r-- | test/Sema/builtins-decl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/builtins-decl.c b/test/Sema/builtins-decl.c new file mode 100644 index 0000000000..19bdb840cc --- /dev/null +++ b/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); |