Skip to content

Commit 60977f3

Browse files
committed
add v4f32, v2f64, v8f32, v4f64 support
1 parent 4e18d62 commit 60977f3

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
@@ -2175,6 +2175,8 @@ defm : VldreplPat<v32i8, XVLDREPL_B, simm12_addlike>;
21752175
defm : VldreplPat<v16i16, XVLDREPL_H, simm11_lsl1>;
21762176
defm : VldreplPat<v8i32, XVLDREPL_W, simm10_lsl2>;
21772177
defm : VldreplPat<v4i64, XVLDREPL_D, simm9_lsl3>;
2178+
defm : VldreplPat<v8f32, XVLDREPL_W, simm10_lsl2>;
2179+
defm : VldreplPat<v4f64, XVLDREPL_D, simm9_lsl3>;
21782180

21792181
// store
21802182
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
@@ -2365,6 +2365,8 @@ defm : VldreplPat<v16i8, VLDREPL_B, simm12_addlike>;
23652365
defm : VldreplPat<v8i16, VLDREPL_H, simm11_lsl1>;
23662366
defm : VldreplPat<v4i32, VLDREPL_W, simm10_lsl2>;
23672367
defm : VldreplPat<v2i64, VLDREPL_D, simm9_lsl3>;
2368+
defm : VldreplPat<v4f32, VLDREPL_W, simm10_lsl2>;
2369+
defm : VldreplPat<v2f64, VLDREPL_D, simm9_lsl3>;
23682370

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

0 commit comments

Comments
 (0)