Skip to content

Commit 85dbe18

Browse files
authored
[RISCV] Add -print-pipeline-passes test as follow up to #156798. NFC (#157011)
1 parent 816eb9e commit 85dbe18

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; RUN: opt -mtriple=riscv32 -S -passes='default<O0>' -print-pipeline-passes < %s | FileCheck --check-prefix=O0 %s
2+
; RUN: opt -mtriple=riscv64 -S -passes='default<O0>' -print-pipeline-passes < %s | FileCheck --check-prefix=O0 %s
3+
; RUN: opt -mtriple=riscv32 -S -passes='default<O2>' -print-pipeline-passes < %s | FileCheck %s
4+
; RUN: opt -mtriple=riscv64 -S -passes='default<O2>' -print-pipeline-passes < %s | FileCheck %s
5+
6+
; CHECK: loop-idiom-vectorize
7+
; O0-NOT: loop-idiom-vectorize
8+
9+
define void @foo() {
10+
entry:
11+
ret void
12+
}

0 commit comments

Comments
 (0)