brintos

brintos / llvm-project-archived public Read only

0
0
Text · 811 B · 9ef5989 Raw
28 lines · plain
1; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji < %s | FileCheck -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=hawaii < %s | FileCheck -check-prefix=GCN %s3; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck -check-prefix=GCN %s4 5define void @void_func_void() #2 {6  ret void7}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 void13}14 15define void @void_func_void_clobber_s40_s41() #2 {16  call void asm sideeffect "", "~{s[40:41]}"() #017  ret void18}19 20define amdgpu_kernel void @test_call_void_func_void_clobber_s40_s41() {21  call void @void_func_void_clobber_s40_s41()22  ret void23}24 25attributes #0 = { nounwind }26attributes #1 = { nounwind readnone }27attributes #2 = { nounwind noinline }28