[clang] LoongArch fp16,fp128 basic support (PR #68851)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 11 23:20:35 PDT 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 9dd15f7486a30c4269b183f72c13006eb8c929f4 2ef1ddfb977da35f31f1f351ac4daf0478fff166 -- clang/lib/Basic/Targets/LoongArch.h clang/test/CodeGen/fp16-ops.c llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index 0295389e1a92..f03f09127866 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -214,8 +214,8 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
setOperationAction(ISD::FRINT, MVT::f64, Legal);
}
- setOperationAction(ISD::FP16_TO_FP, MVT::f32, Expand);
- setOperationAction(ISD::FP_TO_FP16, MVT::f32, Expand);
+ setOperationAction(ISD::FP16_TO_FP, MVT::f32, Expand);
+ setOperationAction(ISD::FP_TO_FP16, MVT::f32, Expand);
setTruncStoreAction(MVT::f32, MVT::f16, Expand);
setLoadExtAction(ISD::EXTLOAD, MVT::f32, MVT::f16, Expand);
setLibcallName(RTLIB::FPEXT_F16_F32, "__extendhfsf2");
``````````
</details>
https://github.com/llvm/llvm-project/pull/68851
More information about the cfe-commits
mailing list