mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
99739705ac
This avoids switching to .AMDGPU.config and back and hardcoding the section it switches back to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232479 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
553 B
LLVM
22 lines
553 B
LLVM
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %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 void @empty_function_ret() #0 {
|
|
ret void
|
|
}
|
|
|
|
; SI: .text
|
|
; SI-LABEL: {{^}}empty_function_unreachable:
|
|
; SI: codeLenInByte = 0
|
|
define void @empty_function_unreachable() #0 {
|
|
unreachable
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|