[llvm] [AArch64][SLP] Add NFC test cases for floating point reductions (PR #106507)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 03:27:30 PDT 2024
================
@@ -0,0 +1,1232 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt < %s -passes=slp-vectorizer -mtriple=aarch64-unknown-linux -S | FileCheck %s
+; RUN: opt < %s -passes=slp-vectorizer -mtriple=aarch64-unknown-linux -mcpu=neoverse-v2 \
+; RUN: -S | FileCheck %s --check-prefix=NEOV2
----------------
davemgreen wrote:
Oh I hadn't seen that before (and I got the first check prefix wrong, sorry about that).
Maybe try:
```
; RUN: opt < %s -passes=slp-vectorizer -mtriple=aarch64-unknown-linux -mattr=-fullfp16 -S | FileCheck %s --check-prefixes=CHECK,CHECK-NOFP16
; RUN: opt < %s -passes=slp-vectorizer -mtriple=aarch64-unknown-linux -mattr=+fullfp16 -S | FileCheck %s --check-prefixes=CHECK,CHECK-FP16
```
The -fullfp16 seems to work around the issue with the attributes.
https://github.com/llvm/llvm-project/pull/106507
More information about the llvm-commits
mailing list