[PATCH] D141258: [AArch64] Fix crash for expandMOVImm
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 09:46:58 PST 2023
efriedma added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ExpandImm.cpp:343
- assert(BitSize == 64 && "All 32-bit immediates can be expanded with a"
+ assert(BitSize > 32 && "All 32-bit immediates can be expanded with a"
"MOVZ/MOVK pair");
----------------
This algorithm doesn't work correctly if BitSize isn't 32 or 64. Probably the code that's creating such an immediate should be fixed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141258/new/
https://reviews.llvm.org/D141258
More information about the llvm-commits
mailing list