From: Julian Seward Date: Mon, 28 Mar 2011 08:37:19 +0000 (+0000) Subject: Fix broken inline asm in these tests. Fixes #256726. X-Git-Tag: svn/VALGRIND_3_7_0~565 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1645ee8eb4d64a5ddc8aa0535e969105f4f2a7;p=thirdparty%2Fvalgrind.git Fix broken inline asm in these tests. Fixes #256726. (Jakub Jelinek, jakub@redhat.com) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11669 --- diff --git a/helgrind/tests/tc07_hbl1.c b/helgrind/tests/tc07_hbl1.c index 64a5486c7f..2834c5d8b5 100644 --- a/helgrind/tests/tc07_hbl1.c +++ b/helgrind/tests/tc07_hbl1.c @@ -48,23 +48,23 @@ || defined(PLAT_ppc32_aix5) || defined(PLAT_ppc64_aix5) # define INC(_lval,_lqual) \ __asm__ __volatile__( \ - "L1xyzzy1" _lqual ":\n" \ + "1:\n" \ " lwarx 15,0,%0\n" \ " addi 15,15,1\n" \ " stwcx. 15,0,%0\n" \ - " bne- L1xyzzy1" _lqual \ + " bne- 1b\n" \ : /*out*/ : /*in*/ "b"(&(_lval)) \ : /*trash*/ "r15", "cr0", "memory" \ ) #elif defined(PLAT_arm_linux) # define INC(_lval,_lqual) \ __asm__ __volatile__( \ - "L1xyzzy1" _lqual ":\n" \ + "1:\n" \ " ldrex r8, [%0, #0]\n" \ " add r8, r8, #1\n" \ " strex r9, r8, [%0, #0]\n" \ " cmp r9, #0\n" \ - " bne L1xyzzy1" _lqual \ + " bne 1b\n" \ : /*out*/ : /*in*/ "r"(&(_lval)) \ : /*trash*/ "r8", "r9", "cc", "memory" \ ); diff --git a/helgrind/tests/tc08_hbl2.c b/helgrind/tests/tc08_hbl2.c index 36829d55ac..7821cde2cd 100644 --- a/helgrind/tests/tc08_hbl2.c +++ b/helgrind/tests/tc08_hbl2.c @@ -65,23 +65,23 @@ || defined(PLAT_ppc32_aix5) || defined(PLAT_ppc64_aix5) # define INC(_lval,_lqual) \ __asm__ __volatile__( \ - "L1xyzzy1" _lqual ":\n" \ + "1:\n" \ " lwarx 15,0,%0\n" \ " addi 15,15,1\n" \ " stwcx. 15,0,%0\n" \ - " bne- L1xyzzy1" _lqual \ + " bne- 1b\n" \ : /*out*/ : /*in*/ "b"(&(_lval)) \ : /*trash*/ "r15", "cr0", "memory" \ ) #elif defined(PLAT_arm_linux) # define INC(_lval,_lqual) \ __asm__ __volatile__( \ - "L1xyzzy1" _lqual ":\n" \ + "1:\n" \ " ldrex r8, [%0, #0]\n" \ " add r8, r8, #1\n" \ " strex r9, r8, [%0, #0]\n" \ " cmp r9, #0\n" \ - " bne L1xyzzy1" _lqual \ + " bne 1b\n" \ : /*out*/ : /*in*/ "r"(&(_lval)) \ : /*trash*/ "r8", "r9", "cc", "memory" \ );