[clang] [llvm] [LoongArch] Support LA V1.1 feature ld-seq-sa that don't generate dbar 0x700. (PR #116762)

Lu Weining via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 22 00:27:26 PST 2024


================
@@ -2011,8 +2011,9 @@ const StringMap<bool> sys::getHostCPUFeatures() {
 const StringMap<bool> sys::getHostCPUFeatures() {
   unsigned long hwcap = getauxval(AT_HWCAP);
   bool HasFPU = hwcap & (1UL << 3); // HWCAP_LOONGARCH_FPU
-  uint32_t cpucfg2 = 0x2;
+  uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
----------------
SixWeining wrote:

```suggestion
  const uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
```

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


More information about the cfe-commits mailing list