[PATCH] D93387: [llvm][AArch64] Actually check expected FPU for CPUs

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 01:16:01 PST 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7f8779e4e66b: [llvm][AArch64] Actually check expected FPU for CPUs (authored by DavidSpickett).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93387/new/

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.312399.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201217/9ddcd89c/attachment.bin>


More information about the llvm-commits mailing list