diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-10-01 13:02:28 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-10-01 13:02:28 +0000 |
commit | 4c8feae136bbb54ba09d8f8dc7e61714270f7cd5 (patch) | |
tree | 2f2a7a5e5d8a4d6f3d8f998ec3221d6ef640004c /lib/Target/SystemZ/MCTargetDesc | |
parent | 441aeddd56d000ff77460586961a523e41edd205 (diff) | |
download | llvm-4c8feae136bbb54ba09d8f8dc7e61714270f7cd5.tar.gz llvm-4c8feae136bbb54ba09d8f8dc7e61714270f7cd5.tar.bz2 llvm-4c8feae136bbb54ba09d8f8dc7e61714270f7cd5.tar.xz |
[SystemZ] Add patterns to load a constant into a high word (IIHF)
Similar to low words, we can use the shorter LLIHL and LLIHH if it turns
out that the other half of the GR64 isn't live.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/MCTargetDesc')
-rw-r--r-- | lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h b/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h index 17e0e87b91..97e325b984 100644 --- a/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h +++ b/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.h @@ -62,6 +62,11 @@ namespace SystemZMC { inline unsigned getRegAsGR32(unsigned Reg) { return GR32Regs[getFirstReg(Reg)]; } + + // Return the given register as a high GR32. + inline unsigned getRegAsGRH32(unsigned Reg) { + return GRH32Regs[getFirstReg(Reg)]; + } } MCCodeEmitter *createSystemZMCCodeEmitter(const MCInstrInfo &MCII, |