[llvm] [X86][APX] Fix assembly printing for NF+ND shift-by-1 instructions (PR #181565)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 17 01:54:51 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
index c29a40bb7..34c7e46c9 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
@@ -86,8 +86,7 @@ void X86ATTInstPrinter::printInst(const MCInst *MI, uint64_t Address,
}
// Try to print any aliases first.
else if (!printShiftBy1NFNDInstr(MI, Address, OS) &&
- !printAliasInstr(MI, Address, OS) &&
- !printVecCompareInstr(MI, OS))
+ !printAliasInstr(MI, Address, OS) && !printVecCompareInstr(MI, OS))
printInstruction(MI, Address, OS);
// Next always print the annotation.
``````````
</details>
https://github.com/llvm/llvm-project/pull/181565
More information about the llvm-commits
mailing list