void mult(int b[100], int factor) {
#pragma xmp align b[i] with t(i)
  int i;
#pragma xmp loop(i) on t(i)
  for (i = 0; i < 100; i++) {
    b[i] *= factor;
  }
  {
    int b = 3;
    b *= 2;
  }
}


x86 assembly (clang, -O0):
<mult>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x64,-0x10(%rbp)
jge    113c <mult+0x3c>
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <mult+0x12>
movl   $0x3,-0x14(%rbp)
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x14(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<mult>:
movd   %esi,%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqu (%rdi),%xmm2
movdqu 0x10(%rdi),%xmm3
movdqu 0x20(%rdi),%xmm4
movdqu 0x30(%rdi),%xmm1
pshufd $0xf5,%xmm2,%xmm5
pmuludq %xmm0,%xmm5
pshufd $0xe8,%xmm5,%xmm5
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm5,%xmm2
movdqu %xmm2,(%rdi)
pshufd $0xf5,%xmm3,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm3
pshufd $0xe8,%xmm3,%xmm3
punpckldq %xmm2,%xmm3
movdqu %xmm3,0x10(%rdi)
pshufd $0xf5,%xmm4,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm4
pshufd $0xe8,%xmm4,%xmm3
punpckldq %xmm2,%xmm3
movdqu %xmm3,0x20(%rdi)
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x30(%rdi)
movdqu 0x40(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x40(%rdi)
movdqu 0x50(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x50(%rdi)
movdqu 0x60(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x60(%rdi)
movdqu 0x70(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x70(%rdi)
movdqu 0x80(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x80(%rdi)
movdqu 0x90(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x90(%rdi)
movdqu 0xa0(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0xa0(%rdi)
movdqu 0xb0(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0xb0(%rdi)
movdqu 0xc0(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0xc0(%rdi)
movdqu 0xd0(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0xd0(%rdi)
movdqu 0xe0(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0xe0(%rdi)
movdqu 0xf0(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0xf0(%rdi)
movdqu 0x100(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x100(%rdi)
movdqu 0x110(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x110(%rdi)
movdqu 0x120(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x120(%rdi)
movdqu 0x130(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x130(%rdi)
movdqu 0x140(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x140(%rdi)
movdqu 0x150(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x150(%rdi)
movdqu 0x160(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x160(%rdi)
movdqu 0x170(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqu %xmm1,0x170(%rdi)
movdqu 0x180(%rdi),%xmm1
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm1
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm0
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x180(%rdi)
ret

LLVM IR (-O0):
define void @mult(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %7
7: ; preds = %18, %2
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = load i32, i32* %4
%12 = load i32*, i32** %3
%13 = load i32, i32* %5
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, i32* %12, i64 %14
%16 = load i32, i32* %15
%17 = mul nsw i32 %16, %11
store i32 %17, i32* %15
br label %18
18: ; preds = %10
%19 = load i32, i32* %5
%20 = add nsw i32 %19, 1
store i32 %20, i32* %5
br label %7
21: ; preds = %7
store i32 3, i32* %6
%22 = load i32, i32* %6
%23 = mul nsw i32 %22, 2
store i32 %23, i32* %6
ret void
}

LLVM IR (-O2):
define void @mult(i32* nocapture %0, i32 %1) {
%3 = insertelement <4 x i32> poison, i32 %1, i64 0
%4 = shufflevector <4 x i32> %3, <4 x i32> poison, <4 x i32> zeroinitializer
%5 = bitcast i32* %0 to <4 x i32>*
%6 = load <4 x i32>, <4 x i32>* %5
%7 = mul nsw <4 x i32> %6, %4
%8 = bitcast i32* %0 to <4 x i32>*
store <4 x i32> %7, <4 x i32>* %8
%9 = getelementptr inbounds i32, i32* %0, i64 4
%10 = bitcast i32* %9 to <4 x i32>*
%11 = load <4 x i32>, <4 x i32>* %10
%12 = mul nsw <4 x i32> %11, %4
%13 = bitcast i32* %9 to <4 x i32>*
store <4 x i32> %12, <4 x i32>* %13
%14 = getelementptr inbounds i32, i32* %0, i64 8
%15 = bitcast i32* %14 to <4 x i32>*
%16 = load <4 x i32>, <4 x i32>* %15
%17 = mul nsw <4 x i32> %16, %4
%18 = bitcast i32* %14 to <4 x i32>*
store <4 x i32> %17, <4 x i32>* %18
%19 = getelementptr inbounds i32, i32* %0, i64 12
%20 = bitcast i32* %19 to <4 x i32>*
%21 = load <4 x i32>, <4 x i32>* %20
%22 = mul nsw <4 x i32> %21, %4
%23 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> %22, <4 x i32>* %23
%24 = getelementptr inbounds i32, i32* %0, i64 16
%25 = bitcast i32* %24 to <4 x i32>*
%26 = load <4 x i32>, <4 x i32>* %25
%27 = mul nsw <4 x i32> %26, %4
%28 = bitcast i32* %24 to <4 x i32>*
store <4 x i32> %27, <4 x i32>* %28
%29 = getelementptr inbounds i32, i32* %0, i64 20
%30 = bitcast i32* %29 to <4 x i32>*
%31 = load <4 x i32>, <4 x i32>* %30
%32 = mul nsw <4 x i32> %31, %4
%33 = bitcast i32* %29 to <4 x i32>*
store <4 x i32> %32, <4 x i32>* %33
%34 = getelementptr inbounds i32, i32* %0, i64 24
%35 = bitcast i32* %34 to <4 x i32>*
%36 = load <4 x i32>, <4 x i32>* %35
%37 = mul nsw <4 x i32> %36, %4
%38 = bitcast i32* %34 to <4 x i32>*
store <4 x i32> %37, <4 x i32>* %38
%39 = getelementptr inbounds i32, i32* %0, i64 28
%40 = bitcast i32* %39 to <4 x i32>*
%41 = load <4 x i32>, <4 x i32>* %40
%42 = mul nsw <4 x i32> %41, %4
%43 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> %42, <4 x i32>* %43
%44 = getelementptr inbounds i32, i32* %0, i64 32
%45 = bitcast i32* %44 to <4 x i32>*
%46 = load <4 x i32>, <4 x i32>* %45
%47 = mul nsw <4 x i32> %46, %4
%48 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> %47, <4 x i32>* %48
%49 = getelementptr inbounds i32, i32* %0, i64 36
%50 = bitcast i32* %49 to <4 x i32>*
%51 = load <4 x i32>, <4 x i32>* %50
%52 = mul nsw <4 x i32> %51, %4
%53 = bitcast i32* %49 to <4 x i32>*
store <4 x i32> %52, <4 x i32>* %53
%54 = getelementptr inbounds i32, i32* %0, i64 40
%55 = bitcast i32* %54 to <4 x i32>*
%56 = load <4 x i32>, <4 x i32>* %55
%57 = mul nsw <4 x i32> %56, %4
%58 = bitcast i32* %54 to <4 x i32>*
store <4 x i32> %57, <4 x i32>* %58
%59 = getelementptr inbounds i32, i32* %0, i64 44
%60 = bitcast i32* %59 to <4 x i32>*
%61 = load <4 x i32>, <4 x i32>* %60
%62 = mul nsw <4 x i32> %61, %4
%63 = bitcast i32* %59 to <4 x i32>*
store <4 x i32> %62, <4 x i32>* %63
%64 = getelementptr inbounds i32, i32* %0, i64 48
%65 = bitcast i32* %64 to <4 x i32>*
%66 = load <4 x i32>, <4 x i32>* %65
%67 = mul nsw <4 x i32> %66, %4
%68 = bitcast i32* %64 to <4 x i32>*
store <4 x i32> %67, <4 x i32>* %68
%69 = getelementptr inbounds i32, i32* %0, i64 52
%70 = bitcast i32* %69 to <4 x i32>*
%71 = load <4 x i32>, <4 x i32>* %70
%72 = mul nsw <4 x i32> %71, %4
%73 = bitcast i32* %69 to <4 x i32>*
store <4 x i32> %72, <4 x i32>* %73
%74 = getelementptr inbounds i32, i32* %0, i64 56
%75 = bitcast i32* %74 to <4 x i32>*
%76 = load <4 x i32>, <4 x i32>* %75
%77 = mul nsw <4 x i32> %76, %4
%78 = bitcast i32* %74 to <4 x i32>*
store <4 x i32> %77, <4 x i32>* %78
%79 = getelementptr inbounds i32, i32* %0, i64 60
%80 = bitcast i32* %79 to <4 x i32>*
%81 = load <4 x i32>, <4 x i32>* %80
%82 = mul nsw <4 x i32> %81, %4
%83 = bitcast i32* %79 to <4 x i32>*
store <4 x i32> %82, <4 x i32>* %83
%84 = getelementptr inbounds i32, i32* %0, i64 64
%85 = bitcast i32* %84 to <4 x i32>*
%86 = load <4 x i32>, <4 x i32>* %85
%87 = mul nsw <4 x i32> %86, %4
%88 = bitcast i32* %84 to <4 x i32>*
store <4 x i32> %87, <4 x i32>* %88
%89 = getelementptr inbounds i32, i32* %0, i64 68
%90 = bitcast i32* %89 to <4 x i32>*
%91 = load <4 x i32>, <4 x i32>* %90
%92 = mul nsw <4 x i32> %91, %4
%93 = bitcast i32* %89 to <4 x i32>*
store <4 x i32> %92, <4 x i32>* %93
%94 = getelementptr inbounds i32, i32* %0, i64 72
%95 = bitcast i32* %94 to <4 x i32>*
%96 = load <4 x i32>, <4 x i32>* %95
%97 = mul nsw <4 x i32> %96, %4
%98 = bitcast i32* %94 to <4 x i32>*
store <4 x i32> %97, <4 x i32>* %98
%99 = getelementptr inbounds i32, i32* %0, i64 76
%100 = bitcast i32* %99 to <4 x i32>*
%101 = load <4 x i32>, <4 x i32>* %100
%102 = mul nsw <4 x i32> %101, %4
%103 = bitcast i32* %99 to <4 x i32>*
store <4 x i32> %102, <4 x i32>* %103
%104 = getelementptr inbounds i32, i32* %0, i64 80
%105 = bitcast i32* %104 to <4 x i32>*
%106 = load <4 x i32>, <4 x i32>* %105
%107 = mul nsw <4 x i32> %106, %4
%108 = bitcast i32* %104 to <4 x i32>*
store <4 x i32> %107, <4 x i32>* %108
%109 = getelementptr inbounds i32, i32* %0, i64 84
%110 = bitcast i32* %109 to <4 x i32>*
%111 = load <4 x i32>, <4 x i32>* %110
%112 = mul nsw <4 x i32> %111, %4
%113 = bitcast i32* %109 to <4 x i32>*
store <4 x i32> %112, <4 x i32>* %113
%114 = getelementptr inbounds i32, i32* %0, i64 88
%115 = bitcast i32* %114 to <4 x i32>*
%116 = load <4 x i32>, <4 x i32>* %115
%117 = mul nsw <4 x i32> %116, %4
%118 = bitcast i32* %114 to <4 x i32>*
store <4 x i32> %117, <4 x i32>* %118
%119 = getelementptr inbounds i32, i32* %0, i64 92
%120 = bitcast i32* %119 to <4 x i32>*
%121 = load <4 x i32>, <4 x i32>* %120
%122 = mul nsw <4 x i32> %121, %4
%123 = bitcast i32* %119 to <4 x i32>*
store <4 x i32> %122, <4 x i32>* %123
%124 = getelementptr inbounds i32, i32* %0, i64 96
%125 = bitcast i32* %124 to <4 x i32>*
%126 = load <4 x i32>, <4 x i32>* %125
%127 = mul nsw <4 x i32> %126, %4
%128 = bitcast i32* %124 to <4 x i32>*
store <4 x i32> %127, <4 x i32>* %128
ret void
}