summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CountingFunctionInserter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-10-01 23:53:53 +0000
committerCraig Topper <craig.topper@intel.com>2017-10-01 23:53:53 +0000
commitc20b46da2f48a76f2c2affb290d8073e9ce2aab4 (patch)
treeeb6efb01957b9f774438ba0671e62d0fa845baa3 /llvm/lib/CodeGen/CountingFunctionInserter.cpp
parent00230604d399003acc2ac13c044535ae6b7768ee (diff)
downloadbcm5719-llvm-c20b46da2f48a76f2c2affb290d8073e9ce2aab4.tar.gz
bcm5719-llvm-c20b46da2f48a76f2c2affb290d8073e9ce2aab4.zip
[X86] Change register&memory TEST instructions from MRMSrcMem to MRMDstMem
Summary: Intel documentation shows the memory operand as the first operand. But we currently treat it as the second operand. Conceptually the order doesn't matter since it doesn't write memory. We have aliases to parse with the operands in either order and the isel matching is commutable. For the register&register form order does matter for the assembly parser. PR22995 was previously filed and fixed by changing the register&register form from MRMSrcReg to MRMDestReg to match gas. Ideally the memory form should match by using MRMDestMem. I believe this supercedes D38025 which was trying to switch the register&register form back to pre-PR22995. Reviewers: aymanmus, RKSimon, zvi Reviewed By: aymanmus Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D38120 llvm-svn: 314639
Diffstat (limited to 'llvm/lib/CodeGen/CountingFunctionInserter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud