void rossler(unsigned n, double t, double *Y, double *p, double *f) {
  f[0] = -Y[1] - Y[2];
  f[1] = Y[0] + p[0] * Y[1];
  f[2] = p[1] + Y[2] * (Y[0] - p[2]);
}


x86 assembly (clang, -O0):
<rossler>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
subsd  0x10(%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x20(%rbp),%rax
subsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rossler>:
movsd  0x8(%rsi),%xmm0
xorpd  0xef3(%rip),%xmm0
subsd  0x10(%rsi),%xmm0
movsd  %xmm0,(%rcx)
movsd  (%rdx),%xmm0
mulsd  0x8(%rsi),%xmm0
addsd  (%rsi),%xmm0
movsd  %xmm0,0x8(%rcx)
movsd  (%rsi),%xmm0
subsd  0x10(%rdx),%xmm0
mulsd  0x10(%rsi),%xmm0
addsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x10(%rcx)
ret

LLVM IR (-O0):
define void @rossler(i32 %0, double %1, double* %2, double* %3, double* %4) {
%6 = alloca i32
%7 = alloca double
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
store i32 %0, i32* %6
store double %1, double* %7
store double* %2, double** %8
store double* %3, double** %9
store double* %4, double** %10
%11 = load double*, double** %8
%12 = getelementptr inbounds double, double* %11, i64 1
%13 = load double, double* %12
%14 = fneg double %13
%15 = load double*, double** %8
%16 = getelementptr inbounds double, double* %15, i64 2
%17 = load double, double* %16
%18 = fsub double %14, %17
%19 = load double*, double** %10
%20 = getelementptr inbounds double, double* %19, i64 0
store double %18, double* %20
%21 = load double*, double** %8
%22 = getelementptr inbounds double, double* %21, i64 0
%23 = load double, double* %22
%24 = load double*, double** %9
%25 = getelementptr inbounds double, double* %24, i64 0
%26 = load double, double* %25
%27 = load double*, double** %8
%28 = getelementptr inbounds double, double* %27, i64 1
%29 = load double, double* %28
%30 = call double @llvm.fmuladd.f64(double %26, double %29, double %23)
%31 = load double*, double** %10
%32 = getelementptr inbounds double, double* %31, i64 1
store double %30, double* %32
%33 = load double*, double** %9
%34 = getelementptr inbounds double, double* %33, i64 1
%35 = load double, double* %34
%36 = load double*, double** %8
%37 = getelementptr inbounds double, double* %36, i64 2
%38 = load double, double* %37
%39 = load double*, double** %8
%40 = getelementptr inbounds double, double* %39, i64 0
%41 = load double, double* %40
%42 = load double*, double** %9
%43 = getelementptr inbounds double, double* %42, i64 2
%44 = load double, double* %43
%45 = fsub double %41, %44
%46 = call double @llvm.fmuladd.f64(double %38, double %45, double %35)
%47 = load double*, double** %10
%48 = getelementptr inbounds double, double* %47, i64 2
store double %46, double* %48
ret void
}

LLVM IR (-O2):
define void @rossler(i32 %0, double %1, double* nocapture %2, double* nocapture %3, double* nocapture writeonly %4) {
%6 = getelementptr inbounds double, double* %2, i64 1
%7 = load double, double* %6
%8 = fneg double %7
%9 = getelementptr inbounds double, double* %2, i64 2
%10 = load double, double* %9
%11 = fsub double %8, %10
store double %11, double* %4
%12 = load double, double* %2
%13 = load double, double* %3
%14 = load double, double* %6
%15 = tail call double @llvm.fmuladd.f64(double %13, double %14, double %12)
%16 = getelementptr inbounds double, double* %4, i64 1
store double %15, double* %16
%17 = getelementptr inbounds double, double* %3, i64 1
%18 = load double, double* %17
%19 = load double, double* %9
%20 = load double, double* %2
%21 = getelementptr inbounds double, double* %3, i64 2
%22 = load double, double* %21
%23 = fsub double %20, %22
%24 = tail call double @llvm.fmuladd.f64(double %19, double %23, double %18)
%25 = getelementptr inbounds double, double* %4, i64 2
store double %24, double* %25
ret void
}