Patchwork [testsuite] gcc.target/arm/mmx-2.c: specify -mcpu=iwmmxt

login
register
mail settings
Submitter Janis Johnson
Date Sept. 27, 2012, midnight
Message ID <5063973B.4040208@mentor.com>
Download mbox | patch
Permalink /patch/187247/
State New
Headers show

Comments

Janis Johnson - Sept. 27, 2012, midnight
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  <janisjo@codesourcery.com>

	* gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt.

Patch

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)));