| ; RUN: llc -mtriple amdgcn-unknown-linux-gnu -mcpu=tahiti -verify-machineinstrs < %s | FileCheck %s |
| ; RUN: llc -mtriple amdgcn-unknown-linux-gnu -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s |
| ; RUN: llc -mtriple r600-unknown-linux-gnu -mcpu=redwood -verify-machineinstrs < %s | FileCheck %s --check-prefix=R600 |
| define internal i32 @func(i32 %a) { |
| define amdgpu_kernel void @kernel(ptr addrspace(1) %out) { |
| %tmp0 = call i32 @func(i32 1) |
| store i32 %tmp0, ptr addrspace(1) %out |
| @func_alias = alias i32 (i32), ptr @func |
| ; CHECK-NOT: {{^}}kernel3: |
| define amdgpu_kernel void @kernel3(ptr addrspace(1) %out) { |
| %tmp0 = call i32 @func_alias(i32 1) |
| store i32 %tmp0, ptr addrspace(1) %out |