You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
403 B
15 lines
403 B
// REQUIRES: amdgpu-registered-target
|
|
// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s
|
|
// CHECK: define amdgpu_kernel void @test_call_kernel(i32 addrspace(1)* nocapture %out)
|
|
// CHECK: store i32 4, i32 addrspace(1)* %out, align 4
|
|
|
|
kernel void test_kernel(global int *out)
|
|
{
|
|
out[0] = 4;
|
|
}
|
|
|
|
__kernel void test_call_kernel(__global int *out)
|
|
{
|
|
test_kernel(out);
|
|
}
|