Skip to content

Commit 7217201

Browse files
committed
[RISCV] Add coverage of build vectors with rv32 + v + bitmanip
rv32+v allows cases with XLEN < ELEN, and since we're about to add a bitmanip specific lowering, it's good to have coverage of this corner case.
1 parent 87de497 commit 7217201

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fp-buildvec.ll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22

3-
; RUN: llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32
3+
; RUN: llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32,RV32V
4+
; RUN: llc -mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+zba,+zbb -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32,RV32VB
45
; RUN: llc -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RV64V
56
; RUN: llc -mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+rva22u64 -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RVA22U64
67

@@ -1501,3 +1502,6 @@ define <8 x double> @buildvec_v8f64_zvl512(double %e0, double %e1, double %e2, d
15011502
%v7 = insertelement <8 x double> %v6, double %e7, i64 7
15021503
ret <8 x double> %v7
15031504
}
1505+
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
1506+
; RV32V: {{.*}}
1507+
; RV32VB: {{.*}}

llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32
2+
; RUN: llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32,RV32-ONLY
3+
; RUN: llc -mtriple=riscv32 -mattr=+v,+zba,+zbb -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32,RV32VB
34
; RUN: llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RV64V,RV64V-ONLY
45
; RUN: llc -mtriple=riscv64 -mattr=+v,+rva22u64 -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RV64V,RVA22U64
56
; RUN: llc -mtriple=riscv64 -mattr=+zve32x,+zvl128b -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64,RV64ZVE32
@@ -2171,3 +2172,6 @@ define <16 x i8> @buildvec_v16i8_loads_undef_scattered(ptr %p) {
21712172
%v16 = insertelement <16 x i8> %v15, i8 %ld16, i32 15
21722173
ret <16 x i8> %v16
21732174
}
2175+
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
2176+
; RV32-ONLY: {{.*}}
2177+
; RV32VB: {{.*}}

0 commit comments

Comments
 (0)