// This checks that we emit a REX prefix that includes the SIB index when // appropriate. // // This test case is a little tricky. On Win64, the arg registers are rcx, rdx, // r8, r9; so we want to use local 2 or 3 as the index. But on other x64 // platforms, the arg registers are rdi, rsi, rdx, rcx, r8, r9; so we want to // use local 4 or 5 as the index. This test uses both, and then looks for a hit // on the REX byte which must be 0x43. Before the bugfix, since the index // register was ignored, the byte would always be 0x41, as it will continue to // be for the access that does not use an extended register. // // The test is brittle: the register allocator can easily make a mess of it. // But for now it works.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.