[PPC64] Add support for the ICBT instruction on POWER8.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 14 Jan 2015 20:17:10 +0000 (20:17 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 14 Jan 2015 20:17:10 +0000 (20:17 +0000)
commit11abe69e9857390a035470c20534b8e5ac4d479e
tree181a0e011c0a4dca8687ad81a7940cc1540670b5
parent0a2caa143f0233bcf1ba04a358f3e21a095035e0
[PPC64] Add support for the ICBT instruction on POWER8.

Patch by Kit Barton.

Support for the ICBT instruction is currently present, but limited to
embedded processors. This change adds a new FeatureICBT that can be used
to identify whether the ICBT instruction is available on a specific processor.

Two new tests are added:
 * Positive test to ensure the icbt instruction is present when using
-mcpu=pwr8
 * Negative test to ensure the icbt instruction is not generated when
using -mcpu=pwr7

Both test cases use the Prefetch opcode in LLVM. They are based on the
ppc64-prefetch.ll test case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226033 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/ppc64-icbt-pwr7.ll [new file with mode: 0644]
test/CodeGen/PowerPC/ppc64-icbt-pwr8.ll [new file with mode: 0644]