File tree 2 files changed +14
-0
lines changed 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -493,6 +493,7 @@ StringRef sys::detail::getHostCPUNameForRISCV(StringRef ProcCpuinfoContent) {
493
493
}
494
494
495
495
return StringSwitch<const char *>(UArch)
496
+ .Case (" eswin,eic770x" , " sifive-p550" )
496
497
.Case (" sifive,u74-mc" , " sifive-u74" )
497
498
.Case (" sifive,bullet0" , " sifive-u74" )
498
499
.Default (" " );
Original file line number Diff line number Diff line change @@ -405,6 +405,19 @@ uarch : sifive,u74-mc
405
405
EXPECT_EQ (
406
406
sys::detail::getHostCPUNameForRISCV (" uarch : sifive,bullet0\n " ),
407
407
" sifive-u74" );
408
+
409
+ const StringRef SifiveP550MCProcCPUInfo = R"(
410
+ processor : 0
411
+ hart : 2
412
+ isa : rv64imafdch_zicsr_zifencei_zba_zbb_sscofpmf
413
+ mmu : sv48
414
+ uarch : eswin,eic770x
415
+ )" ;
416
+ EXPECT_EQ (sys::detail::getHostCPUNameForRISCV (SifiveP550MCProcCPUInfo),
417
+ " sifive-p550" );
418
+ EXPECT_EQ (
419
+ sys::detail::getHostCPUNameForRISCV (" uarch : eswin,eic770x\n " ),
420
+ " sifive-p550" );
408
421
}
409
422
410
423
static bool runAndGetCommandOutput (
You can’t perform that action at this time.
0 commit comments