void __attribute__((noipa)) run_4(int *restrict a, int *restrict b) {
  for (int i = 0; i < (128 / 32) * 4 + 1; ++i) {
    a[i * 2] = b[i * 2] + 4;
    a[i * 2 + 1] = 4;
  }
}


x86 assembly (clang, -O0):
<run_4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x11,-0x14(%rbp)
jge    1165 <run_4+0x65>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
add    $0x4,%edx
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movl   $0x4,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <run_4+0x13>
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_4>:
movdqu (%rsi),%xmm0
pshufd $0xe8,%xmm0,%xmm1
movdqa 0xeef(%rip),%xmm0
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,(%rdi)
movdqu 0x10(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x10(%rdi)
movdqu 0x20(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x20(%rdi)
movdqu 0x30(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x30(%rdi)
movdqu 0x40(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x40(%rdi)
movdqu 0x50(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x50(%rdi)
movdqu 0x60(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x60(%rdi)
movdqu 0x70(%rsi),%xmm1
pshufd $0xe8,%xmm1,%xmm1
paddd  %xmm0,%xmm1
punpckldq %xmm0,%xmm1
movdqu %xmm1,0x70(%rdi)
mov    0x80(%rsi),%eax
add    $0x4,%eax
mov    %eax,0x80(%rdi)
movl   $0x4,0x84(%rdi)
ret

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

LLVM IR (-O2):
define void @run_4(i32* noalias nocapture writeonly %0, i32* noalias nocapture %1) {
%3 = bitcast i32* %1 to <4 x i32>*
%4 = load <4 x i32>, <4 x i32>* %3
%5 = shufflevector <4 x i32> %4, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%6 = add nsw <2 x i32> %5, <i32 4, i32 4>
%7 = bitcast i32* %0 to <4 x i32>*
%8 = shufflevector <2 x i32> %6, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %8, <4 x i32>* %7
%9 = getelementptr inbounds i32, i32* %1, i64 4
%10 = bitcast i32* %9 to <4 x i32>*
%11 = load <4 x i32>, <4 x i32>* %10
%12 = shufflevector <4 x i32> %11, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%13 = add nsw <2 x i32> %12, <i32 4, i32 4>
%14 = getelementptr inbounds i32, i32* %0, i64 4
%15 = bitcast i32* %14 to <4 x i32>*
%16 = shufflevector <2 x i32> %13, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %16, <4 x i32>* %15
%17 = getelementptr inbounds i32, i32* %1, i64 8
%18 = bitcast i32* %17 to <4 x i32>*
%19 = load <4 x i32>, <4 x i32>* %18
%20 = shufflevector <4 x i32> %19, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%21 = add nsw <2 x i32> %20, <i32 4, i32 4>
%22 = getelementptr inbounds i32, i32* %0, i64 8
%23 = bitcast i32* %22 to <4 x i32>*
%24 = shufflevector <2 x i32> %21, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %24, <4 x i32>* %23
%25 = getelementptr inbounds i32, i32* %1, i64 12
%26 = bitcast i32* %25 to <4 x i32>*
%27 = load <4 x i32>, <4 x i32>* %26
%28 = shufflevector <4 x i32> %27, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%29 = add nsw <2 x i32> %28, <i32 4, i32 4>
%30 = getelementptr inbounds i32, i32* %0, i64 12
%31 = bitcast i32* %30 to <4 x i32>*
%32 = shufflevector <2 x i32> %29, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %32, <4 x i32>* %31
%33 = getelementptr inbounds i32, i32* %1, i64 16
%34 = bitcast i32* %33 to <4 x i32>*
%35 = load <4 x i32>, <4 x i32>* %34
%36 = shufflevector <4 x i32> %35, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%37 = add nsw <2 x i32> %36, <i32 4, i32 4>
%38 = getelementptr inbounds i32, i32* %0, i64 16
%39 = bitcast i32* %38 to <4 x i32>*
%40 = shufflevector <2 x i32> %37, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %40, <4 x i32>* %39
%41 = getelementptr inbounds i32, i32* %1, i64 20
%42 = bitcast i32* %41 to <4 x i32>*
%43 = load <4 x i32>, <4 x i32>* %42
%44 = shufflevector <4 x i32> %43, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%45 = add nsw <2 x i32> %44, <i32 4, i32 4>
%46 = getelementptr inbounds i32, i32* %0, i64 20
%47 = bitcast i32* %46 to <4 x i32>*
%48 = shufflevector <2 x i32> %45, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %48, <4 x i32>* %47
%49 = getelementptr inbounds i32, i32* %1, i64 24
%50 = bitcast i32* %49 to <4 x i32>*
%51 = load <4 x i32>, <4 x i32>* %50
%52 = shufflevector <4 x i32> %51, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%53 = add nsw <2 x i32> %52, <i32 4, i32 4>
%54 = getelementptr inbounds i32, i32* %0, i64 24
%55 = bitcast i32* %54 to <4 x i32>*
%56 = shufflevector <2 x i32> %53, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %56, <4 x i32>* %55
%57 = getelementptr inbounds i32, i32* %1, i64 28
%58 = bitcast i32* %57 to <4 x i32>*
%59 = load <4 x i32>, <4 x i32>* %58
%60 = shufflevector <4 x i32> %59, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
%61 = add nsw <2 x i32> %60, <i32 4, i32 4>
%62 = getelementptr inbounds i32, i32* %0, i64 28
%63 = bitcast i32* %62 to <4 x i32>*
%64 = shufflevector <2 x i32> %61, <2 x i32> <i32 4, i32 4>, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x i32> %64, <4 x i32>* %63
%65 = getelementptr inbounds i32, i32* %1, i64 32
%66 = load i32, i32* %65
%67 = add nsw i32 %66, 4
%68 = getelementptr inbounds i32, i32* %0, i64 32
store i32 %67, i32* %68
%69 = getelementptr inbounds i32, i32* %0, i64 33
store i32 4, i32* %69
ret void
}