mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
[PowerPC] Add support for the CMPB instruction
Newer POWER cores, and the A2, support the cmpb instruction. This instruction compares its operands, treating each of the 8 bytes in the GPRs separately, returning a 'mask' result of 0 (for false) or -1 (for true) in each byte. Code generation support is added, in the form of a PPCISelDAGToDAG DAG-preprocessing routine, that recognizes patterns close to what the instruction computes (either exactly, or related by a constant masking operation), and generates the cmpb instruction (along with any necessary constant masking operation). This can be expanded if use cases arise. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -108,6 +108,7 @@ void PPCSubtarget::initializeEnvironment() {
|
||||
HasFPCVT = false;
|
||||
HasISEL = false;
|
||||
HasPOPCNTD = false;
|
||||
HasCMPB = false;
|
||||
HasLDBRX = false;
|
||||
IsBookE = false;
|
||||
HasOnlyMSYNC = false;
|
||||
|
Reference in New Issue
Block a user