From 173499e9772ef129fa3ed65ecd37c912a7965b66 Mon Sep 17 00:00:00 2001 From: jiwang 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226721 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 66d57bb6aac6..04a1fae3f128 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 4e9bb62ba1c7..731fcaea23f1 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 718999b3c547..3be94aafc66d 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 c1993b670a62..ef6e65da8f67 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.11.4.GIT