int main(int argc, char **argv) {
  int i;
  puts("#ifndef _FILTER_I386_H");
  puts("#define _FILTER_I386_H");
  puts("#define __HAVE_ARCH_MAC");
  puts("extern inline float mac(const float *a, const float *b, unsigned int "
       "size)");
  puts("{");
  puts("\tfloat f;");
  puts("\tasm volatile (");
  puts("\t\t\""
       "flds (%1)"
       ";\\n\\t\"");
  puts("\t\t\""
       "fmuls (%2)"
       ";\\n\\t\"");
  puts("\t\t\""
       "flds 4(%1)"
       ";\\n\\t\"");
  puts("\t\t\""
       "fmuls 4(%2)"
       ";\\n\\t\"");
  for (i = 2; i < 64; i++) {
    printf("\t\t\"%s%d%s;\\n\\t\"\n", "flds ", i * 4, "(%1)");
    printf("\t\t\"%s%d%s;\\n\\t\"\n", "fmuls ", i * 4, "(%2)");
    puts("\t\t\""
         "fxch %%st(2)"
         ";\\n\\t\"");
    puts("\t\t\""
         "faddp"
         ";\\n\\t\"");
  }
  puts("\t\t\""
       "faddp"
       ";\\n\\t\"");
  puts("\t\t: \"=t\" (f) : \"r\" (a) , \"r\" (b) : \"memory\");");
  puts("\treturn f;");
  puts("}");
  puts("#endif");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf1c(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
movl   $0x2,-0x14(%rbp)
cmpl   $0x40,-0x14(%rbp)
jge    124f <main+0x12f>
mov    -0x14(%rbp),%edx
shl    $0x2,%edx
lea    0xf0f(%rip),%rdi
lea    0xf19(%rip),%rsi
lea    0xf18(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%edx
shl    $0x2,%edx
lea    0xeed(%rip),%rdi
lea    0xf02(%rip),%rsi
lea    0xf02(%rip),%rcx
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d7 <main+0xb7>
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xed7(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xeea(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf27(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf1b(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf17(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf24(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    $0x8,%ebx
lea    0xf2c(%rip),%r14
lea    0xf41(%rip),%r13
lea    0xf41(%rip),%rbp
lea    0xf3f(%rip),%r15
lea    0xf4e(%rip),%r12
nopl   (%rax)
mov    %r14,%rdi
lea    0xf14(%rip),%rsi
mov    %ebx,%edx
lea    0xf11(%rip),%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    %ebx,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <puts@plt>
add    $0x4,%ebx
cmp    $0x100,%ebx
jne    11f0 <main+0xd0>
lea    0xef9(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf17(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [23 x i8] c"#ifndef _FILTER_I386_H\00"
@.str.1 = [23 x i8] c"#define _FILTER_I386_H\00"
@.str.2 = [24 x i8] c"#define __HAVE_ARCH_MAC\00"
@.str.3 = [75 x i8] c"extern inline float mac(const float *a, const float *b, unsigned int size)\00"
@.str.4 = [2 x i8] c"{\00"
@.str.5 = [10 x i8] c"\09float f;\00"
@.str.6 = [16 x i8] c"\09asm volatile (\00"
@.str.7 = [19 x i8] c"\09\09\22flds (%1);\\n\\t\22\00"
@.str.8 = [20 x i8] c"\09\09\22fmuls (%2);\\n\\t\22\00"
@.str.9 = [20 x i8] c"\09\09\22flds 4(%1);\\n\\t\22\00"
@.str.10 = [21 x i8] c"\09\09\22fmuls 4(%2);\\n\\t\22\00"
@.str.11 = [17 x i8] c"\09\09\22%s%d%s;\\n\\t\22\0A\00"
@.str.12 = [6 x i8] c"flds \00"
@.str.13 = [5 x i8] c"(%1)\00"
@.str.14 = [7 x i8] c"fmuls \00"
@.str.15 = [5 x i8] c"(%2)\00"
@.str.16 = [22 x i8] c"\09\09\22fxch %%st(2);\\n\\t\22\00"
@.str.17 = [15 x i8] c"\09\09\22faddp;\\n\\t\22\00"
@.str.18 = [46 x i8] c"\09\09: \22=t\22 (f) : \22r\22 (a) , \22r\22 (b) : \22memory\22);\00"
@.str.19 = [11 x i8] c"\09return f;\00"
@.str.20 = [2 x i8] c"}\00"
@.str.21 = [7 x i8] c"#endif\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
store i32 2, i32* %6
br label %18
18: ; preds = %30, %2
%19 = load i32, i32* %6
%20 = icmp slt i32 %19, 64
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = load i32, i32* %6
%23 = mul nsw i32 %22, 4
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%25 = load i32, i32* %6
%26 = mul nsw i32 %25, 4
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i32 %26, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
br label %30
30: ; preds = %21
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 1
store i32 %32, i32* %6
br label %18
33: ; preds = %18
%34 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%35 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.18, i64 0, i64 0))
%36 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%37 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"#ifndef _FILTER_I386_H\00"
@.str.1 = [23 x i8] c"#define _FILTER_I386_H\00"
@.str.2 = [24 x i8] c"#define __HAVE_ARCH_MAC\00"
@.str.3 = [75 x i8] c"extern inline float mac(const float *a, const float *b, unsigned int size)\00"
@.str.4 = [2 x i8] c"{\00"
@.str.5 = [10 x i8] c"\09float f;\00"
@.str.6 = [16 x i8] c"\09asm volatile (\00"
@.str.7 = [19 x i8] c"\09\09\22flds (%1);\\n\\t\22\00"
@.str.8 = [20 x i8] c"\09\09\22fmuls (%2);\\n\\t\22\00"
@.str.9 = [20 x i8] c"\09\09\22flds 4(%1);\\n\\t\22\00"
@.str.10 = [21 x i8] c"\09\09\22fmuls 4(%2);\\n\\t\22\00"
@.str.11 = [17 x i8] c"\09\09\22%s%d%s;\\n\\t\22\0A\00"
@.str.12 = [6 x i8] c"flds \00"
@.str.13 = [5 x i8] c"(%1)\00"
@.str.14 = [7 x i8] c"fmuls \00"
@.str.15 = [5 x i8] c"(%2)\00"
@.str.16 = [22 x i8] c"\09\09\22fxch %%st(2);\\n\\t\22\00"
@.str.17 = [15 x i8] c"\09\09\22faddp;\\n\\t\22\00"
@.str.18 = [46 x i8] c"\09\09: \22=t\22 (f) : \22r\22 (a) , \22r\22 (b) : \22memory\22);\00"
@.str.19 = [11 x i8] c"\09return f;\00"
@.str.20 = [2 x i8] c"}\00"
@.str.21 = [7 x i8] c"#endif\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
br label %14
14: ; preds = %2, %14
%15 = phi i32 [ 2, %2 ], [ %21, %14 ]
%16 = shl nuw nsw i32 %15, 2
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i32 %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%21 = add nuw nsw i32 %15, 1
%22 = icmp eq i32 %21, 64
br i1 %22, label %23, label %14
23: ; preds = %14
%24 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.18, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%27 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
ret i32 0
}