__attribute__((no, noclone)) void bar(double p[][4]) {
  int i;
  double d = 172.0;
  for (i = 0; i < 4096; i++) {
    if (p[i][0] != 6.0 || p[i][1] != 6.0 || p[i][2] != 10.0)
      __builtin_abort();
    if (__builtin_fabs(p[i][3] - d) > 0.25)
      __builtin_abort();
  }
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  0xedc(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1000,-0xc(%rbp)
jge    1218 <bar+0x108>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  (%rax),%xmm0
movsd  0xeb0(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11c5 <bar+0xb5>
jp     11c5 <bar+0xb5>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  0x8(%rax),%xmm0
movsd  0xe84(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11c5 <bar+0xb5>
jp     11c5 <bar+0xb5>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  0x10(%rax),%xmm0
movsd  0xe60(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11c5 <bar+0xb5>
jp     11c5 <bar+0xb5>
jmp    11ca <bar+0xba>
call   1030 <abort@plt>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  0x18(%rax),%xmm0
subsd  -0x18(%rbp),%xmm0
movaps 0xe36(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xe22(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1205 <bar+0xf5>
call   1030 <abort@plt>
jmp    120a <bar+0xfa>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1130 <bar+0x20>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
push   %rax
xor    %eax,%eax
movsd  0xee5(%rip),%xmm0
movsd  0xee5(%rip),%xmm1
movsd  0xee5(%rip),%xmm2
movapd 0xeed(%rip),%xmm3
movsd  0xedd(%rip),%xmm4
nopl   0x0(%rax,%rax,1)
movsd  (%rdi,%rax,1),%xmm5
ucomisd %xmm0,%xmm5
jne    118b <bar+0x7b>
jp     118b <bar+0x7b>
movsd  0x8(%rdi,%rax,1),%xmm5
ucomisd %xmm0,%xmm5
jne    118b <bar+0x7b>
jp     118b <bar+0x7b>
movsd  0x10(%rdi,%rax,1),%xmm5
ucomisd %xmm1,%xmm5
jne    118b <bar+0x7b>
jp     118b <bar+0x7b>
movsd  0x18(%rdi,%rax,1),%xmm5
addsd  %xmm2,%xmm5
andpd  %xmm3,%xmm5
ucomisd %xmm4,%xmm5
ja     118b <bar+0x7b>
add    $0x20,%rax
cmp    $0x20000,%rax
jne    1140 <bar+0x30>
pop    %rax
ret
call   1030 <abort@plt>

LLVM IR (-O0):
define void @bar([4 x double]* %0) {
%2 = alloca [4 x double]*
%3 = alloca i32
%4 = alloca double
store [4 x double]* %0, [4 x double]** %2
store double 1.720000e+02, double* %4
store i32 0, i32* %3
br label %5
5: ; preds = %46, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 4096
br i1 %7, label %8, label %49
8: ; preds = %5
%9 = load [4 x double]*, [4 x double]** %2
%10 = load i32, i32* %3
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 %11
%13 = getelementptr inbounds [4 x double], [4 x double]* %12, i64 0, i64 0
%14 = load double, double* %13
%15 = fcmp une double %14, 6.000000e+00
br i1 %15, label %32, label %16
16: ; preds = %8
%17 = load [4 x double]*, [4 x double]** %2
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x double], [4 x double]* %17, i64 %19
%21 = getelementptr inbounds [4 x double], [4 x double]* %20, i64 0, i64 1
%22 = load double, double* %21
%23 = fcmp une double %22, 6.000000e+00
br i1 %23, label %32, label %24
24: ; preds = %16
%25 = load [4 x double]*, [4 x double]** %2
%26 = load i32, i32* %3
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [4 x double], [4 x double]* %25, i64 %27
%29 = getelementptr inbounds [4 x double], [4 x double]* %28, i64 0, i64 2
%30 = load double, double* %29
%31 = fcmp une double %30, 1.000000e+01
br i1 %31, label %32, label %33
32: ; preds = %24, %16, %8
unreachable
33: ; preds = %24
%34 = load [4 x double]*, [4 x double]** %2
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [4 x double], [4 x double]* %34, i64 %36
%38 = getelementptr inbounds [4 x double], [4 x double]* %37, i64 0, i64 3
%39 = load double, double* %38
%40 = load double, double* %4
%41 = fsub double %39, %40
%42 = call double @llvm.fabs.f64(double %41)
%43 = fcmp ogt double %42, 2.500000e-01
br i1 %43, label %44, label %45
44: ; preds = %33
unreachable
45: ; preds = %33
br label %46
46: ; preds = %45
%47 = load i32, i32* %3
%48 = add nsw i32 %47, 1
store i32 %48, i32* %3
br label %5
49: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @bar([4 x double]* nocapture %0) {
br label %5
2: ; preds = %19
%3 = add nuw nsw i64 %6, 1
%4 = icmp eq i64 %3, 4096
br i1 %4, label %26, label %5
5: ; preds = %1, %2
%6 = phi i64 [ 0, %1 ], [ %3, %2 ]
%7 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %6, i64 0
%8 = load double, double* %7
%9 = fcmp une double %8, 6.000000e+00
br i1 %9, label %18, label %10
10: ; preds = %5
%11 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %6, i64 1
%12 = load double, double* %11
%13 = fcmp une double %12, 6.000000e+00
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %6, i64 2
%16 = load double, double* %15
%17 = fcmp une double %16, 1.000000e+01
br i1 %17, label %18, label %19
18: ; preds = %14, %10, %5
tail call void @abort()
unreachable
19: ; preds = %14
%20 = getelementptr inbounds [4 x double], [4 x double]* %0, i64 %6, i64 3
%21 = load double, double* %20
%22 = fadd double %21, -1.720000e+02
%23 = tail call double @llvm.fabs.f64(double %22)
%24 = fcmp ogt double %23, 2.500000e-01
br i1 %24, label %25, label %2
25: ; preds = %19
tail call void @abort()
unreachable
26: ; preds = %2
ret void
}