summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2017-03-02 21:07:59 +0000
committerGuozhi Wei <carrot@google.com>2017-03-02 21:07:59 +0000
commited28e742eed5efe338aa22d40559efe356ed193d (patch)
tree3e7064beaee0d94ec460afa5432d271aed9ac175 /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py
parentd9dc2829ea28a065115203ebc648b3be4846aae4 (diff)
downloadbcm5719-llvm-ed28e742eed5efe338aa22d40559efe356ed193d.tar.gz
bcm5719-llvm-ed28e742eed5efe338aa22d40559efe356ed193d.zip
[PPC] Fix code generation for bswap(int32) followed by store16
This patch fixes pr32063. Current code in PPCTargetLowering::PerformDAGCombine can transform bswap store into a single PPCISD::STBRX instruction. but it doesn't consider the case that the operand size of bswap may be larger than store size. When it occurs, we need 2 modifications, 1 For the last operand of PPCISD::STBRX, we should not use DAG.getValueType(N->getOperand(1).getValueType()), instead we should use cast<StoreSDNode>(N)->getMemoryVT(). 2 Before PPCISD::STBRX, we need to shift the original operand of bswap to the right side. Differential Revision: https://reviews.llvm.org/D30362 llvm-svn: 296811
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud