xref: /llvm-project/llvm/docs/AMDGPU/gfx9_label.rst (revision d8ac03f15e81517c19a2a07d078b24498ec23380)
1..
2    **************************************************
3    *                                                *
4    *   Automatically generated file, do not edit!   *
5    *                                                *
6    **************************************************
7
8.. _amdgpu_synid_gfx9_label:
9
10label
11=====
12
13A branch target, which is a 16-bit signed integer treated as a PC-relative dword offset.
14
15This operand may be specified as one of the following:
16
17* An :ref:`integer_number<amdgpu_synid_integer_number>` or an :ref:`absolute_expression<amdgpu_synid_absolute_expression>`. The value must be in the range from -32768 to 65535.
18* A :ref:`symbol<amdgpu_synid_symbol>` (for example, a label) representing a relocatable address in the same compilation unit where it is referred from. The value is handled as a 16-bit PC-relative dword offset to be resolved by a linker.
19
20Examples:
21
22.. parsed-literal::
23
24  offset = 30
25  label_1:
26  label_2 = . + 4
27
28  s_branch 32
29  s_branch offset + 2
30  s_branch label_1
31  s_branch label_2
32  s_branch label_3
33  s_branch label_4
34
35  label_3 = label_2 + 4
36  label_4:
37