Tim Renouf e99c565cd2
MC,AMDGPU: Don't pad .text with s_code_end if it would otherwise be empty (#147980)
We don't want that padding in a module that only contains data, not
code.

Also fix MCSection::hasInstructions() so it works with the asm streamer
too.
2025-08-06 13:25:45 +01:00

10 lines
245 B
LLVM

; Test that there is no s_code_end padding if .text is otherwise empty.
; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx1200 < %s | FileCheck %s --check-prefixes=GCN
@globalVar = global i32 37
declare amdgpu_ps void @funcDecl()
; GCN-NOT: .fill