Skip to content

Commit 2f077ec

Browse files
[RISCV][VLOPT] Enable VLOptimizer for vl-opt.ll test file
1 parent f4ba6a6 commit 2f077ec

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

llvm/test/CodeGen/RISCV/rvv/vl-opt.ll

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2-
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs | FileCheck %s
3-
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs | FileCheck %s
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs | \
3+
; RUN: FileCheck %s -check-prefixes=CHECK,NOVLOPT
4+
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs | \
5+
; RUN: FileCheck %s -check-prefixes=CHECK,NOVLOPT
6+
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v -riscv-enable-vl-optimizer \
7+
; RUN: -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,VLOPT
8+
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v -riscv-enable-vl-optimizer \
9+
; RUN: -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,VLOPT
410

511
declare <vscale x 4 x i32> @llvm.riscv.vadd.nxv4i32.nxv4i32(<vscale x 4 x i32>, <vscale x 4 x i32>, <vscale x 4 x i32>, iXLen)
612

@@ -104,3 +110,7 @@ define <vscale x 4 x i32> @different_imm_vl_with_tu(<vscale x 4 x i32> %passthru
104110
%w = call <vscale x 4 x i32> @llvm.riscv.vadd.nxv4i32.nxv4i32(<vscale x 4 x i32> %passthru, <vscale x 4 x i32> %v, <vscale x 4 x i32> %a,iXLen 4)
105111
ret <vscale x 4 x i32> %w
106112
}
113+
114+
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
115+
; NOVLOPT: {{.*}}
116+
; VLOPT: {{.*}}

0 commit comments

Comments
 (0)