Skip to content

Commit 22560a7

Browse files
michaelmaitlandDanielCChen
authored andcommitted
[RISCV][VLOPT] Update test cases to use riscv-enable-vl-optimizer and better formatting
1 parent ffa1f99 commit 22560a7

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
; 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
2+
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs \
3+
; RUN: | FileCheck %s
4+
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs \
5+
; RUN: | FileCheck %s
6+
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v -riscv-enable-vl-optimizer \
7+
; RUN: -verify-machineinstrs | FileCheck %s
8+
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v -riscv-enable-vl-optimizer \
9+
; RUN: -verify-machineinstrs | FileCheck %s
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
declare <vscale x 4 x i32> @llvm.riscv.vrgather.vv.nxv4i32.iXLen(

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
; 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,+zvl512b -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,NOVLOPT
3-
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zvl512b -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,NOVLOPT
4-
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+zvl512b -riscv-enable-vl-optimizer -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,VLOPT
5-
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zvl512b -riscv-enable-vl-optimizer -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,VLOPT
6-
2+
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+zvl512b -verify-machineinstrs \
3+
; RUN: | FileCheck %s -check-prefixes=CHECK,NOVLOPT
4+
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zvl512b -verify-machineinstrs \
5+
; RUN: | FileCheck %s -check-prefixes=CHECK,NOVLOPT
6+
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+zvl512b -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,+zvl512b -riscv-enable-vl-optimizer \
9+
; RUN: -verify-machineinstrs | FileCheck %s -check-prefixes=CHECK,VLOPT
710

811
define <2 x i32> @vdot_lane_s32(<2 x i32> noundef %var_1, <8 x i8> noundef %var_3, <8 x i8> noundef %var_5, <8 x i16> %x) {
912
; CHECK-LABEL: vdot_lane_s32:
@@ -84,6 +87,7 @@ entry:
8487

8588
ret <vscale x 2 x i16> %x
8689
}
90+
8791
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
8892
; NOVLOPT: {{.*}}
8993
; VLOPT: {{.*}}

0 commit comments

Comments
 (0)