diff options
author | Michael Schmidt <github@mschmidt.me> | 2016-07-08 14:43:58 +0200 |
---|---|---|
committer | Michael Schmidt <github@mschmidt.me> | 2016-07-08 14:43:58 +0200 |
commit | 2cb9e645e6630d053bc72e484fe27dda5955e0ae (patch) | |
tree | cdd74cc14acd7140e9255db1628ec19ce3f47df7 /arm/CBuiltins.ml | |
parent | c29a9abe07523eeafc09e630b6a9d14581632e9f (diff) | |
download | compcert-kvx-2cb9e645e6630d053bc72e484fe27dda5955e0ae.tar.gz compcert-kvx-2cb9e645e6630d053bc72e484fe27dda5955e0ae.zip |
bug 19318, add implementation of __builtin_ctz, __builtin_ctzl and __builtin_ctzll for ARM
Diffstat (limited to 'arm/CBuiltins.ml')
-rw-r--r-- | arm/CBuiltins.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arm/CBuiltins.ml b/arm/CBuiltins.ml index 1b06b93b..2015607a 100644 --- a/arm/CBuiltins.ml +++ b/arm/CBuiltins.ml @@ -35,6 +35,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); (* Float arithmetic *) "__builtin_fsqrt", (TFloat(FDouble, []), [TFloat(FDouble, [])], false); |