Sagar Thakur | ec65792 | 2017-02-15 10:48:11 +0000 | [diff] [blame] | 1 | ; RUN: llc -filetype=asm -o - -mtriple=mips-unknown-linux-gnu -function-sections < %s | FileCheck %s |
| 2 | ; RUN: llc -filetype=asm -o - -mtriple=mipsel-unknown-linux-gnu -function-sections < %s | FileCheck %s |
| 3 | ; RUN: llc -filetype=obj -o %t -mtriple=mips-unknown-linux-gnu -function-sections < %s |
| 4 | ; RUN: llvm-readobj -sections %t | FileCheck %s --check-prefix=CHECK-OBJ |
| 5 | ; RUN: llc -filetype=obj -o %t -mtriple=mipsel-unknown-linux-gnu -function-sections < %s |
| 6 | ; RUN: llvm-readobj -sections %t | FileCheck %s --check-prefix=CHECK-OBJ |
| 7 | ; RUN: llc -filetype=asm -o - -mtriple=mips64-unknown-linux-gnu -function-sections < %s | FileCheck %s |
| 8 | ; RUN: llc -filetype=asm -o - -mtriple=mips64el-unknown-linux-gnu -function-sections < %s | FileCheck %s |
| 9 | ; RUN: llc -filetype=obj -o %t -mtriple=mips64-unknown-linux-gnu -function-sections < %s |
| 10 | ; RUN: llvm-readobj -sections %t | FileCheck %s --check-prefix=CHECK-OBJ |
| 11 | ; RUN: llc -filetype=obj -o %t -mtriple=mips64el-unknown-linux-gnu -function-sections < %s |
| 12 | ; RUN: llvm-readobj -sections %t | FileCheck %s --check-prefix=CHECK-OBJ |
| 13 | |
| 14 | define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" { |
| 15 | ; CHECK: .section .text.foo,"ax",@progbits |
| 16 | ret i32 0 |
Dean Michael Berris | 01fd7c8 | 2017-09-14 07:08:23 +0000 | [diff] [blame] | 17 | ; CHECK: .section xray_instr_map,"awo",@progbits,foo,unique,1 |
Sagar Thakur | ec65792 | 2017-02-15 10:48:11 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | ; CHECK-OBJ: Section { |
| 21 | ; CHECK-OBJ: Name: xray_instr_map |
| 22 | |
| 23 | $bar = comdat any |
| 24 | define i32 @bar() nounwind noinline uwtable "function-instrument"="xray-always" comdat($bar) { |
| 25 | ; CHECK: .section .text.bar,"axG",@progbits,bar,comdat |
| 26 | ret i32 1 |
Dean Michael Berris | 01fd7c8 | 2017-09-14 07:08:23 +0000 | [diff] [blame] | 27 | ; CHECK: .section xray_instr_map,"aGwo",@progbits,bar,comdat,bar,unique,2 |
Sagar Thakur | ec65792 | 2017-02-15 10:48:11 +0000 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | ; CHECK-OBJ: Section { |
| 31 | ; CHECK-OBJ: Name: xray_instr_map |