Skip to content

Commit e5651f6

Browse files
committed
add v4f32, v2f64, v8f32, v4f64 support
1 parent d8b97d2 commit e5651f6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,8 @@ defm : VldreplPat<v32i8, XVLDREPL_B, simm12_addlike>;
21792179
defm : VldreplPat<v16i16, XVLDREPL_H, simm11_lsl1>;
21802180
defm : VldreplPat<v8i32, XVLDREPL_W, simm10_lsl2>;
21812181
defm : VldreplPat<v4i64, XVLDREPL_D, simm9_lsl3>;
2182+
defm : VldreplPat<v8f32, XVLDREPL_W, simm10_lsl2>;
2183+
defm : VldreplPat<v4f64, XVLDREPL_D, simm9_lsl3>;
21822184

21832185
// store
21842186
def : Pat<(int_loongarch_lasx_xvst LASX256:$xd, GPR:$rj, timm:$imm),

llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,6 +2369,8 @@ defm : VldreplPat<v16i8, VLDREPL_B, simm12_addlike>;
23692369
defm : VldreplPat<v8i16, VLDREPL_H, simm11_lsl1>;
23702370
defm : VldreplPat<v4i32, VLDREPL_W, simm10_lsl2>;
23712371
defm : VldreplPat<v2i64, VLDREPL_D, simm9_lsl3>;
2372+
defm : VldreplPat<v4f32, VLDREPL_W, simm10_lsl2>;
2373+
defm : VldreplPat<v2f64, VLDREPL_D, simm9_lsl3>;
23722374

23732375
// store
23742376
def : Pat<(int_loongarch_lsx_vst LSX128:$vd, GPR:$rj, timm:$imm),

0 commit comments

Comments
 (0)