Skip to content

JIT: Addressing mode is not recognized properly #92861

@EgorBo

Description

@EgorBo
void Test(int* a, int i) => a[i + 1] = 42;

Emits:

       inc      edx
       movsxd   rax, edx
       mov      dword ptr [rcx+4*rax], 42

Expected:

       movsxd   rax, edx
       mov      dword ptr [rcx+4+4*rax], 42

It's important to "contain" the constant offset for proper vectorization in #92852

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions