From 4e85e64007e8561558e7d3e05a59cbfcc48d5bcc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 20 Jun 2006 00:39:56 +0000 Subject: [PATCH] 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 --- lib/Target/PowerPC/PPCInstrAltivec.td | 22 +++++++++++----------- lib/Target/PowerPC/PPCInstrInfo.td | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/Target/PowerPC/PPCInstrAltivec.td b/lib/Target/PowerPC/PPCInstrAltivec.td index bdb9642bd14..ab06f3e6440 100644 --- a/lib/Target/PowerPC/PPCInstrAltivec.td +++ b/lib/Target/PowerPC/PPCInstrAltivec.td @@ -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)>; diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 5b9502152dc..943885feac6 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -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" -- 2.34.1