diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-07-06 12:15:31 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2015-07-06 12:15:31 +0200 |
commit | 2f31c1867b75040067a1ef74ae32f197e8d296c1 (patch) | |
tree | ee453426daf3ff04d0d625f0e40e8a4a13722dab /powerpc/Asmexpand.ml | |
parent | bec421ba348b0a511c7821843b04e5e9d7ccc619 (diff) | |
download | compcert-2f31c1867b75040067a1ef74ae32f197e8d296c1.tar.gz compcert-2f31c1867b75040067a1ef74ae32f197e8d296c1.zip |
Corrected little typo in __builtin_clz function.
Diffstat (limited to 'powerpc/Asmexpand.ml')
-rw-r--r-- | powerpc/Asmexpand.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerpc/Asmexpand.ml b/powerpc/Asmexpand.ml index 699c841f..3f4dc94b 100644 --- a/powerpc/Asmexpand.ml +++ b/powerpc/Asmexpand.ml @@ -343,7 +343,7 @@ let expand_builtin_inline name args res = | "__builtin_mulhwu", [IR a1; IR a2], [IR res] -> emit (Pmulhwu(res, a1, a2)) | "__builtin_clz", [IR a1], [IR res] -> - emit (Pcntlz(res, a1)) + emit (Pcntlzw(res, a1)) | ("__builtin_bswap" | "__builtin_bswap32"), [IR a1], [IR res] -> emit (Pstwu(a1, Cint _m8, GPR1)); emit (Pcfi_adjust _8); |