[compiler-rt] [clang] [llvm] [AArch64][SME] Add support for sme-fa64 (PR #70809)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 09:28:35 PDT 2023


================
@@ -491,13 +491,15 @@ bool AArch64Subtarget::isStreamingCompatible() const {
 }
 
 bool AArch64Subtarget::isNeonAvailable() const {
-  return hasNEON() && !isStreaming() && !isStreamingCompatible();
+  if (hasSMEFA64())
+    return true;
+  return (hasNEON() && !isStreaming() && !isStreamingCompatible());
----------------
sdesmalen-arm wrote:

You still need to check or `hasNEON()`. Is it simpler to write as:

```
return hasNEON() && 
       (hasSMEFA64() || (!isStreaming() && !isStreamingCompatible()));
```


https://github.com/llvm/llvm-project/pull/70809


More information about the cfe-commits mailing list