mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix the pattern for VADDUWM, add i32 splat
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e63d746ef6
commit
32f57d9e26
@ -972,7 +972,7 @@ def VADDFP : VXForm_1<10, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB),
|
|||||||
[(set VRRC:$vD, (fadd VRRC:$vA, VRRC:$vB))]>;
|
[(set VRRC:$vD, (fadd VRRC:$vA, VRRC:$vB))]>;
|
||||||
def VADDUWM : VXForm_1<128, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB),
|
def VADDUWM : VXForm_1<128, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB),
|
||||||
"vadduwm $vD, $vA, $vB", VecGeneral,
|
"vadduwm $vD, $vA, $vB", VecGeneral,
|
||||||
[(set VRRC:$vD, (add VRRC:$vA, VRRC:$vB))]>;
|
[(set VRRC:$vD, (add (v4i32 VRRC:$vA), VRRC:$vB))]>;
|
||||||
def VCFSX : VXForm_1<842, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB),
|
def VCFSX : VXForm_1<842, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB),
|
||||||
"vcfsx $vD, $vB, $UIMM", VecFP,
|
"vcfsx $vD, $vB, $UIMM", VecFP,
|
||||||
[]>;
|
[]>;
|
||||||
@ -1178,6 +1178,9 @@ def : Pat<(v16i8 (load xoaddr:$src)),
|
|||||||
(v16i8 (LVX xoaddr:$src))>;
|
(v16i8 (LVX xoaddr:$src))>;
|
||||||
|
|
||||||
|
|
||||||
|
def : Pat<(vector_shuffle (v4i32 VRRC:$vB), (undef), VSPLT_shuffle_mask:$UIMM),
|
||||||
|
(v4i32 (VSPLTW VSPLT_shuffle_mask:$UIMM, VRRC:$vB))>;
|
||||||
|
|
||||||
def : Pat<(PPCvperm (v4i32 VRRC:$vA), VRRC:$vB, VRRC:$vC),
|
def : Pat<(PPCvperm (v4i32 VRRC:$vA), VRRC:$vB, VRRC:$vC),
|
||||||
(v4i32 (VPERM VRRC:$vA, VRRC:$vB, VRRC:$vC))>;
|
(v4i32 (VPERM VRRC:$vA, VRRC:$vB, VRRC:$vC))>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user