diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-08-27 09:51:01 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-08-27 09:51:01 +0000 |
commit | 9ee09b9b2cb498219bd8012bed69ecf63fce63a4 (patch) | |
tree | 4b88da989f9545a80ee5fe6bcc1118a23c84d2d5 /powerpc | |
parent | 1abecb7b559c5e0eab8c093a629fd8197f57205f (diff) |
Rename __builtin_cntlz to __builtin_clz.
IA32: add __builtin_clz, __builtin_ctz.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2619 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'powerpc')
-rw-r--r-- | powerpc/Asmexpand.ml | 2 | ||||
-rw-r--r-- | powerpc/CBuiltins.ml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/powerpc/Asmexpand.ml b/powerpc/Asmexpand.ml index 3554de8..7a45452 100644 --- a/powerpc/Asmexpand.ml +++ b/powerpc/Asmexpand.ml @@ -342,7 +342,7 @@ let expand_builtin_inline name args res = emit (Pmulhw(res, a1, a2)) | "__builtin_mulhwu", [IR a1; IR a2], [IR res] -> emit (Pmulhwu(res, a1, a2)) - | "__builtin_cntlz", [IR a1], [IR res] -> + | "__builtin_clz", [IR a1], [IR res] -> emit (Pcntlz(res, a1)) | ("__builtin_bswap" | "__builtin_bswap32"), [IR a1], [IR res] -> emit (Pstwu(a1, Cint _m8, GPR1)); diff --git a/powerpc/CBuiltins.ml b/powerpc/CBuiltins.ml index f28ff8b..53d84f7 100644 --- a/powerpc/CBuiltins.ml +++ b/powerpc/CBuiltins.ml @@ -28,7 +28,7 @@ let builtins = { (TInt(IInt, []), [TInt(IInt, []); TInt(IInt, [])], false); "__builtin_mulhwu", (TInt(IUInt, []), [TInt(IUInt, []); TInt(IUInt, [])], false); - "__builtin_cntlz", + "__builtin_clz", (TInt(IUInt, []), [TInt(IUInt, [])], false); "__builtin_bswap", (TInt(IUInt, []), [TInt(IUInt, [])], false); |