[llvm] [NFC][LV] Refine the lit test case riscv-vector-reverse.ll (PR #149020)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 01:19:28 PDT 2025
================
@@ -1,400 +1,457 @@
-; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 5
-; This is the loop in c++ being vectorize in this file with
-;vector.reverse
-; #pragma clang loop vectorize_width(4, scalable)
-; for (int i = N-1; i >= 0; --i)
-; a[i] = b[i] + 1.0;
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --filter-out-after "for.body:" --version 5
+;; This is the loop in c++ being vectorize in this file with
+;; vector.reverse
+;; #pragma clang loop vectorize_width(4, scalable)
+;; for (int i = N-1; i >= 0; --i)
+;; a[i] = b[i] + 1.0;
-; REQUIRES: asserts
-; RUN: opt -passes=loop-vectorize,dce,instcombine -mtriple riscv64-linux-gnu \
-; RUN: -mattr=+v -debug-only=loop-vectorize,vplan -scalable-vectorization=on \
-; RUN: -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=loop-vectorize -mtriple=riscv64 -mattr=+v \
+; RUN: -riscv-v-vector-bits-min=128 -S < %s \
----------------
lukel97 wrote:
I think `-riscv-v-vector-bits-min=128` is implied by `-mattr=+v`, can we remove it? I landed a change a while ago to remove it from existing tests df387661c4ab53938ea73cbd77a44f98c8f96083
https://github.com/llvm/llvm-project/pull/149020
More information about the llvm-commits
mailing list