[llvm] [AMDGPU] Add gfx1251 V_PK_ADD/SUB_NC_U64 (PR #203607)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 11:49:24 PDT 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 cpp,h -- llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.cpp llvm/lib/Target/AMDGPU/SIDefines.h llvm/lib/Target/AMDGPU/SIISelLowering.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.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/AMDGPU/AsmParser/AMDGPUAsmParser.cpp b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
index 175ea9911..7fe14d843 100644
--- a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+++ b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
@@ -5196,10 +5196,10 @@ bool AMDGPUAsmParser::validateVOPLiteral(const MCInst &Inst,
(Desc.operands()[OpIdx].OperandType == AMDGPU::OPERAND_REG_IMM_FP64 &&
HasMandatoryLiteral);
unsigned OpTy = Desc.operands()[OpIdx].OperandType;
- bool IsFP64 = (IsForcedFP64 ||
- (AMDGPU::isSISrcFPOperand(Desc, OpIdx) &&
- OpTy != AMDGPU::OPERAND_REG_IMM_V2INT64)) &&
- AMDGPU::getOperandSize(Desc.operands()[OpIdx]) == 8;
+ bool IsFP64 =
+ (IsForcedFP64 || (AMDGPU::isSISrcFPOperand(Desc, OpIdx) &&
+ OpTy != AMDGPU::OPERAND_REG_IMM_V2INT64)) &&
+ AMDGPU::getOperandSize(Desc.operands()[OpIdx]) == 8;
bool IsValid32Op =
IsForcedLit || AMDGPU::isValid32BitLiteral(Value, IsFP64);
``````````
</details>
https://github.com/llvm/llvm-project/pull/203607
More information about the llvm-commits
mailing list