[llvm-exegesis] Fix support for LEA64_32r.
authorClement Courbet <courbet@google.com>
Tue, 21 Jan 2020 10:58:51 +0000 (11:58 +0100)
committerClement Courbet <courbet@google.com>
Tue, 21 Jan 2020 12:58:23 +0000 (13:58 +0100)
commit87632b9e061863b96edb124e66b4f9b526e00438
tree986463eef875268be43fe852ec4a9dd2375c70f0
parent1f7b95d038e687fdaffdff55d32c16934f7bff60
[llvm-exegesis] Fix support for LEA64_32r.

Summary:
Add unit test to show the issue: We must select an *aliasing* output
register, not the exact register.

Reviewers: gchatelet

Subscribers: tschuett, mstojanovic, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73095
llvm/test/tools/llvm-exegesis/X86/latency-LEA64_32r.s [new file with mode: 0644]
llvm/tools/llvm-exegesis/lib/X86/Target.cpp