From ab624a0ebf01a4f3e45aecb438e890b4da2f66f0 Mon Sep 17 00:00:00 2001 From: xleroy Date: Fri, 5 Aug 2011 12:04:58 +0000 Subject: More builtins for ARM and PowerPC git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1697 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/regression/builtins.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/regression/builtins.c b/test/regression/builtins.c index ea971bf..96b1699 100644 --- a/test/regression/builtins.c +++ b/test/regression/builtins.c @@ -15,7 +15,8 @@ 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("cntlzw(%x) = %d\n", x, __builtin_cntlzw(x)); + printf("cntlz(%x) = %d\n", x, __builtin_cntlz(x)); + printf("bswap(%x) = %x\n", x, __builtin_bswap(x)); printf("fmadd(%f, %f, %f) = %f\n", a, b, c, __builtin_fmadd(a, b, c)); printf("fmsub(%f, %f, %f) = %f\n", a, b, c, __builtin_fmsub(a, b, c)); @@ -36,6 +37,7 @@ int main(int argc, char ** argv) #ifdef __arm__ printf("bswap(%x) = %x\n", x, __builtin_bswap(x)); + printf("cntlz(%x) = %d\n", x, __builtin_cntlz(x)); printf("fsqrt(%f) = %f\n", a, __builtin_fsqrt(a)); -- cgit v1.2.3