* [testuite,AArch64] Make scan for 'br' more robust
@ 2016-05-02 11:51 Christophe Lyon
2016-05-04 8:43 ` Kyrill Tkachov
0 siblings, 1 reply; 5+ messages in thread
From: Christophe Lyon @ 2016-05-02 11:51 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
Hi,
I've noticed a "regression" of AArch64's noplt_3.c in the gcc-6-branch
because my validation script adds the branch name to gcc/REVISION.
As a result scan-assembler-times "br" also matched "gcc-6-branch",
hence the failure.
The small attached patch replaces "br" by "br\t" to fix the problem.
I've also made a similar change to tail_indirect_call_1 although the
problem did not happen for this test because it uses scan-assembler
instead of scan-assembler-times. I think it's better to make it more
robust too.
OK?
Christophe
[-- Attachment #2: aarch64-br.log.txt --]
[-- Type: text/plain, Size: 165 bytes --]
2016-05-02 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/aarch64/noplt_3.c: Scan for "br\t".
* gcc.target/aarch64/tail_indirect_call_1.c: Likewise.
[-- Attachment #3: aarch64-br.patch.txt --]
[-- Type: text/plain, Size: 928 bytes --]
diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
index ef6e65d..a382618 100644
--- a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
+++ b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
@@ -16,5 +16,5 @@ cal_novalue (int a)
dec (a);
}
-/* { dg-final { scan-assembler-times "br" 2 } } */
+/* { dg-final { scan-assembler-times "br\t" 2 } } */
/* { dg-final { scan-assembler-not "b\t" } } */
diff --git a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
index 4759d20..e863323 100644
--- a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
+++ b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
@@ -3,7 +3,7 @@
typedef void FP (int);
-/* { dg-final { scan-assembler "br" } } */
+/* { dg-final { scan-assembler "br\t" } } */
/* { dg-final { scan-assembler-not "blr" } } */
void
f1 (FP fp, int n)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [testuite,AArch64] Make scan for 'br' more robust
2016-05-02 11:51 [testuite,AArch64] Make scan for 'br' more robust Christophe Lyon
@ 2016-05-04 8:43 ` Kyrill Tkachov
2016-05-04 9:55 ` Christophe Lyon
0 siblings, 1 reply; 5+ messages in thread
From: Kyrill Tkachov @ 2016-05-04 8:43 UTC (permalink / raw)
To: Christophe Lyon, gcc-patches
Hi Christophe,
On 02/05/16 12:50, Christophe Lyon wrote:
> Hi,
>
> I've noticed a "regression" of AArch64's noplt_3.c in the gcc-6-branch
> because my validation script adds the branch name to gcc/REVISION.
>
> As a result scan-assembler-times "br" also matched "gcc-6-branch",
> hence the failure.
>
> The small attached patch replaces "br" by "br\t" to fix the problem.
>
> I've also made a similar change to tail_indirect_call_1 although the
> problem did not happen for this test because it uses scan-assembler
> instead of scan-assembler-times. I think it's better to make it more
> robust too.
>
> OK?
>
> Christophe
diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
index ef6e65d..a382618 100644
--- a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
+++ b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
@@ -16,5 +16,5 @@ cal_novalue (int a)
dec (a);
}
-/* { dg-final { scan-assembler-times "br" 2 } } */
+/* { dg-final { scan-assembler-times "br\t" 2 } } */
/* { dg-final { scan-assembler-not "b\t" } } */
diff --git a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
index 4759d20..e863323 100644
--- a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
+++ b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
@@ -3,7 +3,7 @@
typedef void FP (int);
-/* { dg-final { scan-assembler "br" } } */
+/* { dg-final { scan-assembler "br\t" } } */
Did you mean to make this scan-assembler-times as well?
Kyrill
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [testuite,AArch64] Make scan for 'br' more robust
2016-05-04 8:43 ` Kyrill Tkachov
@ 2016-05-04 9:55 ` Christophe Lyon
2016-05-13 13:52 ` James Greenhalgh
0 siblings, 1 reply; 5+ messages in thread
From: Christophe Lyon @ 2016-05-04 9:55 UTC (permalink / raw)
To: Kyrill Tkachov; +Cc: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]
On 4 May 2016 at 10:43, Kyrill Tkachov <kyrylo.tkachov@foss.arm.com> wrote:
>
> Hi Christophe,
>
>
> On 02/05/16 12:50, Christophe Lyon wrote:
>>
>> Hi,
>>
>> I've noticed a "regression" of AArch64's noplt_3.c in the gcc-6-branch
>> because my validation script adds the branch name to gcc/REVISION.
>>
>> As a result scan-assembler-times "br" also matched "gcc-6-branch",
>> hence the failure.
>>
>> The small attached patch replaces "br" by "br\t" to fix the problem.
>>
>> I've also made a similar change to tail_indirect_call_1 although the
>> problem did not happen for this test because it uses scan-assembler
>> instead of scan-assembler-times. I think it's better to make it more
>> robust too.
>>
>> OK?
>>
>> Christophe
>
>
> diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> index ef6e65d..a382618 100644
> --- a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> +++ b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> @@ -16,5 +16,5 @@ cal_novalue (int a)
> dec (a);
> }
> -/* { dg-final { scan-assembler-times "br" 2 } } */
> +/* { dg-final { scan-assembler-times "br\t" 2 } } */
> /* { dg-final { scan-assembler-not "b\t" } } */
> diff --git a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> index 4759d20..e863323 100644
> --- a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> +++ b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> @@ -3,7 +3,7 @@
> typedef void FP (int);
> -/* { dg-final { scan-assembler "br" } } */
> +/* { dg-final { scan-assembler "br\t" } } */
>
> Did you mean to make this scan-assembler-times as well?
>
I kept the changes minimal, but you are right, it would be more robust
as attached.
OK for trunk and gcc-6 branch?
Thanks
Christophe
> Kyrill
>
>
>
[-- Attachment #2: aarch64-br-v2.log.txt --]
[-- Type: text/plain, Size: 217 bytes --]
2016-05-04 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/aarch64/noplt_3.c: Scan for "br\t".
* gcc.target/aarch64/tail_indirect_call_1.c: Scan for "br\t",
"blr\t" and switch to scan-assembler-times.
[-- Attachment #3: aarch64-br-v2.patch.txt --]
[-- Type: text/plain, Size: 990 bytes --]
diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
index ef6e65d..a382618 100644
--- a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
+++ b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
@@ -16,5 +16,5 @@ cal_novalue (int a)
dec (a);
}
-/* { dg-final { scan-assembler-times "br" 2 } } */
+/* { dg-final { scan-assembler-times "br\t" 2 } } */
/* { dg-final { scan-assembler-not "b\t" } } */
diff --git a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
index 4759d20..de8f12d 100644
--- a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
+++ b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
@@ -3,8 +3,8 @@
typedef void FP (int);
-/* { dg-final { scan-assembler "br" } } */
-/* { dg-final { scan-assembler-not "blr" } } */
+/* { dg-final { scan-assembler-times "br\t" 2 } } */
+/* { dg-final { scan-assembler-not "blr\t" } } */
void
f1 (FP fp, int n)
{
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [testuite,AArch64] Make scan for 'br' more robust
2016-05-04 9:55 ` Christophe Lyon
@ 2016-05-13 13:52 ` James Greenhalgh
2016-05-18 12:43 ` Christophe Lyon
0 siblings, 1 reply; 5+ messages in thread
From: James Greenhalgh @ 2016-05-13 13:52 UTC (permalink / raw)
To: Christophe Lyon; +Cc: Kyrill Tkachov, gcc-patches, nd
On Wed, May 04, 2016 at 11:55:42AM +0200, Christophe Lyon wrote:
> On 4 May 2016 at 10:43, Kyrill Tkachov <kyrylo.tkachov@foss.arm.com> wrote:
> >
> > Hi Christophe,
> >
> >
> > On 02/05/16 12:50, Christophe Lyon wrote:
> >>
> >> Hi,
> >>
> >> I've noticed a "regression" of AArch64's noplt_3.c in the gcc-6-branch
> >> because my validation script adds the branch name to gcc/REVISION.
> >>
> >> As a result scan-assembler-times "br" also matched "gcc-6-branch",
> >> hence the failure.
> >>
> >> The small attached patch replaces "br" by "br\t" to fix the problem.
> >>
> >> I've also made a similar change to tail_indirect_call_1 although the
> >> problem did not happen for this test because it uses scan-assembler
> >> instead of scan-assembler-times. I think it's better to make it more
> >> robust too.
> >>
> >> OK?
> >>
> >> Christophe
> >
> >
> > diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> > b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> > index ef6e65d..a382618 100644
> > --- a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> > +++ b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
> > @@ -16,5 +16,5 @@ cal_novalue (int a)
> > dec (a);
> > }
> > -/* { dg-final { scan-assembler-times "br" 2 } } */
> > +/* { dg-final { scan-assembler-times "br\t" 2 } } */
> > /* { dg-final { scan-assembler-not "b\t" } } */
> > diff --git a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> > b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> > index 4759d20..e863323 100644
> > --- a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> > +++ b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
> > @@ -3,7 +3,7 @@
> > typedef void FP (int);
> > -/* { dg-final { scan-assembler "br" } } */
> > +/* { dg-final { scan-assembler "br\t" } } */
> >
> > Did you mean to make this scan-assembler-times as well?
> >
>
> I kept the changes minimal, but you are right, it would be more robust
> as attached.
>
> OK for trunk and gcc-6 branch?
OK.
If you want completeness on this, the
gcc.target/aarch64/tail_indirect_call_1.c change should go back to the
gcc-5 branch too.
Cheers,
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [testuite,AArch64] Make scan for 'br' more robust
2016-05-13 13:52 ` James Greenhalgh
@ 2016-05-18 12:43 ` Christophe Lyon
0 siblings, 0 replies; 5+ messages in thread
From: Christophe Lyon @ 2016-05-18 12:43 UTC (permalink / raw)
To: James Greenhalgh; +Cc: Kyrill Tkachov, gcc-patches, nd
On 13 May 2016 at 15:51, James Greenhalgh <james.greenhalgh@arm.com> wrote:
> On Wed, May 04, 2016 at 11:55:42AM +0200, Christophe Lyon wrote:
>> On 4 May 2016 at 10:43, Kyrill Tkachov <kyrylo.tkachov@foss.arm.com> wrote:
>> >
>> > Hi Christophe,
>> >
>> >
>> > On 02/05/16 12:50, Christophe Lyon wrote:
>> >>
>> >> Hi,
>> >>
>> >> I've noticed a "regression" of AArch64's noplt_3.c in the gcc-6-branch
>> >> because my validation script adds the branch name to gcc/REVISION.
>> >>
>> >> As a result scan-assembler-times "br" also matched "gcc-6-branch",
>> >> hence the failure.
>> >>
>> >> The small attached patch replaces "br" by "br\t" to fix the problem.
>> >>
>> >> I've also made a similar change to tail_indirect_call_1 although the
>> >> problem did not happen for this test because it uses scan-assembler
>> >> instead of scan-assembler-times. I think it's better to make it more
>> >> robust too.
>> >>
>> >> OK?
>> >>
>> >> Christophe
>> >
>> >
>> > diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
>> > b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
>> > index ef6e65d..a382618 100644
>> > --- a/gcc/testsuite/gcc.target/aarch64/noplt_3.c
>> > +++ b/gcc/testsuite/gcc.target/aarch64/noplt_3.c
>> > @@ -16,5 +16,5 @@ cal_novalue (int a)
>> > dec (a);
>> > }
>> > -/* { dg-final { scan-assembler-times "br" 2 } } */
>> > +/* { dg-final { scan-assembler-times "br\t" 2 } } */
>> > /* { dg-final { scan-assembler-not "b\t" } } */
>> > diff --git a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
>> > b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
>> > index 4759d20..e863323 100644
>> > --- a/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
>> > +++ b/gcc/testsuite/gcc.target/aarch64/tail_indirect_call_1.c
>> > @@ -3,7 +3,7 @@
>> > typedef void FP (int);
>> > -/* { dg-final { scan-assembler "br" } } */
>> > +/* { dg-final { scan-assembler "br\t" } } */
>> >
>> > Did you mean to make this scan-assembler-times as well?
>> >
>>
>> I kept the changes minimal, but you are right, it would be more robust
>> as attached.
>>
>> OK for trunk and gcc-6 branch?
>
> OK.
>
> If you want completeness on this, the
> gcc.target/aarch64/tail_indirect_call_1.c change should go back to the
> gcc-5 branch too.
>
Thanks, I've committed to trunk, backported to gcc-6,
and partially to gcc-5.
Christophe.
> Cheers,
> James
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-05-18 12:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-02 11:51 [testuite,AArch64] Make scan for 'br' more robust Christophe Lyon
2016-05-04 8:43 ` Kyrill Tkachov
2016-05-04 9:55 ` Christophe Lyon
2016-05-13 13:52 ` James Greenhalgh
2016-05-18 12:43 ` Christophe Lyon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).