void test_firstprivate() {
  int i;
#pragma omp parallel
#pragma omp parallel for simd firstprivate(
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd firstprivate(,
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd firstprivate(, )
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd firstprivate()
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd firstprivate(int)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd firstprivate(0)
  for (i = 0; i < 16; ++i)
    ;
  int x, y, z;
#pragma omp parallel
#pragma omp parallel for simd lastprivate(x) firstprivate(x)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd lastprivate(x, y) firstprivate(x, y)
  for (i = 0; i < 16; ++i)
    ;
#pragma omp parallel
#pragma omp parallel for simd lastprivate(x, y, z) firstprivate(x, y, z)
  for (i = 0; i < 16; ++i)
    ;
}


x86 assembly (clang, -O0):
<test_firstprivate>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1128 <test_firstprivate+0x28>
jmp    111a <test_firstprivate+0x1a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <test_firstprivate+0xb>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    114c <test_firstprivate+0x4c>
jmp    113e <test_firstprivate+0x3e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <test_firstprivate+0x2f>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1170 <test_firstprivate+0x70>
jmp    1162 <test_firstprivate+0x62>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1153 <test_firstprivate+0x53>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1194 <test_firstprivate+0x94>
jmp    1186 <test_firstprivate+0x86>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1177 <test_firstprivate+0x77>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11b8 <test_firstprivate+0xb8>
jmp    11aa <test_firstprivate+0xaa>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    119b <test_firstprivate+0x9b>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11dc <test_firstprivate+0xdc>
jmp    11ce <test_firstprivate+0xce>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11bf <test_firstprivate+0xbf>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1200 <test_firstprivate+0x100>
jmp    11f2 <test_firstprivate+0xf2>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11e3 <test_firstprivate+0xe3>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1224 <test_firstprivate+0x124>
jmp    1216 <test_firstprivate+0x116>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1207 <test_firstprivate+0x107>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1248 <test_firstprivate+0x148>
jmp    123a <test_firstprivate+0x13a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    122b <test_firstprivate+0x12b>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @test_firstprivate() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
br label %5
5: ; preds = %9, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 16
br i1 %7, label %8, label %12
8: ; preds = %5
br label %9
9: ; preds = %8
%10 = load i32, i32* %1
%11 = add nsw i32 %10, 1
store i32 %11, i32* %1
br label %5
12: ; preds = %5
store i32 0, i32* %1
br label %13
13: ; preds = %17, %12
%14 = load i32, i32* %1
%15 = icmp slt i32 %14, 16
br i1 %15, label %16, label %20
16: ; preds = %13
br label %17
17: ; preds = %16
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 1
store i32 %19, i32* %1
br label %13
20: ; preds = %13
store i32 0, i32* %1
br label %21
21: ; preds = %25, %20
%22 = load i32, i32* %1
%23 = icmp slt i32 %22, 16
br i1 %23, label %24, label %28
24: ; preds = %21
br label %25
25: ; preds = %24
%26 = load i32, i32* %1
%27 = add nsw i32 %26, 1
store i32 %27, i32* %1
br label %21
28: ; preds = %21
store i32 0, i32* %1
br label %29
29: ; preds = %33, %28
%30 = load i32, i32* %1
%31 = icmp slt i32 %30, 16
br i1 %31, label %32, label %36
32: ; preds = %29
br label %33
33: ; preds = %32
%34 = load i32, i32* %1
%35 = add nsw i32 %34, 1
store i32 %35, i32* %1
br label %29
36: ; preds = %29
store i32 0, i32* %1
br label %37
37: ; preds = %41, %36
%38 = load i32, i32* %1
%39 = icmp slt i32 %38, 16
br i1 %39, label %40, label %44
40: ; preds = %37
br label %41
41: ; preds = %40
%42 = load i32, i32* %1
%43 = add nsw i32 %42, 1
store i32 %43, i32* %1
br label %37
44: ; preds = %37
store i32 0, i32* %1
br label %45
45: ; preds = %49, %44
%46 = load i32, i32* %1
%47 = icmp slt i32 %46, 16
br i1 %47, label %48, label %52
48: ; preds = %45
br label %49
49: ; preds = %48
%50 = load i32, i32* %1
%51 = add nsw i32 %50, 1
store i32 %51, i32* %1
br label %45
52: ; preds = %45
store i32 0, i32* %1
br label %53
53: ; preds = %57, %52
%54 = load i32, i32* %1
%55 = icmp slt i32 %54, 16
br i1 %55, label %56, label %60
56: ; preds = %53
br label %57
57: ; preds = %56
%58 = load i32, i32* %1
%59 = add nsw i32 %58, 1
store i32 %59, i32* %1
br label %53
60: ; preds = %53
store i32 0, i32* %1
br label %61
61: ; preds = %65, %60
%62 = load i32, i32* %1
%63 = icmp slt i32 %62, 16
br i1 %63, label %64, label %68
64: ; preds = %61
br label %65
65: ; preds = %64
%66 = load i32, i32* %1
%67 = add nsw i32 %66, 1
store i32 %67, i32* %1
br label %61
68: ; preds = %61
store i32 0, i32* %1
br label %69
69: ; preds = %73, %68
%70 = load i32, i32* %1
%71 = icmp slt i32 %70, 16
br i1 %71, label %72, label %76
72: ; preds = %69
br label %73
73: ; preds = %72
%74 = load i32, i32* %1
%75 = add nsw i32 %74, 1
store i32 %75, i32* %1
br label %69
76: ; preds = %69
ret void
}

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