diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-04-02 15:36:30 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-04-02 15:36:30 +0000 |
commit | f76fe454268d661cb31018d9e46a6df467bb22b9 (patch) | |
tree | 39dd5da04e1ba1b6dc2914072cc5c9a4dbc06b5e /lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py | |
parent | 0b9527119f7e7678b9bae87aac4be7a40e468a8c (diff) | |
download | bcm5719-llvm-f76fe454268d661cb31018d9e46a6df467bb22b9.tar.gz bcm5719-llvm-f76fe454268d661cb31018d9e46a6df467bb22b9.zip |
[SystemZ] Improve instruction selection of 64 bit shifts and rotates.
For shift and rotate instructions that only use the last 6 bits of the shift
amount, a shift amount of (x*64-s) can be substituted with (-s). This saves
one instruction and a register:
lhi %r1, 64
sr %r1, %r3
sllg %r2, %r2, 0(%r1)
=>
lcr %r1, %r3
sllg %r2, %r2, 0(%r1)
Review: Ulrich Weigand
llvm-svn: 357481
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/TestCommandInterpreterAPI.py')
0 files changed, 0 insertions, 0 deletions