We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aeffa1 commit e70f9e2Copy full SHA for e70f9e2
llvm/lib/TargetParser/Host.cpp
@@ -2011,7 +2011,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
2011
const StringMap<bool> sys::getHostCPUFeatures() {
2012
unsigned long hwcap = getauxval(AT_HWCAP);
2013
bool HasFPU = hwcap & (1UL << 3); // HWCAP_LOONGARCH_FPU
2014
- const uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
+ uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
2015
__asm__("cpucfg %[cpucfg2], %[cpucfg2]\n\t" : [cpucfg2] "+r"(cpucfg2));
2016
__asm__("cpucfg %[cpucfg3], %[cpucfg3]\n\t" : [cpucfg3] "+r"(cpucfg3));
2017
0 commit comments