Patchwork [ARM] Fix testism for PR45416 on ARM.

login
register
mail settings
Submitter Ramana Radhakrishnan
Date Jan. 23, 2012, 6 p.m.
Message ID <CACUk7=UrVM8go3fdMKST_jn+aKb_e7B6trAAX4giPsY0zrPnaQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/137445/
State New
Headers show

Comments

Ramana Radhakrishnan - Jan. 23, 2012, 6 p.m.
Hi,

This fixes a failure that I see while running the tests for v7a-
because we don't handle ubfx. Also, this test is valid for arm32
configurations.

Committed to trunk .

cheers
Ramana

2012-01-23  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

       PR middle-end/45416
        * gcc.dg/pr45416.c: Skip if Thumb1. Handle ubfx.

Patch

diff --git a/gcc/testsuite/gcc.dg/pr45416.c b/gcc/testsuite/gcc.dg/pr45416.c
index 1e57185..b8077dd 100644
--- a/gcc/testsuite/gcc.dg/pr45416.c
+++ b/gcc/testsuite/gcc.dg/pr45416.c
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-skip-if "Skip for Thumb1." { { arm*-*-* } && { arm_thumb1_ok } } { "*" } { "" } } */
 /* { dg-options "-O2" } */
 
 int foo(long long a)
@@ -10,5 +11,5 @@  int foo(long long a)
 
 /* { dg-final { scan-assembler "andl" { target i?86-*-linux* x86_64-*-linux* } } } " */
 /* { dg-final { scan-assembler-not "setne" { target i?86-*-linux* x86_64-*-linux* } } }" */
-/* { dg-final { scan-assembler "and" { target arm*-*-* } } }" */
+/* { dg-final { scan-assembler "and|ubfx"  { target arm*-*-* } } } */
 /* { dg-final { scan-assembler-not "moveq" { target arm*-*-* } } }" */