diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-17 16:39:13 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-08-17 16:39:13 +0000 |
| commit | 0e72d5c3e52a4e83692949b58038e4e38531ef2d (patch) | |
| tree | 14b57916524d6d9b1df7305b3e6595153f95f312 /clang/test/Sema/builtins-decl.c | |
| parent | 2da9d6d6cfebc6934f8e730b4e645b5c08799aac (diff) | |
| download | bcm5719-llvm-0e72d5c3e52a4e83692949b58038e4e38531ef2d.tar.gz bcm5719-llvm-0e72d5c3e52a4e83692949b58038e4e38531ef2d.zip | |
Define __builtin_ffs[ll] with a signed argument instead of unsigned.
GCC documents these as unsigned, but defines them as signed.
llvm-svn: 162106
Diffstat (limited to 'clang/test/Sema/builtins-decl.c')
| -rw-r--r-- | clang/test/Sema/builtins-decl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/builtins-decl.c b/clang/test/Sema/builtins-decl.c index 19bdb840ccf..d6b004aa882 100644 --- a/clang/test/Sema/builtins-decl.c +++ b/clang/test/Sema/builtins-decl.c @@ -6,3 +6,8 @@ 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); + +// GCC documents these as unsigned, but they are defined with a signed argument. +extern int __builtin_ffs(int); +extern int __builtin_ffsl(long); +extern int __builtin_ffsll(long long); |

