Files
clang-p2996/llvm/test/CodeGen/X86/basic-block-sections-labels-empty-function.ll
Rahman Lavaee 34653a0a8a [Propeller] Change SHT_LLVM_BB_ADDR_MAP version to 2.
D100808 implemented the new version, but kept version 1 as the
emitted version. This patch changes the version to 2 and updates the
codegen tests.

Differential Revision: https://reviews.llvm.org/D139799
2023-02-10 11:40:57 -08:00

24 lines
588 B
LLVM

;; Verify that the BB address map is not emitted for empty functions.
; RUN: llc < %s -mtriple=x86_64 -basic-block-sections=labels | FileCheck %s
define void @empty_func() {
entry:
unreachable
}
; CHECK: {{^ *}}.text{{$}}
; CHECK: empty_func:
; CHECK: .Lfunc_begin0:
; CHECK-NOT: .section .llvm_bb_addr_map
define void @func() {
entry:
ret void
}
; CHECK: func:
; CHECK: .Lfunc_begin1:
; CHECK: .section .llvm_bb_addr_map,"o",@llvm_bb_addr_map,.text{{$}}
; CHECK-NEXT: .byte 2 # version
; CHECK-NEXT: .byte 0 # feature
; CHECK-NEXT: .quad .Lfunc_begin1 # function address