Skip to content

Assertion `Val == MO.getImm() && "Add/sub immediate out of range!"' with high stack alignment on arm64 windows #63701

@efriedma-quic

Description

@efriedma-quic

Testcase:

void g(void*);
void f() { _Alignas(8192) int x[1 << 26]; g(x); }
llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp:1206: void llvm::AArch64InstPrinter::printAddSubImm(const llvm::MCInst *, unsigned int, const llvm::MCSubtargetInfo &, llvm::raw_ostream &): Assertion `Val == MO.getImm() && "Add/sub immediate out of range!"' failed.

Looks like an invalid ADDXri instruction.

CC @mstorsjo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions