46 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t4 5# RUN: %lld -e A %t -o %t.out --icf=all6# RUN: llvm-nm --numeric-sort %t.out | FileCheck %s7# RUN: %lld -e A %t -o %t2.out8# RUN: llvm-nm --numeric-sort %t2.out | FileCheck %s --check-prefix=NOICF9 10.text11 .globl D12D:13 mov $60, %rax14 retq15 16 .globl C17C:18 mov $60, %rax19 retq20 21 .globl B22B:23 mov $2, %rax24 retq25 26 .globl A27A:28 mov $42, %rax29 retq30 31.cg_profile A, B, 10032.cg_profile A, C, 4033.cg_profile C, D, 6134 35.subsections_via_symbols36 37# CHECK: [[#%.16x,A:]] T A38# CHECK-NEXT: [[#%.16x,A+8]] T C39# CHECK-NEXT: [[#%.16x,A+8]] T D40# CHECK-NEXT: [[#%.16x,A+16]] T B41 42# NOICF: [[#%.16x,A:]] T A43# NOICF-NEXT: [[#%.16x,A+8]] T B44# NOICF-NEXT: [[#%.16x,A+16]] T C45# NOICF-NEXT: [[#%.16x,A+24]] T D46