]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Hand assemble cmpxchg16b as old assemblers don't understand it.
authorTom Hughes <tom@compton.nu>
Wed, 23 Aug 2006 08:27:03 +0000 (08:27 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 23 Aug 2006 08:27:03 +0000 (08:27 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6009

none/tests/amd64/bug127521-64.c

index db815cd63459f7ddc431fbae119888bad1d3d72d..fefc9815cf29732c27cdfa70bac26f5d917beed8 100644 (file)
@@ -83,7 +83,7 @@ void do_cmpxchg16b ( /*OUT*/
         "\tmovq 16(%%r11),%%rcx\n"
         "\tmovq 24(%%r11),%%rbx\n"
         "\tmovq 32(%%r11),%%r10\n"
-        "\tlock cmpxchg16b (%%r10)\n"
+        "\t.byte 0xf0, 0x49, 0x0f, 0xc7, 0x0a\n" /* lock cmpxchg16b (%%r10) */
         "\tmovabsq $0,%%r10\n"
         "\tsetz %%r10b\n"
         "\tmovq %%r10,40(%%r11)\n"