Multiple types of load/store: how to create .md rules?
Julian Brown
julian@codesourcery.com
Wed May 4 10:07:10 GMT 2022
On Mon, 02 May 2022 19:10:41 -0700
Andras Tantos <andras@tantosonline.com> wrote:
> To a previous problem I've asked, Andrew Pinski replied that I should
> merge all *movsi patterns into a single one to avoid (in that case)
> strange deletions in the generated assembly. Is that possible here? It
> appears to me that I would need the ability to differentiate the
> different patterns using constraints, but is there a way to define
> custom versions of the 'm' pattern? I didn't find anything on that in
> the documentation. Did I miss something?
Check "define_memory_constraint" in existing ports, i.e.:
https://gcc.gnu.org/onlinedocs/gccint/Define-Constraints.html#index-define_005fmemory_005fconstraint
HTH,
Julian
More information about the Gcc
mailing list