1 ; RUN: llc -verify-machineinstrs -filetype=asm -o - -mtriple=x86_64-unknown-linux-gnu -function-sections < %s | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -filetype=obj -o %t -mtriple=x86_64-unknown-linux-gnu -function-sections < %s
3 ; RUN: llvm-objdump -triple x86_64-unknown-linux-gnu -disassemble-all %t | FileCheck %s --check-prefix=CHECK-OBJ
5 define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
6 ; CHECK: .section .text.foo,"ax",@progbits
8 ; CHECK: .section xray_instr_map,"awo",@progbits,foo,unique,1
12 define i32 @bar() nounwind noinline uwtable "function-instrument"="xray-always" comdat($bar) {
13 ; CHECK: .section .text.bar,"axG",@progbits,bar,comdat
15 ; CHECK: .section xray_instr_map,"aGwo",@progbits,bar,comdat,bar,unique,2
18 ; CHECK-OBJ: section xray_instr_map: