From 5469850dc7f26260584c97ef5e730f8c7247c964 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 4 Sep 2025 21:33:16 -0700 Subject: [PATCH] [RISCV] Add -print-pipeline-passes test as follow up to #156798. NFC --- llvm/test/CodeGen/RISCV/print-pipeline-passes.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/CodeGen/RISCV/print-pipeline-passes.ll diff --git a/llvm/test/CodeGen/RISCV/print-pipeline-passes.ll b/llvm/test/CodeGen/RISCV/print-pipeline-passes.ll new file mode 100644 index 0000000000000..e1125a60a1217 --- /dev/null +++ b/llvm/test/CodeGen/RISCV/print-pipeline-passes.ll @@ -0,0 +1,12 @@ +; RUN: opt -mtriple=riscv32 -S -passes='default' -print-pipeline-passes < %s | FileCheck --check-prefix=O0 %s +; RUN: opt -mtriple=riscv64 -S -passes='default' -print-pipeline-passes < %s | FileCheck --check-prefix=O0 %s +; RUN: opt -mtriple=riscv32 -S -passes='default' -print-pipeline-passes < %s | FileCheck %s +; RUN: opt -mtriple=riscv64 -S -passes='default' -print-pipeline-passes < %s | FileCheck %s + +; CHECK: loop-idiom-vectorize +; O0-NOT: loop-idiom-vectorize + +define void @foo() { +entry: + ret void +}