Skip to content

Commit 99e76db

Browse files
author
Kai Luo
committed
Indicate pwr9 and p9 altivec
1 parent 4d315ff commit 99e76db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Basic/Targets/PPC.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ bool PPCTargetInfo::initFeatureMap(
597597
.Default(false);
598598

599599
Features["isa-v30-instructions"] =
600+
llvm::is_contained(FeaturesVec, "+power9-vector") or
600601
llvm::StringSwitch<bool>(CPU).Case("pwr9", true).Default(false);
601602

602603
Features["quadword-atomics"] =
@@ -605,6 +606,8 @@ bool PPCTargetInfo::initFeatureMap(
605606
.Case("pwr8", true)
606607
.Default(false);
607608

609+
Features["power9-altivec"] = llvm::is_contained(FeaturesVec, "+power9-vector");
610+
608611
// Power10 includes all the same features as Power9 plus any features specific
609612
// to the Power10 core.
610613
if (CPU == "pwr10" || CPU == "power10") {

0 commit comments

Comments
 (0)