Skip to content

Commit 945c340

Browse files
committed
[RISCV] update vwsll-sdnode.ll
1 parent 0f5466b commit 945c340

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

llvm/test/CodeGen/RISCV/rvv/vwsll-sdnode.ll

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
22
; RUN: llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs < %s | FileCheck %s
33
; RUN: llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs < %s | FileCheck %s
4-
; RUN: llc -mtriple=riscv32 -mattr=+v,+zvbb -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK-ZVBB
5-
; RUN: llc -mtriple=riscv64 -mattr=+v,+zvbb -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK-ZVBB
4+
; RUN: llc -mtriple=riscv32 -mattr=+v,+zvbb -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK-ZVBB,RV32ZVBB
5+
; RUN: llc -mtriple=riscv64 -mattr=+v,+zvbb -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK-ZVBB,RV64ZVBB
66

77
; ==============================================================================
88
; i32 -> i64
@@ -864,12 +864,19 @@ define <vscale x 2 x i64> @vwsll_vi_nxv2i64_nxv2i8(<vscale x 2 x i8> %a) {
864864
; CHECK-NEXT: vsll.vi v8, v10, 2
865865
; CHECK-NEXT: ret
866866
;
867-
; CHECK-ZVBB-LABEL: vwsll_vi_nxv2i64_nxv2i8:
868-
; CHECK-ZVBB: # %bb.0:
869-
; CHECK-ZVBB-NEXT: vsetvli a0, zero, e64, m2, ta, ma
870-
; CHECK-ZVBB-NEXT: vzext.vf8 v10, v8
871-
; CHECK-ZVBB-NEXT: vsll.vi v8, v10, 2
872-
; CHECK-ZVBB-NEXT: ret
867+
; RV32ZVBB-LABEL: vwsll_vi_nxv2i64_nxv2i8:
868+
; RV32ZVBB: # %bb.0:
869+
; RV32ZVBB-NEXT: vsetvli a0, zero, e64, m2, ta, ma
870+
; RV32ZVBB-NEXT: vzext.vf8 v10, v8
871+
; RV32ZVBB-NEXT: vsll.vi v8, v10, 2
872+
; RV32ZVBB-NEXT: ret
873+
;
874+
; RV64ZVBB-LABEL: vwsll_vi_nxv2i64_nxv2i8:
875+
; RV64ZVBB: # %bb.0:
876+
; RV64ZVBB-NEXT: vsetvli a0, zero, e32, m1, ta, ma
877+
; RV64ZVBB-NEXT: vzext.vf4 v10, v8
878+
; RV64ZVBB-NEXT: vwsll.vi v8, v10, 2
879+
; RV64ZVBB-NEXT: ret
873880
%x = zext <vscale x 2 x i8> %a to <vscale x 2 x i64>
874881
%z = shl <vscale x 2 x i64> %x, splat (i64 2)
875882
ret <vscale x 2 x i64> %z

0 commit comments

Comments
 (0)