Patchwork [testsuite] gcc.target/arm/combine-movs.c: fix effective target

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

Comments

Janis Johnson - Sept. 27, 2012, midnight
Test gcc.target/arm/combine-movs.c uses the wrong effective-target
keyword on dg-final scans; arm_thumb2_ok says that the target will
support THUMB2 if -mthumb is specified, and arm_thumb2 says that
with the current options it is supported.

Tested on arm-none-eabi with multiple flags, checked in on trunk.

Janis
2012-09-26  Janis Johnson  <janisjo@codesourcery.com>

	* gcc.target/arm/combine-movs.c: Use effective target arm_thumb2.

Patch

Index: gcc.target/arm/combine-movs.c
===================================================================
--- gcc.target/arm/combine-movs.c	(revision 191765)
+++ gcc.target/arm/combine-movs.c	(working copy)
@@ -9,5 +9,5 @@ 
     r[i] = 0;
 }
 
-/* { dg-final { scan-assembler "lsrs\tr\[0-9\]" { target arm_thumb2_ok } } } */
-/* { dg-final { scan-assembler "movs\tr\[0-9\]" { target { ! arm_thumb2_ok} } } } */
+/* { dg-final { scan-assembler "lsrs\tr\[0-9\]" { target arm_thumb2 } } } */
+/* { dg-final { scan-assembler "movs\tr\[0-9\]" { target { ! arm_thumb2 } } } } */