Mechanically migrate the command-line target spelling on llc/opt RUN lines in llvm/test/CodeGen/AMDGPU from -mtriple=amdgcn ... -mcpu=<gfx> to the folded subarch triple form (e.g. -mtriple=amdgpu9.00-amd-amdhsa), dropping the redundant -mcpu. Co-Authored-By: Claude <noreply@anthropic.com> (Claude-Opus-4.8)
22 lines
528 B
LLVM
22 lines
528 B
LLVM
; RUN: llc -mtriple=amdgpu6.00 < %s | FileCheck -check-prefix=SI %s
|
|
; RUN: llc -mtriple=amdgpu8.02 < %s | FileCheck -check-prefix=SI %s
|
|
|
|
; Make sure we don't assert on empty functions
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_ret:
|
|
; SI: s_endpgm
|
|
; SI: codeLenInByte = 4
|
|
define amdgpu_kernel void @empty_function_ret() #0 {
|
|
ret void
|
|
}
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_unreachable:
|
|
; SI: codeLenInByte = 0
|
|
define amdgpu_kernel void @empty_function_unreachable() #0 {
|
|
unreachable
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|