1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[llvm][AArch64] Actually check expected FPU for CPUs

We were passing this as an argument but never using
it. ARM has always checked this.

Note that the FPU list is shared between ARM and AArch64
so there is no AArch64::getFPUName, just ARM::getFPUName.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D93387
This commit is contained in:
David Spickett 2020-12-15 16:17:28 +00:00
parent 6590180dcc
commit c4d89b8db0

View File

@ -805,6 +805,9 @@ bool testAArch64CPU(StringRef CPUName, StringRef ExpectedArch,
else else
pass &= (ExtKind == ExpectedFlags); pass &= (ExtKind == ExpectedFlags);
unsigned FPUKind = AArch64::getDefaultFPU(CPUName, AK);
pass &= ARM::getFPUName(FPUKind).equals(ExpectedFPU);
pass &= AArch64::getCPUAttr(AK).equals(CPUAttr); pass &= AArch64::getCPUAttr(AK).equals(CPUAttr);
return pass; return pass;