[ARM] Committed fix for PR43920 testcase

My dashboard
Submitter Ramana Radhakrishnan
Subject [ARM] Committed fix for PR43920 testcase
Date April 6, 2011, 9:44 a.m.
List thread <4D9C35E0.8090704@linaro.org>
Project gcc-patches
State Accepted
Last updated June 16, 2011, 1:34 p.m.
Headers show

Comments

Ramana Radhakrishnan - April 6, 2011, 9:44 a.m.
Hi,

I've committed the following patch under the obvious rule for the 
testcase for PR43920. There seemed to have been an accidental 
duplication of the function in the patch committed.

Tested in a cross compiler to arm-linux-gnueabi with just that test to 
armv7-a and made sure that it passes.

cheers
Ramana


2011-04-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

         * gcc.target/arm/pr43920-1.c: Fix accidental duplication.

Patch

Index: gcc/testsuite/gcc.target/arm/pr43920-1.c
===================================================================
--- gcc/testsuite/gcc.target/arm/pr43920-1.c	(revision 172030)
+++ gcc/testsuite/gcc.target/arm/pr43920-1.c	(working copy)
@@ -19,24 +19,3 @@ 
 /* { dg-final { scan-assembler-times "\torr" 0 } } */
 /* { dg-final { scan-assembler-times "\tit\t" 0 } } */
 /* { dg-final { scan-assembler "\tbeq" } } */
-/* { dg-do compile } */
-/* { dg-options "-mthumb -Os" }  */
-/* { dg-require-effective-target arm_thumb2_ok } */
-
-int
-f (int start, int end, int *start_)
-{
-  if (start == -1 || end == -1)
-    return -1;
-
-  if (end - start)
-    return -1;
-
-  *start_ = start;
-
-  return 0;
-}
-
-/* { dg-final { scan-assembler-times "\torr" 0 } } */
-/* { dg-final { scan-assembler-times "\tit\t" 0 } } */
-/* { dg-final { scan-assembler "\tbeq" } } */