]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips32: fix broken inline asm in helgrind/tests/tc08_hbl2.c
authorPetar Jovanovic <mips32r2@gmail.com>
Tue, 4 Sep 2018 21:20:39 +0000 (21:20 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Tue, 4 Sep 2018 21:20:39 +0000 (21:20 +0000)
Remove the duplicated L1xyzzy1main, and use local symbol to replace.

This fixes KDE #396906.

Patch by Hongxu Jia <hongxu.jia@windriver.com>

helgrind/tests/tc08_hbl2.c

index 2a757a00899c0d30a8ee23b867fa37d93839c28c..f660d82dd98fc9fb597164d8b5b20ee0fd8dd78c 100644 (file)
 #elif defined(PLAT_mips32_linux) || defined(PLAT_mips64_linux)
 #  define INC(_lval,_lqual)                         \
      __asm__ __volatile__ (                         \
-      "L1xyzzy1" _lqual":\n"                        \
+      "1:\n"                                        \
       "        move  $t0, %0\n"                     \
       "        ll    $t1, 0($t0)\n"                 \
       "        addiu $t1, $t1, 1\n"                 \
       "        sc    $t1, 0($t0)\n"                 \
-      "        beqz  $t1, L1xyzzy1" _lqual          \
+      "        beqz  $t1, 1b\n"                     \
       : /*out*/ : /*in*/ "r"(&(_lval))              \
       : /*trash*/ "t0", "t1", "memory"              \
         )