[llvm] [Xtensa] Implement support of the ESP32S2 target. (PR #200130)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 02:20:32 PDT 2026


================
@@ -606,4 +610,16 @@ XtensaMCCodeEmitter::getImm7_22OpValue(const MCInst &MI, unsigned OpNo,
 
   return res;
 }
+
+uint8_t
+XtensaMCCodeEmitter::getSelect_256OpValue(const MCInst &MI, unsigned OpNo,
+                                          SmallVectorImpl<MCFixup> &Fixups,
+                                          const MCSubtargetInfo &STI) const {
+  const MCOperand &MO = MI.getOperand(OpNo);
+  uint8_t Res = static_cast<uint8_t>(MO.getImm());
+
+  assert(((Res >= 0) && (Res <= 255)) && "Unexpected operand value!");
----------------
arsenm wrote:

isUInt<8>

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


More information about the llvm-commits mailing list