You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/CodeGen/RISCV/rvv/vl-opt-op-info.ll
+30-18Lines changed: 30 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,20 @@ declare <vscale x 2 x i16> @llvm.riscv.vnsrl.nxv2i16.nxv2i32.nxv2i16(
40
40
iXLen);
41
41
42
42
define <vscale x 2 x i16> @intrinsic_vnsrl_wv_nxv2i16_nxv2i32_nxv2i16(<vscale x 2 x i16> %a, <vscale x 2 x i16> %b, iXLen %2, <vscale x 2 x i32> %3, <vscale x 2 x i32> %4, <vscale x 2 x i16> %z) nounwind {
%c = sext <vscale x 2 x i16> %ato <vscale x 2 x i32>
52
59
%d = sext <vscale x 2 x i16> %bto <vscale x 2 x i32>
@@ -67,14 +74,22 @@ declare <vscale x 2 x i16> @llvm.riscv.vnclip.nxv2i16.nxv2i32.nxv2i16(
67
74
iXLen, iXLen);
68
75
69
76
define <vscale x 2 x i16> @vnclip(<vscale x 2 x i16> %a, <vscale x 2 x i16> %b, iXLen %2, <vscale x 2 x i32> %3, <vscale x 2 x i32> %4, <vscale x 2 x i16> %z) nounwind {
70
-
; CHECK-LABEL: vnclip:
71
-
; CHECK: # %bb.0: # %entry
72
-
; CHECK-NEXT: vsetvli a1, zero, e16, mf2, ta, ma
73
-
; CHECK-NEXT: vwadd.vv v10, v8, v9
74
-
; CHECK-NEXT: csrwi vxrm, 0
75
-
; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
76
-
; CHECK-NEXT: vnclip.wv v8, v10, v12
77
-
; CHECK-NEXT: ret
77
+
; NOVLOPT-LABEL: vnclip:
78
+
; NOVLOPT: # %bb.0: # %entry
79
+
; NOVLOPT-NEXT: vsetvli a1, zero, e16, mf2, ta, ma
80
+
; NOVLOPT-NEXT: vwadd.vv v10, v8, v9
81
+
; NOVLOPT-NEXT: csrwi vxrm, 0
82
+
; NOVLOPT-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
83
+
; NOVLOPT-NEXT: vnclip.wv v8, v10, v12
84
+
; NOVLOPT-NEXT: ret
85
+
;
86
+
; VLOPT-LABEL: vnclip:
87
+
; VLOPT: # %bb.0: # %entry
88
+
; VLOPT-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
89
+
; VLOPT-NEXT: vwadd.vv v10, v8, v9
90
+
; VLOPT-NEXT: csrwi vxrm, 0
91
+
; VLOPT-NEXT: vnclip.wv v8, v10, v12
92
+
; VLOPT-NEXT: ret
78
93
entry:
79
94
%c = sext <vscale x 2 x i16> %ato <vscale x 2 x i32>
80
95
%d = sext <vscale x 2 x i16> %bto <vscale x 2 x i32>
@@ -88,6 +103,3 @@ entry:
88
103
ret <vscale x 2 x i16> %x
89
104
}
90
105
91
-
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
0 commit comments