diff --git a/gcc/testsuite/gcc.target/arm/mod_2.c b/gcc/testsuite/gcc.target/arm/mod_2.c
index 3a203b67d73eab1421e34308d108e4bc7b10589f..5b8dec44ed542c10d1e5d9408bfbd163f8a9bfcc 100644
--- a/gcc/testsuite/gcc.target/arm/mod_2.c
+++ b/gcc/testsuite/gcc.target/arm/mod_2.c
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
 /* { dg-require-effective-target arm32 } */
-/* { dg-require-effective-target arm_cpu_cortex_a57 } */
+/* { dg-require-effective-target arm_cpu_cortex_a57_ok } */
 /* { dg-options "-O2 -save-temps" } */
 /* { dg-add-options arm_cpu_cortex_a57 } */
 
diff --git a/gcc/testsuite/gcc.target/arm/mod_256.c b/gcc/testsuite/gcc.target/arm/mod_256.c
index 3521d7a05f3e378ab0c03dddb5ea721267ad4e5b..8589b948f41df410d293d89e368b19dcc411fdb4 100644
--- a/gcc/testsuite/gcc.target/arm/mod_256.c
+++ b/gcc/testsuite/gcc.target/arm/mod_256.c
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
 /* { dg-require-effective-target arm32 } */
-/* { dg-require-effective-target arm_cpu_cortex_a57 } */
+/* { dg-require-effective-target arm_cpu_cortex_a57_ok } */
 /* { dg-options "-O2 -save-temps" } */
 /* { dg-add-options arm_cpu_cortex_a57 } */