diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Basic/Targets.cpp | 4 | ||||
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index bd3f76df42..a17b2a8256 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1029,8 +1029,8 @@ void PPCTargetInfo::getDefaultFeatures(llvm::StringMap<bool> &Features) const { bool PPCTargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features, StringRef Name, bool Enabled) const { - if (Name == "altivec" || Name == "mfocrf" || Name == "popcntd" || - Name == "qpx") { + if (Name == "altivec" || Name == "fprnd" || Name == "mfocrf" || + Name == "popcntd" || Name == "qpx") { Features[Name] = Enabled; return true; } diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c96d5a4804..b3a2680bae 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1101,6 +1101,10 @@ void Clang::AddPPCTargetArgs(const ArgList &Args, options::OPT_faltivec, options::OPT_fno_altivec, "altivec"); + AddTargetFeature(Args, CmdArgs, + options::OPT_mfprnd, options::OPT_mno_fprnd, + "fprnd"); + // Note that gcc calls this mfcrf and LLVM calls this mfocrf. AddTargetFeature(Args, CmdArgs, options::OPT_mmfcrf, options::OPT_mno_mfcrf, |