brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 80fd47f Raw
136 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes --check-globals all --version 52; RUN: opt < %s -passes=verify -S | FileCheck %s3 4define i32 @test_align(i32 %a, i32 %b) {5; CHECK-LABEL: define alignstack(8) i32 @test_align(6; CHECK-SAME: i32 alignstack(8) [[A:%.*]], i32 alignstack(16) [[B:%.*]]) {7; CHECK-NEXT:    ret i32 08;9  ret i32 010}11 12define void @test_kernel() {13; CHECK-LABEL: define ptx_kernel void @test_kernel() {14; CHECK-NEXT:    ret void15;16  ret void17}18 19define void @test_maxclusterrank() {20; CHECK-LABEL: define void @test_maxclusterrank(21; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {22; CHECK-NEXT:    ret void23;24  ret void25}26 27define void @test_cluster_max_blocks() {28; CHECK-LABEL: define void @test_cluster_max_blocks(29; CHECK-SAME: ) #[[ATTR1:[0-9]+]] {30; CHECK-NEXT:    ret void31;32  ret void33}34 35define void @test_minctasm() {36; CHECK-LABEL: define void @test_minctasm(37; CHECK-SAME: ) #[[ATTR2:[0-9]+]] {38; CHECK-NEXT:    ret void39;40  ret void41}42 43define void @test_maxnreg() {44; CHECK-LABEL: define void @test_maxnreg(45; CHECK-SAME: ) #[[ATTR3:[0-9]+]] {46; CHECK-NEXT:    ret void47;48  ret void49}50 51define void @test_maxntid_1() {52; CHECK-LABEL: define void @test_maxntid_1(53; CHECK-SAME: ) #[[ATTR4:[0-9]+]] {54; CHECK-NEXT:    ret void55;56  ret void57}58 59define void @test_maxntid_2() {60; CHECK-LABEL: define void @test_maxntid_2(61; CHECK-SAME: ) #[[ATTR5:[0-9]+]] {62; CHECK-NEXT:    ret void63;64  ret void65}66 67define void @test_maxntid_3() {68; CHECK-LABEL: define void @test_maxntid_3(69; CHECK-SAME: ) #[[ATTR6:[0-9]+]] {70; CHECK-NEXT:    ret void71;72  ret void73}74 75define void @test_maxntid_4() {76; CHECK-LABEL: define void @test_maxntid_4(77; CHECK-SAME: ) #[[ATTR7:[0-9]+]] {78; CHECK-NEXT:    ret void79;80  ret void81}82 83define void @test_reqntid() {84; CHECK-LABEL: define void @test_reqntid(85; CHECK-SAME: ) #[[ATTR8:[0-9]+]] {86; CHECK-NEXT:    ret void87;88  ret void89}90 91define void @test_cluster_dim() {92; CHECK-LABEL: define void @test_cluster_dim(93; CHECK-SAME: ) #[[ATTR9:[0-9]+]] {94; CHECK-NEXT:    ret void95;96  ret void97}98 99define void @test_grid_constant(ptr byval(i32) %input1, i32 %input2, ptr byval(i32) %input3) {100; CHECK-LABEL: define void @test_grid_constant(101; CHECK-SAME: ptr byval(i32) "nvvm.grid_constant" [[INPUT1:%.*]], i32 [[INPUT2:%.*]], ptr byval(i32) "nvvm.grid_constant" [[INPUT3:%.*]]) {102; CHECK-NEXT:    ret void103;104  ret void105}106 107!nvvm.annotations = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10, !11, !12, !13}108 109!0 = !{ptr @test_align, !"align", i32 u0x00000008, !"align", i32 u0x00010008, !"align", i32 u0x00020010}110!1 = !{null, !"align", i32 u0x00000008, !"align", i32 u0x00010008, !"align", i32 u0x00020008}111!2 = !{ptr @test_kernel, !"kernel", i32 1}112!3 = !{ptr @test_maxclusterrank, !"maxclusterrank", i32 2}113!4 = !{ptr @test_cluster_max_blocks, !"cluster_max_blocks", i32 3}114!5 = !{ptr @test_minctasm, !"minctasm", i32 4}115!6 = !{ptr @test_maxnreg, !"maxnreg", i32 5}116!7 = !{ptr @test_maxntid_1, !"maxntidx", i32 50}117!8 = !{ptr @test_maxntid_2, !"maxntidx", i32 11, !"maxntidy", i32 22, !"maxntidz", i32 33}118!9 = !{ptr @test_maxntid_3, !"maxntidz", i32 11, !"maxntidy", i32 22, !"maxntidx", i32 33}119!10 = !{ptr @test_maxntid_4, !"maxntidz", i32 100}120!11 = !{ptr @test_reqntid, !"reqntidx", i32 31, !"reqntidy", i32 32, !"reqntidz", i32 33}121!12 = !{ptr @test_cluster_dim, !"cluster_dim_x", i32 101, !"cluster_dim_y", i32 102, !"cluster_dim_z", i32 103}122!13 = !{ptr @test_grid_constant, !"grid_constant", !14}123!14 = !{i32 1, i32 3}124;.125; CHECK: attributes #[[ATTR0]] = { "nvvm.maxclusterrank"="2" }126; CHECK: attributes #[[ATTR1]] = { "nvvm.maxclusterrank"="3" }127; CHECK: attributes #[[ATTR2]] = { "nvvm.minctasm"="4" }128; CHECK: attributes #[[ATTR3]] = { "nvvm.maxnreg"="5" }129; CHECK: attributes #[[ATTR4]] = { "nvvm.maxntid"="50" }130; CHECK: attributes #[[ATTR5]] = { "nvvm.maxntid"="11,22,33" }131; CHECK: attributes #[[ATTR6]] = { "nvvm.maxntid"="33,22,11" }132; CHECK: attributes #[[ATTR7]] = { "nvvm.maxntid"="1,1,100" }133; CHECK: attributes #[[ATTR8]] = { "nvvm.reqntid"="31,32,33" }134; CHECK: attributes #[[ATTR9]] = { "nvvm.cluster_dim"="101,102,103" }135;.136