This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 4/5] ARM Intrinsics Support
> 2009-07-10 Stephen Thomas <stephen.thomas@arm.com>
>
> * testsuite/gcc.target/arm/intrinsics/*.c: New file.
> * testsuite/gcc.target/arm/intrinsics/arm-intrinsics.exp: New.
> * testsuite/gcc.dg/optimize-bswapsi-1.c: Add ARM target.
Most of these tests look bogus.
>+/* { dg-options "-save-temps" } */
Why?
>+/* { dg-do assemble { target { armmode } } } */
>+
>+unsigned foo (int *p, unsigned x)
>+{
>+ return __swp(x, p);
>+}
>+
>+/* { dg-final { scan-assembler "swp" } } */
I'm pretty sure this is going to pass on all targets, whether they happen to
have swp builtin or just call the external function __swp.
Paul