forked from OSchip/llvm-project
[Hexagon] Add setting hvx-qfloat in HexagonMCSubtargetInfo
This commit is contained in:
parent
055d8090d1
commit
9aa017342c
|
@ -517,6 +517,14 @@ MCSubtargetInfo *Hexagon_MC::createHexagonMCSubtargetInfo(const Triple &TT,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
// Add qfloat subtarget feature by default to v68 and above
|
||||
// unless explicitely disabled
|
||||
if (checkFeature(X, Hexagon::ExtensionHVXV68) &&
|
||||
ArchFS.find("-hvx-qfloat", 0) == std::string::npos) {
|
||||
llvm::FeatureBitset Features = X->getFeatureBits();
|
||||
X->setFeatureBits(Features.set(Hexagon::ExtensionHVXQFloat));
|
||||
}
|
||||
|
||||
if (HexagonDisableDuplex) {
|
||||
llvm::FeatureBitset Features = X->getFeatureBits();
|
||||
X->setFeatureBits(Features.reset(Hexagon::FeatureDuplex));
|
||||
|
|
Loading…
Reference in New Issue