Matt Arsenault | a202538 | 2017-08-03 23:24:05 +0000 | [diff] [blame^] | 1 | ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -filetype=obj -verify-machineinstrs < %s | llvm-objdump -triple amdgcn--amdhsa -mcpu=fiji -d - | FileCheck -check-prefixes=GCN,VI %s |
| 2 | ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=obj -verify-machineinstrs < %s | llvm-objdump -triple amdgcn--amdhsa -mcpu=gfx900 -d - | FileCheck -check-prefixes=GCN,GFX9 %s |
| 3 | ; XUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=hawaii -filetype=obj -verify-machineinstrs < %s | llvm-objdump -triple amdgcn--amdhsa -mcpu=hawaii -d - | FileCheck -check-prefixes=GCN,CI %s |
Matt Arsenault | 1d6317c | 2017-08-02 01:42:04 +0000 | [diff] [blame] | 4 | |
| 5 | ; GCN: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) |
| 6 | ; GCN-NEXT: s_setpc_b64 |
| 7 | define void @void_func_void() #1 { |
| 8 | ret void |
| 9 | } |
| 10 | |
| 11 | ; GCN: s_getpc_b64 |
| 12 | ; GCN: s_swappc_b64 |
| 13 | define amdgpu_kernel void @test_call_void_func_void() { |
| 14 | call void @void_func_void() |
| 15 | ret void |
| 16 | } |
| 17 | |
| 18 | attributes #0 = { nounwind } |
| 19 | attributes #1 = { nounwind noinline } |