Bug 151012 - MacroAssemblerX86_64 should expose the full power of LEA
Summary: MacroAssemblerX86_64 should expose the full power of LEA
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 154319
  Show dependency treegraph
 
Reported: 2015-11-08 18:25 PST by Filip Pizlo
Modified: 2016-02-16 18:26 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2015-11-08 18:25:17 PST
It should be possible to do things like:

m_jit.leaPtr(MacroAssembler::BaseIndex(rax, rcx), rdx); // three-operand form of addPtr
m_jit.lea32(MacroAssembler::BaseIndex(rax, rcx), rdx); // three-operand form of add32
m_jit.add32(rax, rcx, rdx); // this uses lea32, or vice-versa. it's useful to have this alias
m_jit.leaPtr(MacroAssembler::BaseIndex(rax, rcx, ScaleEight, 42), rdx); // MEGA COMBO
Comment 1 Benjamin Poulain 2015-11-09 16:24:09 PST
Andreas, can you help?