Skip to content

Commit 33c3df1

Browse files
committed
Precommit tests
1 parent 62c5de3 commit 33c3df1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc < %s -mtriple=riscv64 -mattr=+v -verify-machineinstrs | FileCheck %s
3+
4+
define <vscale x 1 x i64> @undef_passthru(<vscale x 1 x i64> %false, <vscale x 1 x i64> %true, i64 %vl) {
5+
; CHECK-LABEL: undef_passthru:
6+
; CHECK: # %bb.0:
7+
; CHECK-NEXT: vsetvli zero, a0, e64, m1, tu, ma
8+
; CHECK-NEXT: vmv.v.v v8, v9
9+
; CHECK-NEXT: ret
10+
%v = call <vscale x 1 x i64> @llvm.riscv.vmerge.nxv1i64.nxv1i64(<vscale x 1 x i64> poison, <vscale x 1 x i64> %false, <vscale x 1 x i64> %true, <vscale x 1 x i1> splat (i1 true), i64 %vl)
11+
ret <vscale x 1 x i64> %v
12+
}

llvm/test/CodeGen/RISCV/rvv/vmv.v.v-peephole.mir

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,17 @@ body: |
1818
%y:gpr = ADDI $x0, 1
1919
%z:vr = PseudoVMV_V_V_M1 %passthru, %x, 4, 5 /* e32 */, 0 /* tu, mu */
2020
...
21+
---
22+
name: tail_agnostic
23+
body: |
24+
bb.0:
25+
liveins: $v8
26+
; CHECK-LABEL: name: tail_agnostic
27+
; CHECK: liveins: $v8
28+
; CHECK-NEXT: {{ $}}
29+
; CHECK-NEXT: %passthru:vr = COPY $v8
30+
; CHECK-NEXT: %x:vr = PseudoVADD_VV_M1 %passthru, $noreg, $noreg, 4, 5 /* e32 */, 0 /* tu, mu */
31+
%passthru:vr = COPY $v8
32+
%x:vr = PseudoVADD_VV_M1 %passthru, $noreg, $noreg, 4, 5 /* e32 */, 0 /* tu, mu */
33+
%y:vr = PseudoVMV_V_V_M1 %passthru, %x, 4, 5 /* e32 */, 1 /* ta, mu */
34+
...

0 commit comments

Comments
 (0)