34 lines · plain
1; RUN: llc -mtriple amdgcn-unknown-linux-gnu -mcpu=tahiti < %s | FileCheck %s2; RUN: llc -mtriple amdgcn-unknown-linux-gnu -mcpu=tonga < %s | FileCheck %s3; RUN: llc -mtriple r600-unknown-linux-gnu -mcpu=redwood < %s | FileCheck %s --check-prefix=R6004 5; ALL-NOT: {{^}}func:6define internal i32 @func(i32 %a) {7entry:8 %tmp0 = add i32 %a, 19 ret i32 %tmp010}11 12; CHECK: {{^}}kernel:13; GCN-NOT: s_swappc_b6414define amdgpu_kernel void @kernel(ptr addrspace(1) %out) {15entry:16 %tmp0 = call i32 @func(i32 1)17 store i32 %tmp0, ptr addrspace(1) %out18 ret void19}20 21; CHECK: func_alias22; R600-NOT: func_alias23@func_alias = alias i32 (i32), ptr @func24 25; CHECK-NOT: {{^}}kernel3:26; GCN-NOT: s_swappc_b6427; R600: {{^}}kernel3:28define amdgpu_kernel void @kernel3(ptr addrspace(1) %out) {29entry:30 %tmp0 = call i32 @func_alias(i32 1)31 store i32 %tmp0, ptr addrspace(1) %out32 ret void33}34