diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-12-21 10:09:21 +0100 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-12-21 10:09:21 +0100 |
commit | 7a8558575054daff45d41bdfe4058596f87467a3 (patch) | |
tree | 57999d475dc6dd3d2475b1594a0777222e497430 /ia32/CBuiltins.ml | |
parent | 6423f1293f9bd78dd981dd6a1e8908659d46875f (diff) | |
download | compcert-7a8558575054daff45d41bdfe4058596f87467a3.tar.gz compcert-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 'ia32/CBuiltins.ml')
-rw-r--r-- | ia32/CBuiltins.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ia32/CBuiltins.ml b/ia32/CBuiltins.ml index 771d2786..802588d4 100644 --- a/ia32/CBuiltins.ml +++ b/ia32/CBuiltins.ml @@ -30,9 +30,9 @@ let builtins = { "__builtin_bswap16", (TInt(IUShort, []), [TInt(IUShort, [])], false); "__builtin_clz", - (TInt(IUInt, []), [TInt(IUInt, [])], false); + (TInt(IInt, []), [TInt(IUInt, [])], false); "__builtin_ctz", - (TInt(IUInt, []), [TInt(IUInt, [])], false); + (TInt(IInt, []), [TInt(IUInt, [])], false); (* Float arithmetic *) "__builtin_fsqrt", (TFloat(FDouble, []), [TFloat(FDouble, [])], false); |