summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/cmpb.ll
Commit message (Collapse)AuthorAgeFilesLines
* [PowerPC] Enable printing instructions using aliasesHal Finkel2015-04-231-3/+3
| | | | | | | | | | | TableGen had been nicely generating code to print a number of instructions using shorter aliases (and PowerPC has plenty of short mnemonics), but we were not calling it. For some of the aliases we support in the parser, TableGen can't infer the "inverse" alias relationship, so there is still more to do. Thus, after some hours of updating test cases... llvm-svn: 235616
* [PowerPC] Add support for the CMPB instructionHal Finkel2015-01-031-0/+204
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. llvm-svn: 225106
OpenPOWER on IntegriCloud