summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.cc
diff options
context:
space:
mode:
author Ulya Trafimovich <skvadrik@google.com> 2021-06-28 14:33:35 +0100
committer Ulyana Trafimovich <skvadrik@google.com> 2021-06-29 09:29:12 +0000
commit9b4e556fbd3ffc5686306d2cda7b8367dca0fdbe (patch)
treec315ab1ab39215d03d08c45d8a5800a51e205a16 /runtime/gc/reference_processor.cc
parent3044d7ab7bca4c35d5a74bd4a524d8aa7a466cf7 (diff)
x86: Add tests for CMPXCHG (without LOCK prefix).
For 8/32/64-bit variants LOCK CMPXCHG is implemented via CMPXCHG, so the tests for LOCK CMPXCHG cover CMPXCHG as well. But the 16-bit variant of LOCK CMPXCHG does not use CMPXCHG, because it has to reorder prefixes: the operand size override prefix must go before the LOCK prefix to match clang order. Therefore 16-bit CMPXCHG was not tested previously. Also, change helpers that convert `ByteRegister` to `Register` for testing to call the actual function rather than reimplement it. Bug: 65872996 Test: m test-art-host-gtest # new test cases for CMPXCHG Change-Id: I234b7a7e69da49be310b1e89c83447f8b11af93d
Diffstat (limited to 'runtime/gc/reference_processor.cc')
0 files changed, 0 insertions, 0 deletions