Files
archived-llvm/test/CodeGen/AMDGPU/basic-call-return.ll
Matt Arsenault a833b4252d AMDGPU: Fix register name format in tests
These were changed to match the asm output name a long time ago,
although I think the old tablegenerated names still work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328651 91177308-0d34-0410-b5e6-96231b3b80d8
2018-03-27 18:39:42 +00:00

28 lines
877 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 "", "~{s[40:41]}"() #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 }