Skip to content

[RyuJIT] Ensure a test case and LSRA stress mode combo to have a multi-reg call node have its regs allocated in order reverse of ABI return order #5793

@sivarv

Description

@sivarv

Source code pointer:
genStructReturn()

GT_RETURN(call) where call is a multi-reg call. ABI return reg order is {rax, rdx} or {xmm0, xmm1}. Under LSRA stress it could be possible that originally allocated regs are spilled and reloaded to reverse the order. But codegen of GT_RETURN needs to move the allocated regs as: rdx->rax and rax->rdx. This issue is to ensure that we have a test case and/or LSRA stress mode combo to hit that code path in codegen for testing.

category:correctness
theme:testing
skill-level:intermediate
cost:small
impact:small

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:3Work that is nice to havearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItest-bugProblem in test source code (most likely)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions