void test_linear() {
  int i;
#pragma omp for simd linear(
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(,
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(, )
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear()
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(int)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(0)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x, y)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x, y, z)
  for (i = 0; i < 16; ++i)
    ;
  int x, y;
#pragma omp for simd linear(x:)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x:, )
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x : 1)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x : 2 * 2)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x : 1, y)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x : 1, y, z : 1)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x) linear(x)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd private(x) linear(x)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x) private(x)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x, y : 0)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp for simd linear(x) lastprivate(x)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp for simd lastprivate(x) linear(x)
  for (i = 0; i < 16; ++i)
    ;
}


x86 assembly (clang, -O0):
<test_linear>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1128 <test_linear+0x28>
jmp    111a <test_linear+0x1a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <test_linear+0xb>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    114c <test_linear+0x4c>
jmp    113e <test_linear+0x3e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <test_linear+0x2f>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1170 <test_linear+0x70>
jmp    1162 <test_linear+0x62>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1153 <test_linear+0x53>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1194 <test_linear+0x94>
jmp    1186 <test_linear+0x86>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1177 <test_linear+0x77>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11b8 <test_linear+0xb8>
jmp    11aa <test_linear+0xaa>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    119b <test_linear+0x9b>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11dc <test_linear+0xdc>
jmp    11ce <test_linear+0xce>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11bf <test_linear+0xbf>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1200 <test_linear+0x100>
jmp    11f2 <test_linear+0xf2>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11e3 <test_linear+0xe3>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1224 <test_linear+0x124>
jmp    1216 <test_linear+0x116>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1207 <test_linear+0x107>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1248 <test_linear+0x148>
jmp    123a <test_linear+0x13a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    122b <test_linear+0x12b>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    126c <test_linear+0x16c>
jmp    125e <test_linear+0x15e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    124f <test_linear+0x14f>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1290 <test_linear+0x190>
jmp    1282 <test_linear+0x182>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1273 <test_linear+0x173>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    12b4 <test_linear+0x1b4>
jmp    12a6 <test_linear+0x1a6>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1297 <test_linear+0x197>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    12d8 <test_linear+0x1d8>
jmp    12ca <test_linear+0x1ca>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    12bb <test_linear+0x1bb>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    12fc <test_linear+0x1fc>
jmp    12ee <test_linear+0x1ee>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    12df <test_linear+0x1df>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1320 <test_linear+0x220>
jmp    1312 <test_linear+0x212>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1303 <test_linear+0x203>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1344 <test_linear+0x244>
jmp    1336 <test_linear+0x236>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1327 <test_linear+0x227>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1368 <test_linear+0x268>
jmp    135a <test_linear+0x25a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    134b <test_linear+0x24b>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    138c <test_linear+0x28c>
jmp    137e <test_linear+0x27e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    136f <test_linear+0x26f>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    13b0 <test_linear+0x2b0>
jmp    13a2 <test_linear+0x2a2>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1393 <test_linear+0x293>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    13d4 <test_linear+0x2d4>
jmp    13c6 <test_linear+0x2c6>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    13b7 <test_linear+0x2b7>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    13f8 <test_linear+0x2f8>
jmp    13ea <test_linear+0x2ea>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    13db <test_linear+0x2db>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @test_linear() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %8, %0
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 16
br i1 %6, label %7, label %11
7: ; preds = %4
br label %8
8: ; preds = %7
%9 = load i32, i32* %1
%10 = add nsw i32 %9, 1
store i32 %10, i32* %1
br label %4
11: ; preds = %4
store i32 0, i32* %1
br label %12
12: ; preds = %16, %11
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 16
br i1 %14, label %15, label %19
15: ; preds = %12
br label %16
16: ; preds = %15
%17 = load i32, i32* %1
%18 = add nsw i32 %17, 1
store i32 %18, i32* %1
br label %12
19: ; preds = %12
store i32 0, i32* %1
br label %20
20: ; preds = %24, %19
%21 = load i32, i32* %1
%22 = icmp slt i32 %21, 16
br i1 %22, label %23, label %27
23: ; preds = %20
br label %24
24: ; preds = %23
%25 = load i32, i32* %1
%26 = add nsw i32 %25, 1
store i32 %26, i32* %1
br label %20
27: ; preds = %20
store i32 0, i32* %1
br label %28
28: ; preds = %32, %27
%29 = load i32, i32* %1
%30 = icmp slt i32 %29, 16
br i1 %30, label %31, label %35
31: ; preds = %28
br label %32
32: ; preds = %31
%33 = load i32, i32* %1
%34 = add nsw i32 %33, 1
store i32 %34, i32* %1
br label %28
35: ; preds = %28
store i32 0, i32* %1
br label %36
36: ; preds = %40, %35
%37 = load i32, i32* %1
%38 = icmp slt i32 %37, 16
br i1 %38, label %39, label %43
39: ; preds = %36
br label %40
40: ; preds = %39
%41 = load i32, i32* %1
%42 = add nsw i32 %41, 1
store i32 %42, i32* %1
br label %36
43: ; preds = %36
store i32 0, i32* %1
br label %44
44: ; preds = %48, %43
%45 = load i32, i32* %1
%46 = icmp slt i32 %45, 16
br i1 %46, label %47, label %51
47: ; preds = %44
br label %48
48: ; preds = %47
%49 = load i32, i32* %1
%50 = add nsw i32 %49, 1
store i32 %50, i32* %1
br label %44
51: ; preds = %44
store i32 0, i32* %1
br label %52
52: ; preds = %56, %51
%53 = load i32, i32* %1
%54 = icmp slt i32 %53, 16
br i1 %54, label %55, label %59
55: ; preds = %52
br label %56
56: ; preds = %55
%57 = load i32, i32* %1
%58 = add nsw i32 %57, 1
store i32 %58, i32* %1
br label %52
59: ; preds = %52
store i32 0, i32* %1
br label %60
60: ; preds = %64, %59
%61 = load i32, i32* %1
%62 = icmp slt i32 %61, 16
br i1 %62, label %63, label %67
63: ; preds = %60
br label %64
64: ; preds = %63
%65 = load i32, i32* %1
%66 = add nsw i32 %65, 1
store i32 %66, i32* %1
br label %60
67: ; preds = %60
store i32 0, i32* %1
br label %68
68: ; preds = %72, %67
%69 = load i32, i32* %1
%70 = icmp slt i32 %69, 16
br i1 %70, label %71, label %75
71: ; preds = %68
br label %72
72: ; preds = %71
%73 = load i32, i32* %1
%74 = add nsw i32 %73, 1
store i32 %74, i32* %1
br label %68
75: ; preds = %68
store i32 0, i32* %1
br label %76
76: ; preds = %80, %75
%77 = load i32, i32* %1
%78 = icmp slt i32 %77, 16
br i1 %78, label %79, label %83
79: ; preds = %76
br label %80
80: ; preds = %79
%81 = load i32, i32* %1
%82 = add nsw i32 %81, 1
store i32 %82, i32* %1
br label %76
83: ; preds = %76
store i32 0, i32* %1
br label %84
84: ; preds = %88, %83
%85 = load i32, i32* %1
%86 = icmp slt i32 %85, 16
br i1 %86, label %87, label %91
87: ; preds = %84
br label %88
88: ; preds = %87
%89 = load i32, i32* %1
%90 = add nsw i32 %89, 1
store i32 %90, i32* %1
br label %84
91: ; preds = %84
store i32 0, i32* %1
br label %92
92: ; preds = %96, %91
%93 = load i32, i32* %1
%94 = icmp slt i32 %93, 16
br i1 %94, label %95, label %99
95: ; preds = %92
br label %96
96: ; preds = %95
%97 = load i32, i32* %1
%98 = add nsw i32 %97, 1
store i32 %98, i32* %1
br label %92
99: ; preds = %92
store i32 0, i32* %1
br label %100
100: ; preds = %104, %99
%101 = load i32, i32* %1
%102 = icmp slt i32 %101, 16
br i1 %102, label %103, label %107
103: ; preds = %100
br label %104
104: ; preds = %103
%105 = load i32, i32* %1
%106 = add nsw i32 %105, 1
store i32 %106, i32* %1
br label %100
107: ; preds = %100
store i32 0, i32* %1
br label %108
108: ; preds = %112, %107
%109 = load i32, i32* %1
%110 = icmp slt i32 %109, 16
br i1 %110, label %111, label %115
111: ; preds = %108
br label %112
112: ; preds = %111
%113 = load i32, i32* %1
%114 = add nsw i32 %113, 1
store i32 %114, i32* %1
br label %108
115: ; preds = %108
store i32 0, i32* %1
br label %116
116: ; preds = %120, %115
%117 = load i32, i32* %1
%118 = icmp slt i32 %117, 16
br i1 %118, label %119, label %123
119: ; preds = %116
br label %120
120: ; preds = %119
%121 = load i32, i32* %1
%122 = add nsw i32 %121, 1
store i32 %122, i32* %1
br label %116
123: ; preds = %116
store i32 0, i32* %1
br label %124
124: ; preds = %128, %123
%125 = load i32, i32* %1
%126 = icmp slt i32 %125, 16
br i1 %126, label %127, label %131
127: ; preds = %124
br label %128
128: ; preds = %127
%129 = load i32, i32* %1
%130 = add nsw i32 %129, 1
store i32 %130, i32* %1
br label %124
131: ; preds = %124
store i32 0, i32* %1
br label %132
132: ; preds = %136, %131
%133 = load i32, i32* %1
%134 = icmp slt i32 %133, 16
br i1 %134, label %135, label %139
135: ; preds = %132
br label %136
136: ; preds = %135
%137 = load i32, i32* %1
%138 = add nsw i32 %137, 1
store i32 %138, i32* %1
br label %132
139: ; preds = %132
store i32 0, i32* %1
br label %140
140: ; preds = %144, %139
%141 = load i32, i32* %1
%142 = icmp slt i32 %141, 16
br i1 %142, label %143, label %147
143: ; preds = %140
br label %144
144: ; preds = %143
%145 = load i32, i32* %1
%146 = add nsw i32 %145, 1
store i32 %146, i32* %1
br label %140
147: ; preds = %140
store i32 0, i32* %1
br label %148
148: ; preds = %152, %147
%149 = load i32, i32* %1
%150 = icmp slt i32 %149, 16
br i1 %150, label %151, label %155
151: ; preds = %148
br label %152
152: ; preds = %151
%153 = load i32, i32* %1
%154 = add nsw i32 %153, 1
store i32 %154, i32* %1
br label %148
155: ; preds = %148
store i32 0, i32* %1
br label %156
156: ; preds = %160, %155
%157 = load i32, i32* %1
%158 = icmp slt i32 %157, 16
br i1 %158, label %159, label %163
159: ; preds = %156
br label %160
160: ; preds = %159
%161 = load i32, i32* %1
%162 = add nsw i32 %161, 1
store i32 %162, i32* %1
br label %156
163: ; preds = %156
store i32 0, i32* %1
br label %164
164: ; preds = %168, %163
%165 = load i32, i32* %1
%166 = icmp slt i32 %165, 16
br i1 %166, label %167, label %171
167: ; preds = %164
br label %168
168: ; preds = %167
%169 = load i32, i32* %1
%170 = add nsw i32 %169, 1
store i32 %170, i32* %1
br label %164
171: ; preds = %164
ret void
}

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