mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove some now-unneeded casts from instruction patterns. With the casts
removed, tblgen produces identical output to with them in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
047854f2b7
commit
4e85e64007
@ -546,7 +546,7 @@ def : Pat<(v8i16 (undef)), (IMPLICIT_DEF_VRRC)>;
|
||||
def : Pat<(v4f32 (undef)), (IMPLICIT_DEF_VRRC)>;
|
||||
|
||||
// Loads.
|
||||
def : Pat<(v4i32 (load xoaddr:$src)), (v4i32 (LVX xoaddr:$src))>;
|
||||
def : Pat<(v4i32 (load xoaddr:$src)), (LVX xoaddr:$src)>;
|
||||
|
||||
// Stores.
|
||||
def : Pat<(store (v4i32 VRRC:$rS), xoaddr:$dst),
|
||||
@ -594,29 +594,29 @@ def:Pat<(vector_shuffle (v16i8 VRRC:$vA), undef, VMRGHW_unary_shuffle_mask:$in),
|
||||
(VMRGHW VRRC:$vA, VRRC:$vA)>;
|
||||
|
||||
// Logical Operations
|
||||
def : Pat<(v4i32 (vnot VRRC:$vA)), (v4i32 (VNOR VRRC:$vA, VRRC:$vA))>;
|
||||
def : Pat<(v4i32 (vnot_conv VRRC:$vA)), (v4i32 (VNOR VRRC:$vA, VRRC:$vA))>;
|
||||
def : Pat<(v4i32 (vnot VRRC:$vA)), (VNOR VRRC:$vA, VRRC:$vA)>;
|
||||
def : Pat<(v4i32 (vnot_conv VRRC:$vA)), (VNOR VRRC:$vA, VRRC:$vA)>;
|
||||
|
||||
def : Pat<(v4i32 (vnot_conv (or VRRC:$A, VRRC:$B))),
|
||||
(v4i32 (VNOR VRRC:$A, VRRC:$B))>;
|
||||
(VNOR VRRC:$A, VRRC:$B)>;
|
||||
def : Pat<(v4i32 (and VRRC:$A, (vnot_conv VRRC:$B))),
|
||||
(v4i32 (VANDC VRRC:$A, VRRC:$B))>;
|
||||
(VANDC VRRC:$A, VRRC:$B)>;
|
||||
|
||||
def : Pat<(fmul VRRC:$vA, VRRC:$vB),
|
||||
(v4f32 (VMADDFP VRRC:$vA, VRRC:$vB, (v4i32 (V_SET0))))>;
|
||||
(VMADDFP VRRC:$vA, VRRC:$vB, (v4i32 (V_SET0)))>;
|
||||
|
||||
// Fused multiply add and multiply sub for packed float. These are represented
|
||||
// separately from the real instructions above, for operations that must have
|
||||
// the additional precision, such as Newton-Rhapson (used by divide, sqrt)
|
||||
def : Pat<(PPCvmaddfp VRRC:$A, VRRC:$B, VRRC:$C),
|
||||
(v4f32 (VMADDFP VRRC:$A, VRRC:$B, VRRC:$C))>;
|
||||
(VMADDFP VRRC:$A, VRRC:$B, VRRC:$C)>;
|
||||
def : Pat<(PPCvnmsubfp VRRC:$A, VRRC:$B, VRRC:$C),
|
||||
(v4f32 (VNMSUBFP VRRC:$A, VRRC:$B, VRRC:$C))>;
|
||||
(VNMSUBFP VRRC:$A, VRRC:$B, VRRC:$C)>;
|
||||
|
||||
def : Pat<(int_ppc_altivec_vmaddfp VRRC:$A, VRRC:$B, VRRC:$C),
|
||||
(v4f32 (VMADDFP VRRC:$A, VRRC:$B, VRRC:$C))>;
|
||||
(VMADDFP VRRC:$A, VRRC:$B, VRRC:$C)>;
|
||||
def : Pat<(int_ppc_altivec_vnmsubfp VRRC:$A, VRRC:$B, VRRC:$C),
|
||||
(v4f32 (VNMSUBFP VRRC:$A, VRRC:$B, VRRC:$C))>;
|
||||
(VNMSUBFP VRRC:$A, VRRC:$B, VRRC:$C)>;
|
||||
|
||||
def : Pat<(PPCvperm (v16i8 VRRC:$vA), VRRC:$vB, VRRC:$vC),
|
||||
(v16i8 (VPERM VRRC:$vA, VRRC:$vB, VRRC:$vC))>;
|
||||
(VPERM VRRC:$vA, VRRC:$vB, VRRC:$vC)>;
|
||||
|
@ -490,7 +490,7 @@ def EQV : XForm_6<31, 284, (ops GPRC:$rA, GPRC:$rS, GPRC:$rB),
|
||||
[(set GPRC:$rA, (not (xor GPRC:$rS, GPRC:$rB)))]>;
|
||||
def XOR : XForm_6<31, 316, (ops GPRC:$rA, GPRC:$rS, GPRC:$rB),
|
||||
"xor $rA, $rS, $rB", IntGeneral,
|
||||
[(set GPRC:$rA, (xor GPRC:$rS, GPRC:$rB))]>;
|
||||
[(set GPRC:$rA, (xor GPRC:$rS, GPRC:$rB))]>;
|
||||
def SLW : XForm_6<31, 24, (ops GPRC:$rA, GPRC:$rS, GPRC:$rB),
|
||||
"slw $rA, $rS, $rB", IntGeneral,
|
||||
[(set GPRC:$rA, (PPCshl GPRC:$rS, GPRC:$rB))]>;
|
||||
@ -936,25 +936,25 @@ def : Pat<(srl GPRC:$rS, GPRC:$rB),
|
||||
def : Pat<(shl GPRC:$rS, GPRC:$rB),
|
||||
(SLW GPRC:$rS, GPRC:$rB)>;
|
||||
|
||||
def : Pat<(i32 (zextload iaddr:$src, i1)),
|
||||
def : Pat<(zextload iaddr:$src, i1),
|
||||
(LBZ iaddr:$src)>;
|
||||
def : Pat<(i32 (zextload xaddr:$src, i1)),
|
||||
def : Pat<(zextload xaddr:$src, i1),
|
||||
(LBZX xaddr:$src)>;
|
||||
def : Pat<(i32 (extload iaddr:$src, i1)),
|
||||
def : Pat<(extload iaddr:$src, i1),
|
||||
(LBZ iaddr:$src)>;
|
||||
def : Pat<(i32 (extload xaddr:$src, i1)),
|
||||
def : Pat<(extload xaddr:$src, i1),
|
||||
(LBZX xaddr:$src)>;
|
||||
def : Pat<(i32 (extload iaddr:$src, i8)),
|
||||
def : Pat<(extload iaddr:$src, i8),
|
||||
(LBZ iaddr:$src)>;
|
||||
def : Pat<(i32 (extload xaddr:$src, i8)),
|
||||
def : Pat<(extload xaddr:$src, i8),
|
||||
(LBZX xaddr:$src)>;
|
||||
def : Pat<(i32 (extload iaddr:$src, i16)),
|
||||
def : Pat<(extload iaddr:$src, i16),
|
||||
(LHZ iaddr:$src)>;
|
||||
def : Pat<(i32 (extload xaddr:$src, i16)),
|
||||
def : Pat<(extload xaddr:$src, i16),
|
||||
(LHZX xaddr:$src)>;
|
||||
def : Pat<(f64 (extload iaddr:$src, f32)),
|
||||
def : Pat<(extload iaddr:$src, f32),
|
||||
(FMRSD (LFS iaddr:$src))>;
|
||||
def : Pat<(f64 (extload xaddr:$src, f32)),
|
||||
def : Pat<(extload xaddr:$src, f32),
|
||||
(FMRSD (LFSX xaddr:$src))>;
|
||||
|
||||
include "PPCInstrAltivec.td"
|
||||
|
Loading…
Reference in New Issue
Block a user