diff --git a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp index dde5df47b1a..6127ffb302b 100644 --- a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp +++ b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp @@ -166,6 +166,8 @@ proc test_mode { mode } { require is_aarch64_target +require {have_compile_flag -march=armv8.5-a+memtag} + # Run tests foreach_with_prefix mode {"sync" "async"} { test_mode $mode diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp index d0dfaf96900..36d8e722072 100644 --- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp +++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp @@ -19,6 +19,8 @@ require is_aarch64_target +require {have_compile_flag -mbranch-protection=pac-ret+leaf} + # Build program with address signing forced on. standard_testfile set compile_flags {debug}