[PATCH] Fix incorrect byte swap detection (PR tree-optimization/60454)

Richard Biener richard.guenther@gmail.com
Fri Mar 7 13:05:00 GMT 2014


On Fri, Mar 7, 2014 at 12:45 PM, Marcus Shawcroft
<marcus.shawcroft@gmail.com> wrote:
> On 7 March 2014 09:35, Thomas Preud'homme <thomas.preudhomme@arm.com> wrote:
>
>> +++ b/gcc/testsuite/gcc.dg/optimize-bswapsi-2.c
>> @@ -0,0 +1,26 @@
>> +/* { dg-do compile { target arm*-*-* alpha*-*-* i?86-*-* powerpc*-*-* rs6000-*-* x86_64-*-* s390*-*-* } } */
>
> I'm fairly sure the target list here should include aarch64*-*-*, I
> tried to apply the patch to my tree to check but failed because the
> patch appears to have been corrupted by email...

It would be better to make it a runtime testcase that abort()s when
miscompiled.

Richard.

> Cheers
> /Marcus



More information about the Gcc-patches mailing list