Skip to content

Conversation

@antoyo
Copy link

@antoyo antoyo commented Jan 10, 2023

No description provided.

@antoyo antoyo force-pushed the fix/bfloat16-type branch from fdf346c to 88a4ad4 Compare January 10, 2023 22:08
@antoyo antoyo merged commit 56005b9 into master Jan 10, 2023
@antoyo antoyo deleted the fix/bfloat16-type branch January 10, 2023 22:59
darcagn pushed a commit to dreamcast-rs/gcc that referenced this pull request Dec 24, 2024
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, rust-lang#16
	bhi	.L4
	lctp
	pop     {r4, r5, pc}
.L4:
	sub     ip, ip, rust-lang#16
	b      <loop-begin>

instead of the expected
sub     ip, ip, rust-lang#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants