diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-01-03 01:16:37 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-01-03 01:16:37 +0000 |
commit | 4edc66b8de9672fcb0d8ef4059d2658dd351c6f0 (patch) | |
tree | c0dcc91c1c6d9c2ce38a2abcb0c60d3a4e9b9268 /clang/unittests/Format/FormatTestJava.cpp | |
parent | 4c059622d534eb4f14805985a4c3fe4a7580f8da (diff) | |
download | llvm-4edc66b8de9672fcb0d8ef4059d2658dd351c6f0.zip llvm-4edc66b8de9672fcb0d8ef4059d2658dd351c6f0.tar.gz llvm-4edc66b8de9672fcb0d8ef4059d2658dd351c6f0.tar.bz2 |
[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.
llvm-svn: 225106
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions