mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
do_cmpxchg8b(): fix incorrect inline assembly (wrong register name)
and updated expected result. n-i-bz. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15536
This commit is contained in:
parent
19a7577acd
commit
bda73f5b54
@ -165,7 +165,7 @@ void do_cmpxchg8b ( void )
|
||||
"xorq %%rax, %%rax" "\n\t"
|
||||
"xorq %%rdx, %%rdx" "\n\t"
|
||||
"movabsq $0x1122334455667788, %%rcx" "\n\t"
|
||||
"movabsq $0xffeeddccbbaa9988, %%rdx" "\n\t"
|
||||
"movabsq $0xffeeddccbbaa9988, %%rbx" "\n\t"
|
||||
"xacquire lock cmpxchg8b (%0)" "\n\t"
|
||||
"xrelease lock cmpxchg8b (%0)" "\n\t"
|
||||
: : "r"(&n) : "cc", "memory", "rax", "rdx", "rcx", "rdx"
|
||||
|
||||
@ -13,7 +13,7 @@ result for 'btc' is 57d555555f554d55
|
||||
result for 'btr' is 5555555555554515
|
||||
result for 'bts' is 57d555555f555d55
|
||||
result for 'cmpxchg' is 271831415927d459
|
||||
result for 'cmpxchg8b' is 5566778800000000
|
||||
result for 'cmpxchg8b' is 55667788bbaa9988
|
||||
result for 'xadd' is d1c2dbecb622f897
|
||||
result for 'xchg' is 5555555555555555
|
||||
result for 'xchg-no-lock' is 5555555555555555
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user