From a044d2b1b6c85f88451e83649977ad908011b1f4 Mon Sep 17 00:00:00 2001 From: Jiong Wang Date: Fri, 7 Aug 2015 13:26:23 +0000 Subject: [PATCH] [AArch64] Check branch types for noplt testcases 2015-08-07 Jiong Wang gcc/testsuite/ * gcc.target/aarch64/noplt_1.c: Check branch type instead of relocation modifers. * gcc.target/aarch64/noplt_2.c: Likewise. * gcc.target/aarch64/noplt_3.c: Likewise. From-SVN: r226721 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/aarch64/noplt_1.c | 4 ++-- gcc/testsuite/gcc.target/aarch64/noplt_2.c | 4 ++-- gcc/testsuite/gcc.target/aarch64/noplt_3.c | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 66d57bb6aac..04a1fae3f12 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-08-07 Jiong Wang + + * gcc.target/aarch64/noplt_1.c: Check branch type instead of relocation + modifers. + * gcc.target/aarch64/noplt_2.c: Likewise. + * gcc.target/aarch64/noplt_3.c: Likewise. + 2015-08-06 David Malcolm * jit.dg/test-benchmark.c (main): Record all elapsed times at each diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_1.c b/gcc/testsuite/gcc.target/aarch64/noplt_1.c index 4e9bb62ba1c..731fcaea23f 100644 --- a/gcc/testsuite/gcc.target/aarch64/noplt_1.c +++ b/gcc/testsuite/gcc.target/aarch64/noplt_1.c @@ -11,5 +11,5 @@ foo (int a) return b[a]; } -/* { dg-final { scan-assembler "#:got:" { target { aarch64_tiny || aarch64_small } } } } */ -/* { dg-final { scan-assembler "#:got_lo12:" { target aarch64_small } } } */ +/* { dg-final { scan-assembler "blr" } } */ +/* { dg-final { scan-assembler-not "bl\t" } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_2.c b/gcc/testsuite/gcc.target/aarch64/noplt_2.c index 718999b3c54..3be94aafc66 100644 --- a/gcc/testsuite/gcc.target/aarch64/noplt_2.c +++ b/gcc/testsuite/gcc.target/aarch64/noplt_2.c @@ -14,5 +14,5 @@ foo (int a) return b0[a] + b1[a]; } -/* { dg-final { scan-assembler-times "#:got:" 1 { target { aarch64_tiny || aarch64_small } } } } */ -/* { dg-final { scan-assembler-times "#:got_lo12:" 1 { target aarch64_small } } } */ +/* { dg-final { scan-assembler-times "blr" 1 } } */ +/* { dg-final { scan-assembler-times "bl\t" 1 } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/noplt_3.c b/gcc/testsuite/gcc.target/aarch64/noplt_3.c index c1993b670a6..ef6e65da8f6 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 "#:got:" 2 { target { aarch64_tiny || aarch64_small } } } } */ -/* { dg-final { scan-assembler-times "#:got_lo12:" 2 { target aarch64_small } } } */ +/* { dg-final { scan-assembler-times "br" 2 } } */ +/* { dg-final { scan-assembler-not "b\t" } } */ -- 2.30.2