int main(void) {
#pragma simd linear(D : 10)
  for (int ii = 0; ii < 1000; ii++)
    ;
#pragma simd private(B) linear(B : 1)
  for (int ii = 0; ii < 1000; ii++)
    ;
#pragma simd private(B, C) linear(B : 1)
  for (int ii = 0; ii < 1000; ii++)
    ;
#pragma simd private(B) linear(C : 2, B : 1)
  for (int ii = 0; ii < 1000; ii++)
    ;
#pragma simd reduction(+ : B) linear(B : 1)
  for (int ii = 0; ii < 1000; ii++)
    ;
#pragma simd reduction(+ : B) linear(B)
  for (int ii = 0; ii < 1000; ii++)
    ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1132 <main+0x32>
jmp    1124 <main+0x24>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <main+0x12>
movl   $0x0,-0xc(%rbp)
cmpl   $0x3e8,-0xc(%rbp)
jge    1159 <main+0x59>
jmp    114b <main+0x4b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1139 <main+0x39>
movl   $0x0,-0x10(%rbp)
cmpl   $0x3e8,-0x10(%rbp)
jge    1180 <main+0x80>
jmp    1172 <main+0x72>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1160 <main+0x60>
movl   $0x0,-0x14(%rbp)
cmpl   $0x3e8,-0x14(%rbp)
jge    11a7 <main+0xa7>
jmp    1199 <main+0x99>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1187 <main+0x87>
movl   $0x0,-0x18(%rbp)
cmpl   $0x3e8,-0x18(%rbp)
jge    11ce <main+0xce>
jmp    11c0 <main+0xc0>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ae <main+0xae>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x3e8,-0x1c(%rbp)
jge    11f5 <main+0xf5>
jmp    11e7 <main+0xe7>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11d5 <main+0xd5>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %8
8: ; preds = %12, %0
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 1000
br i1 %10, label %11, label %15
11: ; preds = %8
br label %12
12: ; preds = %11
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
store i32 %14, i32* %2
br label %8
15: ; preds = %8
store i32 0, i32* %3
br label %16
16: ; preds = %20, %15
%17 = load i32, i32* %3
%18 = icmp slt i32 %17, 1000
br i1 %18, label %19, label %23
19: ; preds = %16
br label %20
20: ; preds = %19
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
store i32 %22, i32* %3
br label %16
23: ; preds = %16
store i32 0, i32* %4
br label %24
24: ; preds = %28, %23
%25 = load i32, i32* %4
%26 = icmp slt i32 %25, 1000
br i1 %26, label %27, label %31
27: ; preds = %24
br label %28
28: ; preds = %27
%29 = load i32, i32* %4
%30 = add nsw i32 %29, 1
store i32 %30, i32* %4
br label %24
31: ; preds = %24
store i32 0, i32* %5
br label %32
32: ; preds = %36, %31
%33 = load i32, i32* %5
%34 = icmp slt i32 %33, 1000
br i1 %34, label %35, label %39
35: ; preds = %32
br label %36
36: ; preds = %35
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
br label %32
39: ; preds = %32
store i32 0, i32* %6
br label %40
40: ; preds = %44, %39
%41 = load i32, i32* %6
%42 = icmp slt i32 %41, 1000
br i1 %42, label %43, label %47
43: ; preds = %40
br label %44
44: ; preds = %43
%45 = load i32, i32* %6
%46 = add nsw i32 %45, 1
store i32 %46, i32* %6
br label %40
47: ; preds = %40
store i32 0, i32* %7
br label %48
48: ; preds = %52, %47
%49 = load i32, i32* %7
%50 = icmp slt i32 %49, 1000
br i1 %50, label %51, label %55
51: ; preds = %48
br label %52
52: ; preds = %51
%53 = load i32, i32* %7
%54 = add nsw i32 %53, 1
store i32 %54, i32* %7
br label %48
55: ; preds = %48
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}