Fix inline ASM to use local labels for jump operations

Non-local ASM labels break for this test when compiled with clang.

Change-Id: I15bd250a991c3b03bbc88459a6358090bd157444
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
bb10
Daniel Smith 2019-01-16 16:07:28 +01:00 committed by Daniel Smith
parent e0e22d56ac
commit 991c498905
1 changed files with 2 additions and 2 deletions

View File

@ -68,9 +68,9 @@ void tst_BenchlibCallgrind::twoHundredMillionInstructions()
QBENCHMARK {
__asm__ __volatile__(
"mov $100000000,%%eax \n"
"LOOPTOP: \n"
"1: \n"
"dec %%eax \n"
"jnz LOOPTOP \n"
"jnz 1b \n"
: /* no output */
: /* no input */
: /* clobber */ "eax"