From: Marcin Koscielnicki Date: Sat, 2 Jul 2016 02:20:40 +0000 (+0000) Subject: [SystemZ] Move misplaced SystemZ::TDC to non-memory opcode range. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cbcb9eec3d1d491085fe5543383c009e44d5c03;p=llvm [SystemZ] Move misplaced SystemZ::TDC to non-memory opcode range. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274417 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index 8535f7a201f..70bae07035d 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -4670,6 +4670,7 @@ const char *SystemZTargetLowering::getTargetNodeName(unsigned Opcode) const { OPCODE(VISTR_CC); OPCODE(VSTRC_CC); OPCODE(VSTRCZ_CC); + OPCODE(TDC); OPCODE(ATOMIC_SWAPW); OPCODE(ATOMIC_LOADW_ADD); OPCODE(ATOMIC_LOADW_SUB); @@ -4684,7 +4685,6 @@ const char *SystemZTargetLowering::getTargetNodeName(unsigned Opcode) const { OPCODE(ATOMIC_CMP_SWAPW); OPCODE(LRV); OPCODE(STRV); - OPCODE(TDC); OPCODE(PREFETCH); } return nullptr; diff --git a/lib/Target/SystemZ/SystemZISelLowering.h b/lib/Target/SystemZ/SystemZISelLowering.h index f5a42f09222..8d21f2282b4 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.h +++ b/lib/Target/SystemZ/SystemZISelLowering.h @@ -278,6 +278,12 @@ enum NodeType : unsigned { VSTRC_CC, VSTRCZ_CC, + // Test Data Class. + // + // Operand 0: the value to test + // Operand 1: the bit mask + TDC, + // Wrappers around the inner loop of an 8- or 16-bit ATOMIC_SWAP or // ATOMIC_LOAD_. // @@ -324,12 +330,6 @@ enum NodeType : unsigned { // Operand 2: the type of store (i16, i32, i64) STRV, - // Test Data Class. - // - // Operand 0: the value to test - // Operand 1: the bit mask - TDC, - // Prefetch from the second operand using the 4-bit control code in // the first operand. The code is 1 for a load prefetch and 2 for // a store prefetch.