[llvm] [X86][APX] Fix assembly printing for NF+ND shift-by-1 instructions (PR #181565)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 16 19:34:00 PST 2026


================
@@ -402,6 +402,92 @@ bool X86ATTInstPrinter::printVecCompareInstr(const MCInst *MI,
   return false;
 }
 
+bool X86ATTInstPrinter::printShiftBy1NFNDInstr(const MCInst *MI,
+                                               uint64_t Address,
+                                               raw_ostream &OS) {
+  // Emit explicit $1 for shift-by-1 NF+ND to match binutils behavior.
+  const char *Mnemonic = nullptr;
+  const char *Suffix = nullptr;
----------------
phoebewang wrote:

```suggestion
  char Suffix = 0;
```

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


More information about the llvm-commits mailing list