brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · e9cd045 Raw
32 lines · plain
1; RUN: llc -mtriple=mips-unknown-linux-gnu -function-sections < %s | FileCheck %s2; RUN: llc -mtriple=mipsel-unknown-linux-gnu -function-sections < %s | FileCheck %s3; RUN: llc -filetype=obj -o %t -mtriple=mips-unknown-linux-gnu -function-sections < %s4; RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CHECK-OBJ5; RUN: llc -filetype=obj -o %t -mtriple=mipsel-unknown-linux-gnu -function-sections < %s6; RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CHECK-OBJ7; RUN: llc -mtriple=mips64-unknown-linux-gnu -function-sections < %s | FileCheck %s8; RUN: llc -mtriple=mips64el-unknown-linux-gnu -function-sections < %s | FileCheck %s9; RUN: llc -filetype=obj -o %t -mtriple=mips64-unknown-linux-gnu -function-sections < %s10; RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CHECK-OBJ11; RUN: llc -filetype=obj -o %t -mtriple=mips64el-unknown-linux-gnu -function-sections < %s12; RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CHECK-OBJ13 14define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {15; CHECK: .section .text.foo,"ax",@progbits16  ret i32 017; CHECK: .section xray_instr_map,"ao",@progbits,foo{{$}}18}19 20; CHECK-OBJ: Section {21; CHECK-OBJ:   Name: xray_instr_map22 23$bar = comdat any24define i32 @bar() nounwind noinline uwtable "function-instrument"="xray-always" comdat($bar) {25; CHECK: .section .text.bar,"axG",@progbits,bar,comdat26  ret i32 127; CHECK: .section xray_instr_map,"aoG",@progbits,bar,bar,comdat{{$}}28}29 30; CHECK-OBJ: Section {31; CHECK-OBJ:   Name: xray_instr_map32