Skip to content

Commit

Permalink
[RISCV] Add precommit test for select vl op that equal to ~0.
Browse files Browse the repository at this point in the history
Precommit test for D116798

Differential Revision: https://reviews.llvm.org/D116799
  • Loading branch information
jacquesguan committed Jan 11, 2022
1 parent 905ac77 commit 99c1acf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
Expand Up @@ -239,6 +239,21 @@ entry:
ret <vscale x 1 x double> %y
}

define <vscale x 1 x double> @test13(<vscale x 1 x double> %a, <vscale x 1 x double> %b) nounwind {
; CHECK-LABEL: test13:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: li a0, -1
; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, mu
; CHECK-NEXT: vfadd.vv v8, v8, v9
; CHECK-NEXT: ret
entry:
%0 = tail call <vscale x 1 x double> @llvm.riscv.vfadd.nxv1f64.nxv1f64(
<vscale x 1 x double> %a,
<vscale x 1 x double> %b,
i64 -1)
ret <vscale x 1 x double> %0
}

declare <vscale x 1 x i64> @llvm.riscv.vadd.mask.nxv1i64.nxv1i64(
<vscale x 1 x i64>,
<vscale x 1 x i64>,
Expand Down

0 comments on commit 99c1acf

Please sign in to comment.