void gc_main(const int *g, const int *e, int *o) {
  int j;
  for (j = 0; j < 64; j++) {
    o[j] = j;
  }
}


x86 assembly (clang, -O0):
<gc_main>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x40,-0x1c(%rbp)
jge    113d <gc_main+0x3d>
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1117 <gc_main+0x17>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gc_main>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdx)
movaps 0xeff(%rip),%xmm0
movups %xmm0,0x10(%rdx)
movaps 0xf04(%rip),%xmm0
movups %xmm0,0x20(%rdx)
movaps 0xf09(%rip),%xmm0
movups %xmm0,0x30(%rdx)
movaps 0xf0e(%rip),%xmm0
movups %xmm0,0x40(%rdx)
movaps 0xf13(%rip),%xmm0
movups %xmm0,0x50(%rdx)
movaps 0xf18(%rip),%xmm0
movups %xmm0,0x60(%rdx)
movaps 0xf1d(%rip),%xmm0
movups %xmm0,0x70(%rdx)
movaps 0xf22(%rip),%xmm0
movups %xmm0,0x80(%rdx)
movaps 0xf24(%rip),%xmm0
movups %xmm0,0x90(%rdx)
movaps 0xf26(%rip),%xmm0
movups %xmm0,0xa0(%rdx)
movaps 0xf28(%rip),%xmm0
movups %xmm0,0xb0(%rdx)
movaps 0xf2a(%rip),%xmm0
movups %xmm0,0xc0(%rdx)
movaps 0xf2c(%rip),%xmm0
movups %xmm0,0xd0(%rdx)
movaps 0xf2e(%rip),%xmm0
movups %xmm0,0xe0(%rdx)
movaps 0xf30(%rip),%xmm0
movups %xmm0,0xf0(%rdx)
ret

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

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