[llvm] [Xtensa] Implement base CallConvention. (PR #83280)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 05:18:29 PST 2024
================
@@ -148,7 +161,13 @@ struct XtensaOperand : public MCParsedAsmOperand {
bool isImm12() const { return isImm(-2048, 2047); }
- bool isImm12m() const { return isImm(-2048, 2047); }
+ // Convert MOVI to literal load, when immediate is not in range (-2048, 2047)
+ bool isImm12m() const {
+ if (Kind == Immediate)
+ return true;
+
+ return false;
----------------
arsenm wrote:
```suggestion
return Kind == Immediate;
```
https://github.com/llvm/llvm-project/pull/83280
More information about the llvm-commits
mailing list