diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-08-16 11:29:37 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-08-16 11:29:37 +0000 |
commit | 4fc7355a21e1fa838406e15459aaf54a58fcf909 (patch) | |
tree | 0198bef41de5fcb25d5bf89940247980f28334a7 /lib/Target/SystemZ/SystemZISelLowering.cpp | |
parent | e1b2af731e2a45344a7c502232f66c55cd746da0 (diff) | |
download | llvm-4fc7355a21e1fa838406e15459aaf54a58fcf909.tar.gz llvm-4fc7355a21e1fa838406e15459aaf54a58fcf909.tar.bz2 llvm-4fc7355a21e1fa838406e15459aaf54a58fcf909.tar.xz |
[SystemZ] Use MVST to implement strcpy and stpcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index 1fe54f1280..b22cc40155 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -1703,6 +1703,7 @@ const char *SystemZTargetLowering::getTargetNodeName(unsigned Opcode) const { OPCODE(MVC); OPCODE(CLC); OPCODE(STRCMP); + OPCODE(STPCPY); OPCODE(IPM); OPCODE(ATOMIC_SWAPW); OPCODE(ATOMIC_LOADW_ADD); @@ -2551,6 +2552,8 @@ EmitInstrWithCustomInserter(MachineInstr *MI, MachineBasicBlock *MBB) const { return emitMemMemWrapper(MI, MBB, SystemZ::CLC); case SystemZ::CLSTLoop: return emitStringWrapper(MI, MBB, SystemZ::CLST); + case SystemZ::MVSTLoop: + return emitStringWrapper(MI, MBB, SystemZ::MVST); default: llvm_unreachable("Unexpected instr type to insert"); } |