Skip to content

Commit 54a59e0

Browse files
committed
[RISCV] add trunc-sat-clip.ll test
1 parent d6d3e25 commit 54a59e0

File tree

2 files changed

+395
-1
lines changed

2 files changed

+395
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ multiclass VPatTruncSatClipUMin<VTypeInfo vti, VTypeInfo wti, int uminval> {
23612361
let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
23622362
GetVTypePredicates<wti>.Predicates) in
23632363
def : Pat<(vti.Vector (riscv_trunc_vector_vl
2364-
(wti.Vector (riscv_smin_vl
2364+
(wti.Vector (riscv_umin_vl
23652365
(wti.Vector wti.RegClass:$rs1),
23662366
(wti.Vector (riscv_vmv_v_x_vl (wti.Vector undef), uminval, (XLenVT srcvalue))),
23672367
(wti.Vector undef), (wti.Mask V0), VLOpFrag)),

0 commit comments

Comments
 (0)