[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AMDGPU / branch-comment.s
blob32c82b672aef3381b5f2cb3db670e044c268c803
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.
7 loop_start_nosym:
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:
15 loop_end_nosym:
16 s_nop 0
18 keep_symbol:
19 s_nop 0
21 loop_start_sym:
22 s_branch loop_start_sym
23 // BIN-NOT: loop_start_sym:
24 // BIN: s_branch 65535 // 000000000010: BF82FFFF <keep_symbol+0x4>
26 s_branch loop_end_sym
27 // BIN: s_branch 0 // 000000000014: BF820000 <keep_symbol+0xc>
28 // BIN-NOT: loop_end_sym:
29 loop_end_sym:
30 s_nop 0
32 s_branch 65535
33 // BIN: s_branch 65535 // 00000000001C: BF82FFFF <keep_symbol+0x10>
35 s_branch 32768
36 // BIN: s_branch 32768 // 000000000020: BF828000 <keep_symbol+0xfffffffffffe0018>
38 s_branch 32767
39 // BIN: s_branch 32767 // 000000000024: BF827FFF <keep_symbol+0x20018>