1// RUN: llvm-mc -arch=amdgcn -mcpu=fiji -filetype=obj %s | llvm-objcopy -S -K keep_symbol - | llvm-objdump -d --mcpu=fiji - | FileCheck %s --check-prefix=BIN 2 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. 6 7loop_start_nosym: 8s_branch loop_start_nosym 9// BIN-NOT: loop_start_nosym: 10// BIN: s_branch 65535 // 000000000000: BF82FFFF <.text> 11 12s_branch loop_end_nosym 13// BIN: s_branch 0 // 000000000004: BF820000 <.text+0x8> 14// BIN-NOT: loop_end_nosym: 15loop_end_nosym: 16 s_nop 0 17 18keep_symbol: 19 s_nop 0 20 21loop_start_sym: 22s_branch loop_start_sym 23// BIN-NOT: loop_start_sym: 24// BIN: s_branch 65535 // 000000000010: BF82FFFF <keep_symbol+0x4> 25 26s_branch loop_end_sym 27// BIN: s_branch 0 // 000000000014: BF820000 <keep_symbol+0xc> 28// BIN-NOT: loop_end_sym: 29loop_end_sym: 30 s_nop 0 31 32s_branch 65535 33// BIN: s_branch 65535 // 00000000001C: BF82FFFF <keep_symbol+0x10> 34 35s_branch 32768 36// BIN: s_branch 32768 // 000000000020: BF828000 <keep_symbol+0xfffffffffffe0018> 37 38s_branch 32767 39// BIN: s_branch 32767 // 000000000024: BF827FFF <keep_symbol+0x20018> 40