[clang] [llvm] [LoongArch] [CodeGen] Support LoongArch-specific amswap[__db].{b/h} and amadd[__db].{b/h} instructions. (PR #113255)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 00:03:45 PDT 2024


================
@@ -205,7 +205,7 @@ void LoongArchTargetInfo::getTargetDefines(const LangOptions &Opts,
       // TODO: As more features of the V1.1 ISA are supported, a unified "v1.1"
       // arch feature set will be used to include all sub-features belonging to
       // the V1.1 ISA version.
-      if (HasFeatureFrecipe)
+      if (HasFeatureFrecipe || HasFeatureLAM_BH)
----------------
SixWeining wrote:

`||` should be `&&`. cc @Ami-zhang

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


More information about the cfe-commits mailing list