Favor FMA3 over FMA4 if both are enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2012-08-23 18:14:30 +00:00
parent a00b80b04c
commit 9b54141cae

View File

@ -205,7 +205,8 @@ public:
bool hasAES() const { return HasAES; }
bool hasPCLMUL() const { return HasPCLMUL; }
bool hasFMA() const { return HasFMA; }
bool hasFMA4() const { return HasFMA4; }
// FIXME: Favor FMA when both are enabled. Is this right?
bool hasFMA4() const { return HasFMA4 && !HasFMA; }
bool hasXOP() const { return HasXOP; }
bool hasMOVBE() const { return HasMOVBE; }
bool hasRDRAND() const { return HasRDRAND; }