1; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=hawaii -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
3; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
4
5define void @void_func_void() #2 {
6  ret void
7}
8
9; GCN-LABEL: {{^}}test_call_void_func_void:
10define amdgpu_kernel void @test_call_void_func_void() {
11  call void @void_func_void()
12  ret void
13}
14
15define void @void_func_void_clobber_s40_s41() #2 {
16  call void asm sideeffect "", "~{s[40:41]}"() #0
17  ret void
18}
19
20define amdgpu_kernel void @test_call_void_func_void_clobber_s40_s41() {
21  call void @void_func_void_clobber_s40_s41()
22  ret void
23}
24
25attributes #0 = { nounwind }
26attributes #1 = { nounwind readnone }
27attributes #2 = { nounwind noinline }
28