7.24 Inline assembler branches and labels in C and C++ code

Labels defined in inline assembly code can be used as targets for branches or C and C++ goto statements.

They must be followed by a colon, :, like C and C++ labels, and they must be defined within the same function that they are called from.

Labels defined in C and C++ can be used as targets by branch instructions in inline assembly code, in the form:

B{cond} label

For example:

int foo(int x, int y)
     SUBS x,x,y
     BEQ end
  return 1;
    return 0;
Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.