From 86a791284ae473a8820144be77ce92db8bd3028e Mon Sep 17 00:00:00 2001 From: Kalle Raiskila Date: Wed, 18 Aug 2010 10:04:39 +0000 Subject: Remove all traces of v2[i,f]32 on SPU. The "half vectors" are now widened to full size by the legalizer. The only exception is in parameter passing, where half vectors are expanded. This causes changes to some dejagnu tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111360 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CellSPU/SPUInstrInfo.td | 70 -------------------------------------- 1 file changed, 70 deletions(-) (limited to 'lib/Target/CellSPU/SPUInstrInfo.td') diff --git a/lib/Target/CellSPU/SPUInstrInfo.td b/lib/Target/CellSPU/SPUInstrInfo.td index ff776fbe23..ca0fe00e37 100644 --- a/lib/Target/CellSPU/SPUInstrInfo.td +++ b/lib/Target/CellSPU/SPUInstrInfo.td @@ -62,9 +62,6 @@ let canFoldAsLoad = 1 in { def v4f32: LoadDFormVec; def v2f64: LoadDFormVec; - def v2i32: LoadDFormVec; - def v2f32: LoadDFormVec; - def r128: LoadDForm; def r64: LoadDForm; def r32: LoadDForm; @@ -97,9 +94,6 @@ let canFoldAsLoad = 1 in { def v4f32: LoadAFormVec; def v2f64: LoadAFormVec; - def v2i32: LoadAFormVec; - def v2f32: LoadAFormVec; - def r128: LoadAForm; def r64: LoadAForm; def r32: LoadAForm; @@ -132,9 +126,6 @@ let canFoldAsLoad = 1 in { def v4f32: LoadXFormVec; def v2f64: LoadXFormVec; - def v2i32: LoadXFormVec; - def v2f32: LoadXFormVec; - def r128: LoadXForm; def r64: LoadXForm; def r32: LoadXForm; @@ -183,9 +174,6 @@ multiclass StoreDForms def v4f32: StoreDFormVec; def v2f64: StoreDFormVec; - def v2i32: StoreDFormVec; - def v2f32: StoreDFormVec; - def r128: StoreDForm; def r64: StoreDForm; def r32: StoreDForm; @@ -216,9 +204,6 @@ multiclass StoreAForms def v4f32: StoreAFormVec; def v2f64: StoreAFormVec; - def v2i32: StoreAFormVec; - def v2f32: StoreAFormVec; - def r128: StoreAForm; def r64: StoreAForm; def r32: StoreAForm; @@ -251,9 +236,6 @@ multiclass StoreXForms def v4f32: StoreXFormVec; def v2f64: StoreXFormVec; - def v2i32: StoreXFormVec; - def v2f32: StoreXFormVec; - def r128: StoreXForm; def r64: StoreXForm; def r32: StoreXForm; @@ -613,7 +595,6 @@ class ARegInst: multiclass AddInstruction { def v4i32: AVecInst; def v16i8: AVecInst; - def v2i32: AVecInst; def r32: ARegInst; } @@ -678,11 +659,6 @@ def SFvec : RRForm<0b00000010000, (outs VECREG:$rT), "sf\t$rT, $rA, $rB", IntegerOp, [(set (v4i32 VECREG:$rT), (sub (v4i32 VECREG:$rB), (v4i32 VECREG:$rA)))]>; -def SF2vec : RRForm<0b00000010000, (outs VECREG:$rT), - (ins VECREG:$rA, VECREG:$rB), - "sf\t$rT, $rA, $rB", IntegerOp, - [(set (v2i32 VECREG:$rT), (sub (v2i32 VECREG:$rB), (v2i32 VECREG:$rA)))]>; - def SFr32 : RRForm<0b00000010000, (outs R32C:$rT), (ins R32C:$rA, R32C:$rB), "sf\t$rT, $rA, $rB", IntegerOp, @@ -841,10 +817,6 @@ def MPYUv4i32: MPYUInst<(outs VECREG:$rT), (ins VECREG:$rA, VECREG:$rB), [/* no pattern */]>; -def MPYUv2i32: - MPYUInst<(outs VECREG:$rT), (ins VECREG:$rA, VECREG:$rB), - [/* no pattern */]>; - def MPYUr16: MPYUInst<(outs R32C:$rT), (ins R16C:$rA, R16C:$rB), [(set R32C:$rT, (mul (zext R16C:$rA), (zext R16C:$rB)))]>; @@ -924,10 +896,6 @@ def MPYHv4i32: MPYHInst<(outs VECREG:$rT), (ins VECREG:$rA, VECREG:$rB), [/* no pattern */]>; -def MPYHv2i32: - MPYHInst<(outs VECREG:$rT), (ins VECREG:$rA, VECREG:$rB), - [/* no pattern */]>; - def MPYHr32: MPYHInst<(outs R32C:$rT), (ins R32C:$rA, R32C:$rB), [/* no pattern */]>; @@ -1517,13 +1485,6 @@ multiclass BitwiseOr def f32_v4f32: ORExtractElt; def f64_v2f64: ORExtractElt; - // half <-> full vector mappings - def v2i32_v4i32: ORCvtVecVec; - def v4i32_v2i32: ORCvtVecVec; - def v2f32_v4f32: ORCvtVecVec; - def v4f32_v2f32: ORCvtVecVec; - - // Conversion from vector to GPRC def i128_vec: ORCvtVecGPRC; @@ -1591,18 +1552,12 @@ def : Pat<(v8i16 (SPUprefslot2vec R16C:$rA)), def : Pat<(v4i32 (SPUprefslot2vec R32C:$rA)), (ORv4i32_i32 R32C:$rA)>; -def : Pat<(v2i32 (SPUprefslot2vec R32C:$rA)), - (ORv4i32_i32 R32C:$rA)>; - def : Pat<(v2i64 (SPUprefslot2vec R64C:$rA)), (ORv2i64_i64 R64C:$rA)>; def : Pat<(v4f32 (SPUprefslot2vec R32FP:$rA)), (ORv4f32_f32 R32FP:$rA)>; -def : Pat<(v2f32 (SPUprefslot2vec R32FP:$rA)), - (ORv4f32_f32 R32FP:$rA)>; - def : Pat<(v2f64 (SPUprefslot2vec R64FP:$rA)), (ORv2f64_f64 R64FP:$rA)>; @@ -1618,33 +1573,15 @@ def : Pat<(SPUvec2prefslot (v8i16 VECREG:$rA)), def : Pat<(SPUvec2prefslot (v4i32 VECREG:$rA)), (ORi32_v4i32 VECREG:$rA)>; -def : Pat<(SPUvec2prefslot (v2i32 VECREG:$rA)), - (ORi32_v4i32 VECREG:$rA)>; - def : Pat<(SPUvec2prefslot (v2i64 VECREG:$rA)), (ORi64_v2i64 VECREG:$rA)>; def : Pat<(SPUvec2prefslot (v4f32 VECREG:$rA)), (ORf32_v4f32 VECREG:$rA)>; -def : Pat<(SPUvec2prefslot (v2f32 VECREG:$rA)), - (ORf32_v4f32 VECREG:$rA)>; - def : Pat<(SPUvec2prefslot (v2f64 VECREG:$rA)), (ORf64_v2f64 VECREG:$rA)>; -// Conversions between 64 bit and 128 bit vectors. - -def : Pat<(v4i32 (SPUhalf2vec (v2i32 VECREG:$rA))), - (ORv4i32_v2i32 (v2i32 VECREG:$rA))>; -def : Pat<(v4f32 (SPUhalf2vec (v2f32 VECREG:$rA))), - (ORv4f32_v2f32 (v2f32 VECREG:$rA))>; - -def : Pat<(v2i32 (SPUvec2half (v4i32 VECREG:$rA))), - (ORv2i32_v4i32 VECREG:$rA)>; -def : Pat<(v2f32 (SPUvec2half (v4f32 VECREG:$rA))), - (ORv2f32_v4f32 VECREG:$rA)>; - // Load Register: This is an assembler alias for a bitwise OR of a register // against itself. It's here because it brings some clarity to assembly // language output. @@ -2177,15 +2114,11 @@ multiclass ShuffleBytes def v8i16_m32 : SHUFBVecInst; def v4i32 : SHUFBVecInst; def v4i32_m32 : SHUFBVecInst; - def v2i32 : SHUFBVecInst; - def v2i32_m32 : SHUFBVecInst; def v2i64 : SHUFBVecInst; def v2i64_m32 : SHUFBVecInst; def v4f32 : SHUFBVecInst; def v4f32_m32 : SHUFBVecInst; - def v2f32 : SHUFBVecInst; - def v2f32_m32 : SHUFBVecInst; def v2f64 : SHUFBVecInst; def v2f64_m32 : SHUFBVecInst; @@ -3928,7 +3861,6 @@ class FAVecInst: multiclass SFPAdd { def v4f32: FAVecInst; - def v2f32: FAVecInst; def f32: FAInst<(outs R32FP:$rT), (ins R32FP:$rA, R32FP:$rB), [(set R32FP:$rT, (fadd R32FP:$rA, R32FP:$rB))]>; } @@ -3947,7 +3879,6 @@ class FSVecInst: multiclass SFPSub { def v4f32: FSVecInst; - def v2f32: FSVecInst; def f32: FSInst<(outs R32FP:$rT), (ins R32FP:$rA, R32FP:$rB), [(set R32FP:$rT, (fsub R32FP:$rA, R32FP:$rB))]>; } @@ -3967,7 +3898,6 @@ class FMVecInst: multiclass SFPMul { def v4f32: FMVecInst; - def v2f32: FMVecInst; def f32: FMInst<(outs R32FP:$rT), (ins R32FP:$rA, R32FP:$rB), [(set R32FP:$rT, (fmul R32FP:$rA, R32FP:$rB))]>; } -- cgit v1.2.3-18-g5258