Test gcc.target/arm/mmx-2.c tests ARM iWMMXt functionality but fails to compile if the compiler under test does not support that by default. This patch adds -mcpu=iwmmxt. Now instead of failing to compile due to unrecognized builtins, it fails with the ICE described in PR54338.
Tested on arm-none-eabi for multiple flags, checked in on trunk. Janis
2012-09-26 Janis Johnson <jani...@codesourcery.com> * gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt. Index: gcc.target/arm/mmx-2.c =================================================================== --- gcc.target/arm/mmx-2.c (revision 191765) +++ gcc.target/arm/mmx-2.c (working copy) @@ -5,7 +5,7 @@ /* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */ /* { dg-require-effective-target arm32 } */ /* { dg-require-effective-target arm_iwmmxt_ok } */ -/* { dg-options "-flax-vector-conversions -std=gnu99" } */ +/* { dg-options "-mcpu=iwmmxt -flax-vector-conversions -std=gnu99" } */ /* Internal data types for implementing the intrinsics. */ typedef int __v2si __attribute__ ((vector_size (8)));