Skip to content

Commit 2b707b4

Browse files
author
Christophe Lyon
committed
arm,testsuite: Add -mtune=cortex-m55 to dlstp-compile-asm-1.c test.
This test would fail if GCC is configured with non-default options, such as -mtune=cortex-a9. This 'unexpected' scheduling makes the DLSTP optimization generate subs lr, #16 bhi .L4 lctp pop {r4, r5, pc} .L4: sub ip, ip, #16 b <loop-begin> instead of the expected sub ip, ip, #16 letp lr, <loop-begin> Although GCC still optimizes all 144 loops, only 96 use letp, 48 others use lctp. The patch simply forces -mtune=cortex-m55 to avoid this unexpected issue. gcc/testsuite/ChangeLog: * gcc.target/arm/mve/dlstp-compile-asm-1.c: Add -mtune=cortex-m55
1 parent ee6711e commit 2b707b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/testsuite/gcc.target/arm/mve/dlstp-compile-asm-1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* { dg-do compile } */
22
/* { dg-require-effective-target arm_v8_1m_mve_ok } */
3-
/* { dg-options "-O3 -save-temps" } */
3+
/* { dg-options "-O3 -save-temps -mtune=cortex-m55" } */
44
/* { dg-add-options arm_v8_1m_mve } */
55

66
#include <arm_mve.h>

0 commit comments

Comments
 (0)