OSDN Git Service

[SystemZ] Use SRST to implement strlen and strnlen
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 16 Aug 2013 11:41:43 +0000 (11:41 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 16 Aug 2013 11:41:43 +0000 (11:41 +0000)
commit19262ee0725a09b7c621a3d2eb66ba1513ae932a
tree848fa9a49ad86171c7aa2a20873a01a5148bcdc3
parent4fc7355a21e1fa838406e15459aaf54a58fcf909
[SystemZ] Use SRST to implement strlen and strnlen

It would also make sense to use it for memchr; I'm working on that now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188547 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/Target/TargetLibraryInfo.h
include/llvm/Target/TargetSelectionDAGInfo.h
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZOperators.td
lib/Target/SystemZ/SystemZSelectionDAGInfo.cpp
lib/Target/SystemZ/SystemZSelectionDAGInfo.h
test/CodeGen/SystemZ/strlen-01.ll [new file with mode: 0644]
test/CodeGen/SystemZ/strlen-02.ll [new file with mode: 0644]
test/MC/Disassembler/SystemZ/insns.txt
test/MC/SystemZ/insn-good.s