Skip to content

Commit

Permalink
aarch64: Emit +rdm when the platform asm does not support +rdma.
Browse files Browse the repository at this point in the history
Although the two extension names are aliases, they are not supported
uniformly across assemblers.

This emits +rdm for assemblers that do not support +rdma.

TODO: Wrap the change in a conditional and supply that from config.gcc
on the basis of configuration.

gcc/ChangeLog:

	* common/config/aarch64/aarch64-common.cc: Always emit +rdm
	even when the given extension name is rdma.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
  • Loading branch information
iains committed Apr 28, 2024
1 parent c5b6fd7 commit 294ce24
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gcc/common/config/aarch64/aarch64-common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ aarch64_get_extension_string_for_isa_flags
if (added & opt.flag_canonical)
{
outstr += "+";
outstr += opt.name;
if (startswith (opt.name, "rdm"))
outstr += "rdm";
else
outstr += opt.name;
}

/* Remove the features in current_flags & ~isa_flags. If the feature does
Expand Down Expand Up @@ -362,7 +365,10 @@ aarch64_get_extension_string_for_isa_flags
{
current_flags &= ~opt.flags_off;
outstr += "+no";
outstr += opt.name;
if (startswith (opt.name, "rdm"))
outstr += "rdm";
else
outstr += opt.name;
}
}

Expand Down

0 comments on commit 294ce24

Please sign in to comment.