mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-15 09:56:02 +00:00

Repurpose the -amdgpu-function-calls flag. Rather than require it to emit a call, only use it to run the always inline path or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310003 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
882 B
LLVM
28 lines
882 B
LLVM
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=hawaii -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
|
|
|
|
define void @void_func_void() #2 {
|
|
ret void
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}test_call_void_func_void:
|
|
define amdgpu_kernel void @test_call_void_func_void() {
|
|
call void @void_func_void()
|
|
ret void
|
|
}
|
|
|
|
define void @void_func_void_clobber_s40_s41() #2 {
|
|
call void asm sideeffect "", "~{SGPR40_SGPR41}"() #0
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_kernel void @test_call_void_func_void_clobber_s40_s41() {
|
|
call void @void_func_void_clobber_s40_s41()
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|
|
attributes #1 = { nounwind readnone }
|
|
attributes #2 = { nounwind noinline }
|