[llvm] [Xtensa] Implement Code Density Option. (PR #119639)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 16:39:56 PST 2024


================
@@ -193,6 +193,10 @@ struct XtensaOperand : public MCParsedAsmOperand {
 
   bool isImm1_16() const { return isImm(1, 16); }
 
+  bool isImm1n_15() const { return (isImm(1, 15) || isImm(-1, -1)); }
----------------
arsenm wrote:

Extra parens. Not sure I understand the what || isImm(-1, -1) is doing 

https://github.com/llvm/llvm-project/pull/119639


More information about the llvm-commits mailing list