[llvm] 90b02f6 - [SLP][X86] slp-fma-loss.ll - add various targets with different FMA abilities

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 03:46:16 PST 2022


Author: Simon Pilgrim
Date: 2022-12-09T11:46:06Z
New Revision: 90b02f6c635abcbfedada7427f93de49fab7cbde

URL: https://github.com/llvm/llvm-project/commit/90b02f6c635abcbfedada7427f93de49fab7cbde
DIFF: https://github.com/llvm/llvm-project/commit/90b02f6c635abcbfedada7427f93de49fab7cbde.diff

LOG: [SLP][X86] slp-fma-loss.ll - add various targets with different FMA abilities

Add targets with FMA3, FMA4 and no-FMA support

Should help with D132872 testing

Added: 
    

Modified: 
    llvm/test/Transforms/SLPVectorizer/X86/slp-fma-loss.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SLPVectorizer/X86/slp-fma-loss.ll b/llvm/test/Transforms/SLPVectorizer/X86/slp-fma-loss.ll
index 2c3fd12bc085e..02c7e4a03325e 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/slp-fma-loss.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/slp-fma-loss.ll
@@ -1,5 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -passes=slp-vectorizer -S -mcpu=core-avx2 -mtriple=x86_64-unknown-linux-gnu -slp-threshold=-2 < %s | FileCheck %s
+; RUN: opt -passes=slp-vectorizer -S -mcpu=corei7 -mtriple=x86_64-unknown-linux-gnu -slp-threshold=-2 < %s | FileCheck %s --check-prefixes=CHECK
+; RUN: opt -passes=slp-vectorizer -S -mcpu=bdver2 -mtriple=x86_64-unknown-linux-gnu -slp-threshold=-2 < %s | FileCheck %s --check-prefixes=CHECK
+; RUN: opt -passes=slp-vectorizer -S -mcpu=core-avx2 -mtriple=x86_64-unknown-linux-gnu -slp-threshold=-2 < %s | FileCheck %s  --check-prefixes=CHECK
 
 ; This test checks for a case when a horizontal reduction of floating-point
 ; adds may look profitable, but is not because it eliminates generation of


        


More information about the llvm-commits mailing list