[PATCH] D93387: [llvm][AArch64] Actually check expected FPU for CPUs
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 16 03:01:07 PST 2020
DavidSpickett created this revision.
Herald added subscribers: danielkiss, kristof.beyls.
DavidSpickett requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93387
Files:
llvm/unittests/Support/TargetParserTest.cpp
Index: llvm/unittests/Support/TargetParserTest.cpp
===================================================================
--- llvm/unittests/Support/TargetParserTest.cpp
+++ llvm/unittests/Support/TargetParserTest.cpp
@@ -805,6 +805,9 @@
else
pass &= (ExtKind == ExpectedFlags);
+ unsigned FPUKind = AArch64::getDefaultFPU(CPUName, AK);
+ pass &= ARM::getFPUName(FPUKind).equals(ExpectedFPU);
+
pass &= AArch64::getCPUAttr(AK).equals(CPUAttr);
return pass;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93387.312166.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201216/774b3ee0/attachment.bin>
More information about the llvm-commits
mailing list