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 /test | |
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 'test')
-rw-r--r-- | test/regression/Results/builtins-ia32 | 2 | ||||
-rw-r--r-- | test/regression/builtins-arm.c | 2 | ||||
-rw-r--r-- | test/regression/builtins-ia32.c | 2 | ||||
-rw-r--r-- | test/regression/builtins-powerpc.c | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/test/regression/Results/builtins-ia32 b/test/regression/Results/builtins-ia32 index 5d14a88..3f9a917 100644 --- a/test/regression/Results/builtins-ia32 +++ b/test/regression/Results/builtins-ia32 @@ -1,5 +1,7 @@ bswap(12345678) = 78563412 bswap16(1234) = 3412 +clz(12345678) = 3 +ctz(1234) = 2 fsqrt(3.141590) = 1.772453 fmin(3.141590, 2.718000) = 2.718000 fmax(3.141590, 2.718000) = 3.141590 diff --git a/test/regression/builtins-arm.c b/test/regression/builtins-arm.c index 5a9cdd0..91a8e89 100644 --- a/test/regression/builtins-arm.c +++ b/test/regression/builtins-arm.c @@ -11,7 +11,7 @@ int main(int argc, char ** argv) printf("bswap(%x) = %x\n", x, __builtin_bswap(x)); printf("bswap16(%x) = %x\n", s, __builtin_bswap16(s)); - printf("cntlz(%x) = %d\n", x, __builtin_cntlz(x)); + printf("cntlz(%x) = %d\n", x, __builtin_clz(x)); printf("fsqrt(%f) = %f\n", a, __builtin_fsqrt(a)); printf ("read_16_rev = %x\n", __builtin_read16_reversed(&s)); diff --git a/test/regression/builtins-ia32.c b/test/regression/builtins-ia32.c index 9145518..1042620 100644 --- a/test/regression/builtins-ia32.c +++ b/test/regression/builtins-ia32.c @@ -13,6 +13,8 @@ int main(int argc, char ** argv) printf("bswap(%x) = %x\n", x, __builtin_bswap(x)); printf("bswap16(%x) = %x\n", s, __builtin_bswap16(s)); + printf("clz(%x) = %d\n", x, __builtin_clz(x)); + printf("ctz(%x) = %d\n", s, __builtin_ctz(s)); printf("fsqrt(%f) = %f\n", a, __builtin_fsqrt(a)); printf("fmin(%f, %f) = %f\n", a, b, __builtin_fmin(a, b)); diff --git a/test/regression/builtins-powerpc.c b/test/regression/builtins-powerpc.c index d8a28ed..17d4d3c 100644 --- a/test/regression/builtins-powerpc.c +++ b/test/regression/builtins-powerpc.c @@ -13,7 +13,7 @@ int main(int argc, char ** argv) printf("mulhw(%x, %x) = %x\n", x, y, __builtin_mulhw(x, y)); printf("mulhwu(%x, %x) = %x\n", x, y, __builtin_mulhwu(x, y)); - printf("cntlz(%x) = %d\n", x, __builtin_cntlz(x)); + printf("cntlz(%x) = %d\n", x, __builtin_clz(x)); printf("bswap(%x) = %x\n", x, __builtin_bswap(x)); printf("bswap16(%x) = %x\n", s, __builtin_bswap16(s)); |