1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=fiji
-filetype
=obj
%s | llvm-objcopy
-S
-K keep_symbol
- | llvm-objdump
-disassemble
-mcpu
=fiji
- | FileCheck
%s
--check-prefix
=BIN
3 // FIXME
: Immediate operands to sopp_br instructions are currently scaled by
a
4 // factor of
4, are unsigned
, are always PC relative
, don
't accept most
5 // expressions, and are not range checked.
8 s_branch loop_start_nosym
9 // BIN-NOT: loop_start_nosym:
10 // BIN: s_branch 65535 // 000000000000: BF82FFFF <.text>
12 s_branch loop_end_nosym
13 // BIN: s_branch 0 // 000000000004: BF820000 <.text+0x8>
14 // BIN-NOT: loop_end_nosym:
22 s_branch loop_start_sym
23 // BIN-NOT: loop_start_sym:
24 // BIN: s_branch 65535 // 000000000010: BF82FFFF <keep_symbol+0x4>
27 // BIN: s_branch 0 // 000000000014: BF820000 <keep_symbol+0xc>
28 // BIN-NOT: loop_end_sym:
33 // BIN: s_branch 65535 // 00000000001C: BF82FFFF <keep_symbol+0x10>
36 // BIN: s_branch 32768 // 000000000020: BF828000 <keep_symbol+0xfffffffffffe0018>
39 // BIN: s_branch 32767 // 000000000024: BF827FFF <keep_symbol+0x20018>