blob: 2341377d75a685793d7fd5af2957c980d2142a10 [file] [log] [blame]
Justin Holewinskiae556d32012-05-04 20:18:50 +00001; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s
3
4
5@texture = internal addrspace(1) global i64 0, align 8
6; CHECK: .global .texref texture
7@surface = internal addrspace(1) global i64 0, align 8
8; CHECK: .global .surfref surface
9
10
11; CHECK: .entry kernel_func_maxntid
12define void @kernel_func_maxntid(float* %a) {
13; CHECK: .maxntid 10, 20, 30
14; CHECK: ret
15 ret void
16}
17
18; CHECK: .entry kernel_func_reqntid
19define void @kernel_func_reqntid(float* %a) {
20; CHECK: .reqntid 11, 22, 33
21; CHECK: ret
22 ret void
23}
24
25; CHECK: .entry kernel_func_minctasm
26define void @kernel_func_minctasm(float* %a) {
27; CHECK: .minnctapersm 42
28; CHECK: ret
29 ret void
30}
31
32
33
34!nvvm.annotations = !{!1, !2, !3, !4, !5, !6, !7, !8}
35
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000036!1 = !{void (float*)* @kernel_func_maxntid, !"kernel", i32 1}
37!2 = !{void (float*)* @kernel_func_maxntid, !"maxntidx", i32 10, !"maxntidy", i32 20, !"maxntidz", i32 30}
Justin Holewinskiae556d32012-05-04 20:18:50 +000038
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000039!3 = !{void (float*)* @kernel_func_reqntid, !"kernel", i32 1}
40!4 = !{void (float*)* @kernel_func_reqntid, !"reqntidx", i32 11, !"reqntidy", i32 22, !"reqntidz", i32 33}
Justin Holewinskiae556d32012-05-04 20:18:50 +000041
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000042!5 = !{void (float*)* @kernel_func_minctasm, !"kernel", i32 1}
43!6 = !{void (float*)* @kernel_func_minctasm, !"minctasm", i32 42}
Justin Holewinskiae556d32012-05-04 20:18:50 +000044
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000045!7 = !{i64 addrspace(1)* @texture, !"texture", i32 1}
46!8 = !{i64 addrspace(1)* @surface, !"surface", i32 1}