[llvm] [RISCV] Fix missing scaling by LMUL in cost model (PR #73342)

Simeon K via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 05:35:55 PST 2024


================
@@ -1,8 +1,12 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
-; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv32 -mattr=+m,+v | FileCheck %s
-; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv64 -mattr=+m,+v | FileCheck %s
-; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv32 -mattr=+v,+zvbb | FileCheck %s
-; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv64 -mattr=+v,+zvbb | FileCheck %s
+; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv32 -mattr=+m,+v \
+; RUN: | FileCheck %s --check-prefixes=CHECK,RV32
+; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv64 -mattr=+m,+v \
+; RUN: | FileCheck %s --check-prefixes=CHECK,RV64
+; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv32 -mattr=+v,+zvbb \
+; RUN: | FileCheck %s --check-prefixes=CHECK,ZVBB
+; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=riscv64 -mattr=+v,+zvbb \
+; RUN: | FileCheck %s --check-prefixes=CHECK,ZVBB32
----------------
simeonkr wrote:

ZVBB64 was my intention: it has to be distinct from ZVBB or else `update_test_checks.py` reports a conflict. 

(Given that the output here in all cases except for RV64 is identical, I'm not sure what causes the conflict; I'd otherwise have assumed that two prefixes altogether, CHECK and RV64, suffice.)

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


More information about the llvm-commits mailing list