[Patch ARM ] Fix testism for PR45416 on ARM.
Ramana Radhakrishnan
ramana.radhakrishnan@linaro.org
Mon Jan 23 18:00:00 GMT 2012
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.
-------------- next part --------------
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*-*-* } } }" */
More information about the Gcc-patches
mailing list