Skip to content

Commit

Permalink
[LLVM][RVV 0.7.1] test vadd
Browse files Browse the repository at this point in the history
  • Loading branch information
imkiva committed Oct 19, 2023
1 parent 0e91253 commit e29c444
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/test/CodeGen/RISCV/rvv0p71/vadd.ll
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+xtheadv \
; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,RV32
; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK
; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+xtheadv \
; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK,RV64
; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK

declare <vscale x 8 x i8> @llvm.riscv.xvadd.nxv8i8.nxv8i8(
<vscale x 8 x i8>,
Expand All @@ -13,7 +13,7 @@ declare <vscale x 8 x i8> @llvm.riscv.xvadd.nxv8i8.nxv8i8(
define <vscale x 8 x i8> @intrinsic_xvadd_vv_nxv8i8_nxv8i8_nxv8i8(<vscale x 8 x i8> %0, <vscale x 8 x i8> %1, iXLen %2) nounwind {
; CHECK-LABEL: intrinsic_xvadd_vv_nxv8i8_nxv8i8_nxv8i8:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, ma
; CHECK-NEXT: vsetvli zero, a0, e8, m1, d1
; CHECK-NEXT: vadd.vv v8, v8, v9
; CHECK-NEXT: ret
entry:
Expand All @@ -36,7 +36,7 @@ declare <vscale x 8 x i8> @llvm.riscv.xvadd.mask.nxv8i8.nxv8i8(
define <vscale x 8 x i8> @intrinsic_xvadd_mask_vv_nxv8i8_nxv8i8_nxv8i8(<vscale x 8 x i8> %0, <vscale x 8 x i8> %1, <vscale x 8 x i8> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
; CHECK-LABEL: intrinsic_xvadd_mask_vv_nxv8i8_nxv8i8_nxv8i8:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, mu
; CHECK-NEXT: vsetvli zero, a0, e8, m1, d1
; CHECK-NEXT: vadd.vv v8, v9, v10, v0.t
; CHECK-NEXT: ret
entry:
Expand Down

0 comments on commit e29c444

Please sign in to comment.