summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SOPInstructions.td
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-11-04 13:06:34 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-11-04 13:06:34 +0000
commit2d2d33f1dc4c976ab41ab5fc814f2aca7fdd99d1 (patch)
treeb1336f93f40986897fd9aa4af80101e2bef34751 /llvm/lib/Target/AMDGPU/SOPInstructions.td
parent050f958519c8c3d825c27777c0bd6c6df58798d9 (diff)
downloadbcm5719-llvm-2d2d33f1dc4c976ab41ab5fc814f2aca7fdd99d1.tar.gz
bcm5719-llvm-2d2d33f1dc4c976ab41ab5fc814f2aca7fdd99d1.zip
Revert "AMDGPU: Add VI i16 support"
This reverts commit r285939 and r285948. These broke some conformance tests. llvm-svn: 285995
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SOPInstructions.td')
-rw-r--r--llvm/lib/Target/AMDGPU/SOPInstructions.td37
1 files changed, 1 insertions, 36 deletions
diff --git a/llvm/lib/Target/AMDGPU/SOPInstructions.td b/llvm/lib/Target/AMDGPU/SOPInstructions.td
index 2486fbf3edf..e38a11db9ac 100644
--- a/llvm/lib/Target/AMDGPU/SOPInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SOPInstructions.td
@@ -879,7 +879,7 @@ def : Pat <
(i64 (ctpop i64:$src)),
(i64 (REG_SEQUENCE SReg_64,
(i32 (COPY_TO_REGCLASS (S_BCNT1_I32_B64 $src), SReg_32)), sub0,
- (S_MOV_B32 (i32 0)), sub1))
+ (S_MOV_B32 0), sub1))
>;
def : Pat <
@@ -887,18 +887,6 @@ def : Pat <
(S_ABS_I32 $x)
>;
-def : Pat <
- (i16 imm:$imm),
- (S_MOV_B32 imm:$imm)
->;
-
-// Same as a 32-bit inreg
-def : Pat<
- (i32 (sext i16:$src)),
- (S_SEXT_I32_I16 $src)
->;
-
-
//===----------------------------------------------------------------------===//
// SOP2 Patterns
//===----------------------------------------------------------------------===//
@@ -910,29 +898,6 @@ def : Pat <
(S_ADD_U32 $src0, $src1)
>;
-// FIXME: We need to use COPY_TO_REGCLASS to work-around the fact that
-// REG_SEQUENCE patterns don't support instructions with multiple
-// outputs.
-def : Pat<
- (i64 (zext i16:$src)),
- (REG_SEQUENCE SReg_64,
- (i32 (COPY_TO_REGCLASS (S_AND_B32 $src, (S_MOV_B32 (i32 0xffff))), SGPR_32)), sub0,
- (S_MOV_B32 (i32 0)), sub1)
->;
-
-def : Pat <
- (i64 (sext i16:$src)),
- (REG_SEQUENCE SReg_64, (i32 (S_SEXT_I32_I16 $src)), sub0,
- (i32 (COPY_TO_REGCLASS (S_ASHR_I32 (i32 (S_SEXT_I32_I16 $src)), (S_MOV_B32 (i32 31))), SGPR_32)), sub1)
->;
-
-def : Pat<
- (i32 (zext i16:$src)),
- (S_AND_B32 (S_MOV_B32 (i32 0xffff)), $src)
->;
-
-
-
//===----------------------------------------------------------------------===//
// SOPP Patterns
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud