aboutsummaryrefslogtreecommitdiffstats
path: root/arm/CBuiltins.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2015-12-21 10:09:21 +0100
committerXavier Leroy <xavier.leroy@inria.fr>2015-12-21 10:09:21 +0100
commit7a8558575054daff45d41bdfe4058596f87467a3 (patch)
tree57999d475dc6dd3d2475b1594a0777222e497430 /arm/CBuiltins.ml
parent6423f1293f9bd78dd981dd6a1e8908659d46875f (diff)
downloadcompcert-kvx-7a8558575054daff45d41bdfe4058596f87467a3.tar.gz
compcert-kvx-7a8558575054daff45d41bdfe4058596f87467a3.zip
The return type of __builtin_clz() et al is "int", as documented and for GCC compatibility, and not "unsigned int", as previously implemented.v2.6
Diffstat (limited to 'arm/CBuiltins.ml')
-rw-r--r--arm/CBuiltins.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm/CBuiltins.ml b/arm/CBuiltins.ml
index 00de4df7..6751074c 100644
--- a/arm/CBuiltins.ml
+++ b/arm/CBuiltins.ml
@@ -30,7 +30,7 @@ let builtins = {
"__builtin_bswap16",
(TInt(IUShort, []), [TInt(IUShort, [])], false);
"__builtin_clz",
- (TInt(IUInt, []), [TInt(IUInt, [])], false);
+ (TInt(IInt, []), [TInt(IUInt, [])], false);
(* Float arithmetic *)
"__builtin_fsqrt",
(TFloat(FDouble, []), [TFloat(FDouble, [])], false);