[llvm] [RISCV] Fix lowering of negative zero with Zdinx 32-bit (PR #71869)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 13:33:37 PST 2023


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 d8a4011f5b284ec055ceab91815d6e656c0b6dc5 ba87be48adc45d309c87d81e47746f85f895ccda -- llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index 3f796f8d170e..8d371cf3a334 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -943,8 +943,8 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
         Opc = HasZdinx ? RISCV::FSGNJN_D_INX : RISCV::FSGNJN_D;
       else
         Opc = HasZdinx ? RISCV::FSGNJN_D_IN32X : RISCV::FSGNJN_D;
-      Res = CurDAG->getMachineNode(Opc, DL, VT, SDValue(Res, 0),
-                                   SDValue(Res, 0));
+      Res =
+          CurDAG->getMachineNode(Opc, DL, VT, SDValue(Res, 0), SDValue(Res, 0));
     }
 
     ReplaceNode(Node, Res);

``````````

</details>


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


More information about the llvm-commits mailing list