void test() {
  int a[100], i, j, z;
#pragma acc parallel loop collapse(2)
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc parallel loop gang
  for (i = 0; i < 100; i++)
    ;
#pragma acc parallel loop worker
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc parallel loop vector
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc parallel loop seq
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc parallel loop auto
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc parallel loop tile(2, 3)
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc parallel loop independent
  for (i = 0; i < 100; i++)
    ;
#pragma acc parallel loop private(z)
  for (i = 0; i < 100; i++)
    z = 0;
#pragma acc kernels loop collapse(2)
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc kernels loop gang
  for (i = 0; i < 100; i++)
    ;
#pragma acc kernels loop worker
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc kernels loop vector
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc kernels loop seq
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc kernels loop auto
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc kernels loop tile(2, 3)
  for (i = 0; i < 100; i++)
    for (j = 0; j < 10; j++)
      ;
#pragma acc kernels loop independent
  for (i = 0; i < 100; i++)
    ;
#pragma acc kernels loop private(z)
  for (i = 0; i < 100; i++)
    z = 0;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    116b <test+0x6b>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1152 <test+0x52>
jmp    113e <test+0x3e>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    112c <test+0x2c>
jmp    1157 <test+0x57>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1115 <test+0x15>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    119b <test+0x9b>
jmp    1187 <test+0x87>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1175 <test+0x75>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    11fb <test+0xfb>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    11e2 <test+0xe2>
jmp    11ce <test+0xce>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    11bc <test+0xbc>
jmp    11e7 <test+0xe7>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    11a5 <test+0xa5>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    125b <test+0x15b>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1242 <test+0x142>
jmp    122e <test+0x12e>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    121c <test+0x11c>
jmp    1247 <test+0x147>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1205 <test+0x105>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    12bb <test+0x1bb>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    12a2 <test+0x1a2>
jmp    128e <test+0x18e>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    127c <test+0x17c>
jmp    12a7 <test+0x1a7>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1265 <test+0x165>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    131b <test+0x21b>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1302 <test+0x202>
jmp    12ee <test+0x1ee>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    12dc <test+0x1dc>
jmp    1307 <test+0x207>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    12c5 <test+0x1c5>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    137b <test+0x27b>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1362 <test+0x262>
jmp    134e <test+0x24e>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    133c <test+0x23c>
jmp    1367 <test+0x267>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1325 <test+0x225>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    13ab <test+0x2ab>
jmp    1397 <test+0x297>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    1385 <test+0x285>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    13e0 <test+0x2e0>
movl   $0x0,-0x19c(%rbp)
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    13b5 <test+0x2b5>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    1440 <test+0x340>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1427 <test+0x327>
jmp    1413 <test+0x313>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    1401 <test+0x301>
jmp    142c <test+0x32c>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    13ea <test+0x2ea>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    1470 <test+0x370>
jmp    145c <test+0x35c>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    144a <test+0x34a>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    14d0 <test+0x3d0>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    14b7 <test+0x3b7>
jmp    14a3 <test+0x3a3>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    1491 <test+0x391>
jmp    14bc <test+0x3bc>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    147a <test+0x37a>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    1530 <test+0x430>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1517 <test+0x417>
jmp    1503 <test+0x403>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    14f1 <test+0x3f1>
jmp    151c <test+0x41c>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    14da <test+0x3da>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    1590 <test+0x490>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1577 <test+0x477>
jmp    1563 <test+0x463>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    1551 <test+0x451>
jmp    157c <test+0x47c>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    153a <test+0x43a>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    15f0 <test+0x4f0>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    15d7 <test+0x4d7>
jmp    15c3 <test+0x4c3>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    15b1 <test+0x4b1>
jmp    15dc <test+0x4dc>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    159a <test+0x49a>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    1650 <test+0x550>
movl   $0x0,-0x198(%rbp)
cmpl   $0xa,-0x198(%rbp)
jge    1637 <test+0x537>
jmp    1623 <test+0x523>
mov    -0x198(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x198(%rbp)
jmp    1611 <test+0x511>
jmp    163c <test+0x53c>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    15fa <test+0x4fa>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    1680 <test+0x580>
jmp    166c <test+0x56c>
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    165a <test+0x55a>
movl   $0x0,-0x194(%rbp)
cmpl   $0x64,-0x194(%rbp)
jge    16b5 <test+0x5b5>
movl   $0x0,-0x19c(%rbp)
mov    -0x194(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x194(%rbp)
jmp    168a <test+0x58a>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
ret

LLVM IR (-O0):
define void @test() {
%1 = alloca [100 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %2
br label %5
5: ; preds = %17, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 100
br i1 %7, label %8, label %20
8: ; preds = %5
store i32 0, i32* %3
br label %9
9: ; preds = %13, %8
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %16
12: ; preds = %9
br label %13
13: ; preds = %12
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 1
store i32 %15, i32* %3
br label %9
16: ; preds = %9
br label %17
17: ; preds = %16
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %5
20: ; preds = %5
store i32 0, i32* %2
br label %21
21: ; preds = %25, %20
%22 = load i32, i32* %2
%23 = icmp slt i32 %22, 100
br i1 %23, label %24, label %28
24: ; preds = %21
br label %25
25: ; preds = %24
%26 = load i32, i32* %2
%27 = add nsw i32 %26, 1
store i32 %27, i32* %2
br label %21
28: ; preds = %21
store i32 0, i32* %2
br label %29
29: ; preds = %41, %28
%30 = load i32, i32* %2
%31 = icmp slt i32 %30, 100
br i1 %31, label %32, label %44
32: ; preds = %29
store i32 0, i32* %3
br label %33
33: ; preds = %37, %32
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 10
br i1 %35, label %36, label %40
36: ; preds = %33
br label %37
37: ; preds = %36
%38 = load i32, i32* %3
%39 = add nsw i32 %38, 1
store i32 %39, i32* %3
br label %33
40: ; preds = %33
br label %41
41: ; preds = %40
%42 = load i32, i32* %2
%43 = add nsw i32 %42, 1
store i32 %43, i32* %2
br label %29
44: ; preds = %29
store i32 0, i32* %2
br label %45
45: ; preds = %57, %44
%46 = load i32, i32* %2
%47 = icmp slt i32 %46, 100
br i1 %47, label %48, label %60
48: ; preds = %45
store i32 0, i32* %3
br label %49
49: ; preds = %53, %48
%50 = load i32, i32* %3
%51 = icmp slt i32 %50, 10
br i1 %51, label %52, label %56
52: ; preds = %49
br label %53
53: ; preds = %52
%54 = load i32, i32* %3
%55 = add nsw i32 %54, 1
store i32 %55, i32* %3
br label %49
56: ; preds = %49
br label %57
57: ; preds = %56
%58 = load i32, i32* %2
%59 = add nsw i32 %58, 1
store i32 %59, i32* %2
br label %45
60: ; preds = %45
store i32 0, i32* %2
br label %61
61: ; preds = %73, %60
%62 = load i32, i32* %2
%63 = icmp slt i32 %62, 100
br i1 %63, label %64, label %76
64: ; preds = %61
store i32 0, i32* %3
br label %65
65: ; preds = %69, %64
%66 = load i32, i32* %3
%67 = icmp slt i32 %66, 10
br i1 %67, label %68, label %72
68: ; preds = %65
br label %69
69: ; preds = %68
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 1
store i32 %71, i32* %3
br label %65
72: ; preds = %65
br label %73
73: ; preds = %72
%74 = load i32, i32* %2
%75 = add nsw i32 %74, 1
store i32 %75, i32* %2
br label %61
76: ; preds = %61
store i32 0, i32* %2
br label %77
77: ; preds = %89, %76
%78 = load i32, i32* %2
%79 = icmp slt i32 %78, 100
br i1 %79, label %80, label %92
80: ; preds = %77
store i32 0, i32* %3
br label %81
81: ; preds = %85, %80
%82 = load i32, i32* %3
%83 = icmp slt i32 %82, 10
br i1 %83, label %84, label %88
84: ; preds = %81
br label %85
85: ; preds = %84
%86 = load i32, i32* %3
%87 = add nsw i32 %86, 1
store i32 %87, i32* %3
br label %81
88: ; preds = %81
br label %89
89: ; preds = %88
%90 = load i32, i32* %2
%91 = add nsw i32 %90, 1
store i32 %91, i32* %2
br label %77
92: ; preds = %77
store i32 0, i32* %2
br label %93
93: ; preds = %105, %92
%94 = load i32, i32* %2
%95 = icmp slt i32 %94, 100
br i1 %95, label %96, label %108
96: ; preds = %93
store i32 0, i32* %3
br label %97
97: ; preds = %101, %96
%98 = load i32, i32* %3
%99 = icmp slt i32 %98, 10
br i1 %99, label %100, label %104
100: ; preds = %97
br label %101
101: ; preds = %100
%102 = load i32, i32* %3
%103 = add nsw i32 %102, 1
store i32 %103, i32* %3
br label %97
104: ; preds = %97
br label %105
105: ; preds = %104
%106 = load i32, i32* %2
%107 = add nsw i32 %106, 1
store i32 %107, i32* %2
br label %93
108: ; preds = %93
store i32 0, i32* %2
br label %109
109: ; preds = %113, %108
%110 = load i32, i32* %2
%111 = icmp slt i32 %110, 100
br i1 %111, label %112, label %116
112: ; preds = %109
br label %113
113: ; preds = %112
%114 = load i32, i32* %2
%115 = add nsw i32 %114, 1
store i32 %115, i32* %2
br label %109
116: ; preds = %109
store i32 0, i32* %2
br label %117
117: ; preds = %121, %116
%118 = load i32, i32* %2
%119 = icmp slt i32 %118, 100
br i1 %119, label %120, label %124
120: ; preds = %117
store i32 0, i32* %4
br label %121
121: ; preds = %120
%122 = load i32, i32* %2
%123 = add nsw i32 %122, 1
store i32 %123, i32* %2
br label %117
124: ; preds = %117
store i32 0, i32* %2
br label %125
125: ; preds = %137, %124
%126 = load i32, i32* %2
%127 = icmp slt i32 %126, 100
br i1 %127, label %128, label %140
128: ; preds = %125
store i32 0, i32* %3
br label %129
129: ; preds = %133, %128
%130 = load i32, i32* %3
%131 = icmp slt i32 %130, 10
br i1 %131, label %132, label %136
132: ; preds = %129
br label %133
133: ; preds = %132
%134 = load i32, i32* %3
%135 = add nsw i32 %134, 1
store i32 %135, i32* %3
br label %129
136: ; preds = %129
br label %137
137: ; preds = %136
%138 = load i32, i32* %2
%139 = add nsw i32 %138, 1
store i32 %139, i32* %2
br label %125
140: ; preds = %125
store i32 0, i32* %2
br label %141
141: ; preds = %145, %140
%142 = load i32, i32* %2
%143 = icmp slt i32 %142, 100
br i1 %143, label %144, label %148
144: ; preds = %141
br label %145
145: ; preds = %144
%146 = load i32, i32* %2
%147 = add nsw i32 %146, 1
store i32 %147, i32* %2
br label %141
148: ; preds = %141
store i32 0, i32* %2
br label %149
149: ; preds = %161, %148
%150 = load i32, i32* %2
%151 = icmp slt i32 %150, 100
br i1 %151, label %152, label %164
152: ; preds = %149
store i32 0, i32* %3
br label %153
153: ; preds = %157, %152
%154 = load i32, i32* %3
%155 = icmp slt i32 %154, 10
br i1 %155, label %156, label %160
156: ; preds = %153
br label %157
157: ; preds = %156
%158 = load i32, i32* %3
%159 = add nsw i32 %158, 1
store i32 %159, i32* %3
br label %153
160: ; preds = %153
br label %161
161: ; preds = %160
%162 = load i32, i32* %2
%163 = add nsw i32 %162, 1
store i32 %163, i32* %2
br label %149
164: ; preds = %149
store i32 0, i32* %2
br label %165
165: ; preds = %177, %164
%166 = load i32, i32* %2
%167 = icmp slt i32 %166, 100
br i1 %167, label %168, label %180
168: ; preds = %165
store i32 0, i32* %3
br label %169
169: ; preds = %173, %168
%170 = load i32, i32* %3
%171 = icmp slt i32 %170, 10
br i1 %171, label %172, label %176
172: ; preds = %169
br label %173
173: ; preds = %172
%174 = load i32, i32* %3
%175 = add nsw i32 %174, 1
store i32 %175, i32* %3
br label %169
176: ; preds = %169
br label %177
177: ; preds = %176
%178 = load i32, i32* %2
%179 = add nsw i32 %178, 1
store i32 %179, i32* %2
br label %165
180: ; preds = %165
store i32 0, i32* %2
br label %181
181: ; preds = %193, %180
%182 = load i32, i32* %2
%183 = icmp slt i32 %182, 100
br i1 %183, label %184, label %196
184: ; preds = %181
store i32 0, i32* %3
br label %185
185: ; preds = %189, %184
%186 = load i32, i32* %3
%187 = icmp slt i32 %186, 10
br i1 %187, label %188, label %192
188: ; preds = %185
br label %189
189: ; preds = %188
%190 = load i32, i32* %3
%191 = add nsw i32 %190, 1
store i32 %191, i32* %3
br label %185
192: ; preds = %185
br label %193
193: ; preds = %192
%194 = load i32, i32* %2
%195 = add nsw i32 %194, 1
store i32 %195, i32* %2
br label %181
196: ; preds = %181
store i32 0, i32* %2
br label %197
197: ; preds = %209, %196
%198 = load i32, i32* %2
%199 = icmp slt i32 %198, 100
br i1 %199, label %200, label %212
200: ; preds = %197
store i32 0, i32* %3
br label %201
201: ; preds = %205, %200
%202 = load i32, i32* %3
%203 = icmp slt i32 %202, 10
br i1 %203, label %204, label %208
204: ; preds = %201
br label %205
205: ; preds = %204
%206 = load i32, i32* %3
%207 = add nsw i32 %206, 1
store i32 %207, i32* %3
br label %201
208: ; preds = %201
br label %209
209: ; preds = %208
%210 = load i32, i32* %2
%211 = add nsw i32 %210, 1
store i32 %211, i32* %2
br label %197
212: ; preds = %197
store i32 0, i32* %2
br label %213
213: ; preds = %225, %212
%214 = load i32, i32* %2
%215 = icmp slt i32 %214, 100
br i1 %215, label %216, label %228
216: ; preds = %213
store i32 0, i32* %3
br label %217
217: ; preds = %221, %216
%218 = load i32, i32* %3
%219 = icmp slt i32 %218, 10
br i1 %219, label %220, label %224
220: ; preds = %217
br label %221
221: ; preds = %220
%222 = load i32, i32* %3
%223 = add nsw i32 %222, 1
store i32 %223, i32* %3
br label %217
224: ; preds = %217
br label %225
225: ; preds = %224
%226 = load i32, i32* %2
%227 = add nsw i32 %226, 1
store i32 %227, i32* %2
br label %213
228: ; preds = %213
store i32 0, i32* %2
br label %229
229: ; preds = %233, %228
%230 = load i32, i32* %2
%231 = icmp slt i32 %230, 100
br i1 %231, label %232, label %236
232: ; preds = %229
br label %233
233: ; preds = %232
%234 = load i32, i32* %2
%235 = add nsw i32 %234, 1
store i32 %235, i32* %2
br label %229
236: ; preds = %229
store i32 0, i32* %2
br label %237
237: ; preds = %241, %236
%238 = load i32, i32* %2
%239 = icmp slt i32 %238, 100
br i1 %239, label %240, label %244
240: ; preds = %237
store i32 0, i32* %4
br label %241
241: ; preds = %240
%242 = load i32, i32* %2
%243 = add nsw i32 %242, 1
store i32 %243, i32* %2
br label %237
244: ; preds = %237
ret void
}

LLVM IR (-O2):
define void @test() {
ret void
}