diff options
author | Michael Schmidt <github@mschmidt.me> | 2016-07-08 14:24:44 +0200 |
---|---|---|
committer | Michael Schmidt <github@mschmidt.me> | 2016-07-08 14:24:44 +0200 |
commit | c29a9abe07523eeafc09e630b6a9d14581632e9f (patch) | |
tree | 24c7112b29ed5f072eb189d3348a2fc2f946362c /powerpc/CBuiltins.ml | |
parent | db2445b3b745abd1a26f5a832a29ca269c725277 (diff) | |
download | compcert-kvx-c29a9abe07523eeafc09e630b6a9d14581632e9f.tar.gz compcert-kvx-c29a9abe07523eeafc09e630b6a9d14581632e9f.zip |
bug 19318, add implementation of __builtin_ctz, __builtin_ctzl and __builtin_ctzll for PowerPC
Diffstat (limited to 'powerpc/CBuiltins.ml')
-rw-r--r-- | powerpc/CBuiltins.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/powerpc/CBuiltins.ml b/powerpc/CBuiltins.ml index d244cba0..d33d6252 100644 --- a/powerpc/CBuiltins.ml +++ b/powerpc/CBuiltins.ml @@ -34,6 +34,12 @@ let builtins = { (TInt(IInt, []), [TInt(IULong, [])], false); "__builtin_clzll", (TInt(IInt, []), [TInt(IULongLong, [])], false); + "__builtin_ctz", + (TInt(IInt, []), [TInt(IUInt, [])], false); + "__builtin_ctzl", + (TInt(IInt, []), [TInt(IULong, [])], false); + "__builtin_ctzll", + (TInt(IInt, []), [TInt(IULongLong, [])], false); "__builtin_bswap", (TInt(IUInt, []), [TInt(IUInt, [])], false); "__builtin_bswap32", |