The cmpxchg instruction already sets ZF for comparing the return value vs the expected value. So there is no need to compare eq again. Lots of pexes-in-the-wild have this pattern. Some compare against a constant, some compare against a variable. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3882 R=stichnot@chromium.org Review URL: https://codereview.chromium.org/413903002
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| crosstest.py | Loading commit data... | |
| mem_intrin.cpp | Loading commit data... | |
| mem_intrin.h | Loading commit data... | |
| mem_intrin_main.cpp | Loading commit data... | |
| runtests.sh | Loading commit data... | |
| simple_loop.c | Loading commit data... | |
| simple_loop_main.c | Loading commit data... | |
| test_arith.cpp | Loading commit data... | |
| test_arith.def | Loading commit data... | |
| test_arith.h | Loading commit data... | |
| test_arith_frem.ll | Loading commit data... | |
| test_arith_main.cpp | Loading commit data... | |
| test_arith_sqrt.ll | Loading commit data... | |
| test_bitmanip.cpp | Loading commit data... | |
| test_bitmanip.def | Loading commit data... | |
| test_bitmanip.h | Loading commit data... | |
| test_bitmanip_intrin.ll | Loading commit data... | |
| test_bitmanip_main.cpp | Loading commit data... | |
| test_cast.cpp | Loading commit data... | |
| test_cast.h | Loading commit data... | |
| test_cast_main.cpp | Loading commit data... | |
| test_cast_to_u1.ll | Loading commit data... | |
| test_fcmp.def | Loading commit data... | |
| test_fcmp.pnacl.ll | Loading commit data... | |
| test_fcmp_main.cpp | Loading commit data... | |
| test_global.cpp | Loading commit data... | |
| test_global.h | Loading commit data... | |
| test_global_main.cpp | Loading commit data... | |
| test_icmp.cpp | Loading commit data... | |
| test_icmp.def | Loading commit data... | |
| test_icmp.h | Loading commit data... | |
| test_icmp_i1vec.ll | Loading commit data... | |
| test_icmp_main.cpp | Loading commit data... | |
| test_select.h | Loading commit data... | |
| test_select.ll | Loading commit data... | |
| test_select_main.cpp | Loading commit data... | |
| test_stacksave.c | Loading commit data... | |
| test_stacksave.h | Loading commit data... | |
| test_stacksave_main.c | Loading commit data... | |
| test_sync_atomic.cpp | Loading commit data... | |
| test_sync_atomic.def | Loading commit data... | |
| test_sync_atomic.h | Loading commit data... | |
| test_sync_atomic_main.cpp | Loading commit data... | |
| test_vector_ops.def | Loading commit data... | |
| test_vector_ops.h | Loading commit data... | |
| test_vector_ops.ll | Loading commit data... | |
| test_vector_ops_main.cpp | Loading commit data... | |
| vectors.def | Loading commit data... | |
| vectors.h | Loading commit data... |