From a794c0dc29af9d7d0ed89e7a179993a91a84c6b8 Mon Sep 17 00:00:00 2001 From: sudi Date: Thu, 10 Jan 2019 17:29:54 +0000 Subject: [PATCH] [Committed, AArch64] Disable tests for ilp32. Currently Return Address Signing is only supported in lp64. Thus the tests that I added recently (that enables return address signing by the mbranch-protection=standard option), should also be exempted from testing in ilp32. This patch adds the needed dg-require-effective-target directive in the tests. *** gcc/testsuite/ChangeLog *** 2019-01-10 Sudakshina Das * gcc.target/aarch64/bti-1.c: Exempt for ilp32. * gcc.target/aarch64/bti-2.c: Likewise. * gcc.target/aarch64/bti-3.c: Likewise. Committed as obvious. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267818 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/aarch64/bti-1.c | 1 + gcc/testsuite/gcc.target/aarch64/bti-2.c | 1 + gcc/testsuite/gcc.target/aarch64/bti-3.c | 1 + 4 files changed, 9 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3936a8f4bce7..6ac91eede53c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-01-10 Sudakshina Das + + * gcc.target/aarch64/bti-1.c: Exempt for ilp32. + * gcc.target/aarch64/bti-2.c: Likewise. + * gcc.target/aarch64/bti-3.c: Likewise. + 2019-01-10 Stefan Agner PR target/88648 diff --git a/gcc/testsuite/gcc.target/aarch64/bti-1.c b/gcc/testsuite/gcc.target/aarch64/bti-1.c index 67551859649f..a8c60412e310 100644 --- a/gcc/testsuite/gcc.target/aarch64/bti-1.c +++ b/gcc/testsuite/gcc.target/aarch64/bti-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* -Os to create jump table. */ /* { dg-options "-Os" } */ +/* { dg-require-effective-target lp64 } */ /* If configured with --enable-standard-branch-protection, don't use command line option. */ /* { dg-additional-options "-mbranch-protection=standard" { target { ! default_branch_protection } } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/bti-2.c b/gcc/testsuite/gcc.target/aarch64/bti-2.c index 85943c3d6415..6ad89284e1b7 100644 --- a/gcc/testsuite/gcc.target/aarch64/bti-2.c +++ b/gcc/testsuite/gcc.target/aarch64/bti-2.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target lp64 } */ /* { dg-require-effective-target aarch64_bti_hw } */ /* If configured with --enable-standard-branch-protection, don't use command line option. */ diff --git a/gcc/testsuite/gcc.target/aarch64/bti-3.c b/gcc/testsuite/gcc.target/aarch64/bti-3.c index 97cf5d37f42b..9ff9f9d6be1d 100644 --- a/gcc/testsuite/gcc.target/aarch64/bti-3.c +++ b/gcc/testsuite/gcc.target/aarch64/bti-3.c @@ -1,6 +1,7 @@ /* This is a copy of gcc/testsuite/gcc.c-torture/execute/pr56982.c to test the setjmp case of the bti pass. */ /* { dg-do run } */ +/* { dg-require-effective-target lp64 } */ /* { dg-require-effective-target aarch64_bti_hw } */ /* { dg-options "--save-temps -mbranch-protection=standard" } */ -- 2.47.2