brintos

brintos / llvm-project-archived public Read only

0
0
Text · 705 B · 12099b8 Raw
39 lines · plain
1# REQUIRES: amdgpu2# RUN: split-file %s %t3# RUN: llvm-mc -filetype=obj -triple=amdgcn--amdhsa -mcpu=fiji %t/asm -o %t.o4# RUN: ld.lld %t.o -o %t/out --script %t/script5# RUN: llvm-objdump -d %t/out | FileCheck %s6 7 8#--- script9SECTIONS {10  . = 0x1000;11  .text.likely : { *(.text.likely) }12  . = 0x2000;13  .text : { *(.text) }14  . = 0x3000;15  .text.unlikely : { *(.text.unlikely) }16}17 18 19#--- asm20.section .text.likely21hot1:22  s_add_i32 s15, s15, 123hot2:24  s_add_i32 s13, s13, 125.text26foo:27  s_branch cold228  s_branch hot229.section .text.unlikely30cold1:31  s_add_i32 s15, s15, 132  s_add_i32 s14, s14, 133cold2:34  s_add_i32 s13, s13, 135 36# CHECK:  <foo>37# CHECK-NEXT: s_branch 102538# CHECK-NEXT: s_branch 6451139