#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
float cosf(float);
float sinf(float);
float sqrtf(float);
void vec4_rotate(float rot[4], float vec[4], float angle) {
  float sin_t2, cos_t2, module;
  float t1[4], t2[4], t[4];
  angle /= 2.0;
  sin_t2 = sinf(angle);
  cos_t2 = cosf(angle);
  t1[3] = cos_t2;
  t1[0] = vec[0] * sin_t2;
  t1[1] = vec[1] * sin_t2;
  t1[2] = vec[2] * sin_t2;
  module = (sqrtf((t1)[0] * (t1)[0] + (t1)[1] * (t1)[1] + (t1)[2] * (t1)[2] +
                  (t1)[3] * (t1)[3]));
  t2[3] = t1[3] / module;
  t2[0] = -t1[0] / module;
  t2[1] = -t1[1] / module;
  t2[2] = -t1[2] / module;
  rot[3] = 0.0;
  {
    (t)[0] = (t1)[3] * (rot)[0] + (t1)[0] * (rot)[3] + (t1)[1] * (rot)[2] -
             (t1)[2] * (rot)[1];
    (t)[1] = (t1)[3] * (rot)[1] + (t1)[1] * (rot)[3] + (t1)[2] * (rot)[0] -
             (t1)[0] * (rot)[2];
    (t)[2] = (t1)[3] * (rot)[2] + (t1)[2] * (rot)[3] + (t1)[0] * (rot)[1] -
             (t1)[1] * (rot)[0];
    (t)[3] = (t1)[3] * (rot)[3] - (t1)[0] * (rot)[0] - (t1)[1] * (rot)[1] -
             (t1)[2] * (rot)[2];
  };
  {
    (rot)[0] = (t)[3] * (t2)[0] + (t)[0] * (t2)[3] + (t)[1] * (t2)[2] -
               (t)[2] * (t2)[1];
    (rot)[1] = (t)[3] * (t2)[1] + (t)[1] * (t2)[3] + (t)[2] * (t2)[0] -
               (t)[0] * (t2)[2];
    (rot)[2] = (t)[3] * (t2)[2] + (t)[2] * (t2)[3] + (t)[0] * (t2)[1] -
               (t)[1] * (t2)[0];
    (rot)[3] = (t)[3] * (t2)[3] - (t)[0] * (t2)[0] - (t)[1] * (t2)[1] -
               (t)[2] * (t2)[2];
  };
}


x86 assembly (clang, -O0):
<vec4_rotate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeaa(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
call   1030 <sinf@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <cosf@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mulss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x30(%rbp),%xmm0
movss  -0x30(%rbp),%xmm2
movss  -0x2c(%rbp),%xmm1
mulss  -0x2c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x28(%rbp),%xmm1
movss  -0x28(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x24(%rbp),%xmm0
movss  -0x24(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1050 <sqrtf@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0x24(%rbp),%xmm0
divss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x30(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
divss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x2c(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
divss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x28(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
divss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rax)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm2
movss  -0x30(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x2c(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm2
movss  -0x2c(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x28(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x30(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
movss  -0x28(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mulss  0xc(%rax),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x30(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x2c(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x24(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm2
movss  -0x30(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mulss  (%rax),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x2c(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
movss  -0x40(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x4c(%rbp),%xmm1
movss  -0x38(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x48(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x44(%rbp),%xmm0
movss  -0x3c(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x48(%rbp),%xmm1
movss  -0x40(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x50(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0x44(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movss  -0x48(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x50(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm2
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x4c(%rbp),%xmm0
movss  -0x40(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x8(%rax)
movss  -0x44(%rbp),%xmm0
movss  -0x34(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  -0x40(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x4c(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm2
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x48(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0xc(%rax)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec4_rotate>:
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
mov    %rdi,%r14
mulss  0xebb(%rip),%xmm0
movss  %xmm0,(%rsp)
call   1030 <sinf@plt>
movaps %xmm0,0x10(%rsp)
movss  (%rsp),%xmm0
call   1040 <cosf@plt>
movaps %xmm0,%xmm12
movsd  (%rbx),%xmm0
movaps 0x10(%rsp),%xmm2
movaps %xmm2,%xmm13
shufps $0x0,%xmm2,%xmm13
mulps  %xmm0,%xmm13
movaps %xmm13,%xmm3
shufps $0x55,%xmm13,%xmm3
mulss  0x8(%rbx),%xmm2
movaps %xmm3,%xmm0
mulss  %xmm3,%xmm0
movaps %xmm13,%xmm1
mulss  %xmm13,%xmm1
addss  %xmm0,%xmm1
movaps %xmm2,0x10(%rsp)
mulss  %xmm2,%xmm2
addss  %xmm1,%xmm2
movaps %xmm12,%xmm0
mulss  %xmm12,%xmm0
addss  %xmm2,%xmm0
xorps  %xmm14,%xmm14
ucomiss %xmm14,%xmm0
jb     11c4 <vec4_rotate+0x94>
sqrtss %xmm0,%xmm0
jmp    11ed <vec4_rotate+0xbd>
movaps %xmm12,(%rsp)
movaps %xmm13,0x30(%rsp)
movaps %xmm3,0x20(%rsp)
call   1050 <sqrtf@plt>
xorps  %xmm14,%xmm14
movaps 0x20(%rsp),%xmm3
movaps 0x30(%rsp),%xmm13
movaps (%rsp),%xmm12
movaps 0xe1b(%rip),%xmm9
movaps %xmm13,%xmm10
xorps  %xmm9,%xmm10
movaps 0x10(%rsp),%xmm11
movaps %xmm11,%xmm1
xorps  %xmm9,%xmm1
pshufd $0x55,%xmm10,%xmm8
movaps %xmm12,%xmm4
movlhps %xmm1,%xmm4
movaps %xmm10,%xmm1
shufps $0x24,%xmm4,%xmm1
shufps $0x0,%xmm0,%xmm0
divps  %xmm0,%xmm1
movaps %xmm13,%xmm0
mulss  %xmm14,%xmm0
movsd  (%r14),%xmm6
movaps %xmm12,%xmm4
mulss  %xmm6,%xmm4
addss  %xmm0,%xmm4
movss  0x8(%r14),%xmm2
movaps %xmm3,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm4,%xmm0
movaps %xmm11,%xmm4
unpcklps %xmm11,%xmm3
movaps %xmm2,%xmm7
shufps $0xd4,%xmm6,%xmm7
shufps $0x52,%xmm6,%xmm7
movaps %xmm11,%xmm5
unpcklps %xmm13,%xmm5
mulps  %xmm6,%xmm5
mulss  %xmm2,%xmm11
unpcklps %xmm6,%xmm2
mulss  %xmm6,%xmm10
shufps $0x55,%xmm6,%xmm6
mulss  %xmm6,%xmm4
subss  %xmm4,%xmm0
xorps  %xmm4,%xmm4
mulps  %xmm3,%xmm4
movaps %xmm12,%xmm3
shufps $0x0,%xmm12,%xmm3
mulps  %xmm3,%xmm7
addps  %xmm4,%xmm7
addps  %xmm7,%xmm5
mulps  %xmm13,%xmm2
subps  %xmm2,%xmm5
mulss  %xmm14,%xmm12
addss  %xmm10,%xmm12
mulss  %xmm8,%xmm6
addss  %xmm12,%xmm6
subss  %xmm11,%xmm6
movaps %xmm0,%xmm3
xorps  %xmm9,%xmm3
xorps  %xmm5,%xmm9
movaps %xmm1,%xmm2
shufps $0x3f,%xmm1,%xmm2
movaps %xmm3,%xmm4
shufps $0xd4,%xmm9,%xmm3
shufps $0x42,%xmm9,%xmm3
movlhps %xmm0,%xmm9
movlhps %xmm5,%xmm0
shufps $0xd4,%xmm5,%xmm4
shufps $0x28,%xmm4,%xmm0
mulps  %xmm2,%xmm0
shufps $0x0,%xmm6,%xmm6
mulps  %xmm1,%xmm6
addps  %xmm0,%xmm6
shufps $0x24,%xmm9,%xmm5
movaps %xmm1,%xmm0
shufps $0x52,%xmm1,%xmm0
mulps  %xmm5,%xmm0
addps  %xmm6,%xmm0
shufps $0x89,%xmm1,%xmm1
mulps  %xmm3,%xmm1
addps  %xmm0,%xmm1
movups %xmm1,(%r14)
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @vec4_rotate(float* %0, float* %1, float %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca [4 x float]
%11 = alloca [4 x float]
%12 = alloca [4 x float]
store float* %0, float** %4
store float* %1, float** %5
store float %2, float* %6
%13 = load float, float* %6
%14 = fpext float %13 to double
%15 = fdiv double %14, 2.000000e+00
%16 = fptrunc double %15 to float
store float %16, float* %6
%17 = load float, float* %6
%18 = call float @sinf(float %17)
store float %18, float* %7
%19 = load float, float* %6
%20 = call float @cosf(float %19)
store float %20, float* %8
%21 = load float, float* %8
%22 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
store float %21, float* %22
%23 = load float*, float** %5
%24 = getelementptr inbounds float, float* %23, i64 0
%25 = load float, float* %24
%26 = load float, float* %7
%27 = fmul float %25, %26
%28 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
store float %27, float* %28
%29 = load float*, float** %5
%30 = getelementptr inbounds float, float* %29, i64 1
%31 = load float, float* %30
%32 = load float, float* %7
%33 = fmul float %31, %32
%34 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
store float %33, float* %34
%35 = load float*, float** %5
%36 = getelementptr inbounds float, float* %35, i64 2
%37 = load float, float* %36
%38 = load float, float* %7
%39 = fmul float %37, %38
%40 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
store float %39, float* %40
%41 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%42 = load float, float* %41
%43 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%44 = load float, float* %43
%45 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%46 = load float, float* %45
%47 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%48 = load float, float* %47
%49 = fmul float %46, %48
%50 = call float @llvm.fmuladd.f32(float %42, float %44, float %49)
%51 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%52 = load float, float* %51
%53 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%54 = load float, float* %53
%55 = call float @llvm.fmuladd.f32(float %52, float %54, float %50)
%56 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%57 = load float, float* %56
%58 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%59 = load float, float* %58
%60 = call float @llvm.fmuladd.f32(float %57, float %59, float %55)
%61 = call float @sqrtf(float %60)
store float %61, float* %9
%62 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%63 = load float, float* %62
%64 = load float, float* %9
%65 = fdiv float %63, %64
%66 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 3
store float %65, float* %66
%67 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%68 = load float, float* %67
%69 = fneg float %68
%70 = load float, float* %9
%71 = fdiv float %69, %70
%72 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 0
store float %71, float* %72
%73 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%74 = load float, float* %73
%75 = fneg float %74
%76 = load float, float* %9
%77 = fdiv float %75, %76
%78 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 1
store float %77, float* %78
%79 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%80 = load float, float* %79
%81 = fneg float %80
%82 = load float, float* %9
%83 = fdiv float %81, %82
%84 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 2
store float %83, float* %84
%85 = load float*, float** %4
%86 = getelementptr inbounds float, float* %85, i64 3
store float 0.000000e+00, float* %86
%87 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%88 = load float, float* %87
%89 = load float*, float** %4
%90 = getelementptr inbounds float, float* %89, i64 0
%91 = load float, float* %90
%92 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%93 = load float, float* %92
%94 = load float*, float** %4
%95 = getelementptr inbounds float, float* %94, i64 3
%96 = load float, float* %95
%97 = fmul float %93, %96
%98 = call float @llvm.fmuladd.f32(float %88, float %91, float %97)
%99 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%100 = load float, float* %99
%101 = load float*, float** %4
%102 = getelementptr inbounds float, float* %101, i64 2
%103 = load float, float* %102
%104 = call float @llvm.fmuladd.f32(float %100, float %103, float %98)
%105 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%106 = load float, float* %105
%107 = load float*, float** %4
%108 = getelementptr inbounds float, float* %107, i64 1
%109 = load float, float* %108
%110 = fneg float %106
%111 = call float @llvm.fmuladd.f32(float %110, float %109, float %104)
%112 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 0
store float %111, float* %112
%113 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%114 = load float, float* %113
%115 = load float*, float** %4
%116 = getelementptr inbounds float, float* %115, i64 1
%117 = load float, float* %116
%118 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%119 = load float, float* %118
%120 = load float*, float** %4
%121 = getelementptr inbounds float, float* %120, i64 3
%122 = load float, float* %121
%123 = fmul float %119, %122
%124 = call float @llvm.fmuladd.f32(float %114, float %117, float %123)
%125 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%126 = load float, float* %125
%127 = load float*, float** %4
%128 = getelementptr inbounds float, float* %127, i64 0
%129 = load float, float* %128
%130 = call float @llvm.fmuladd.f32(float %126, float %129, float %124)
%131 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%132 = load float, float* %131
%133 = load float*, float** %4
%134 = getelementptr inbounds float, float* %133, i64 2
%135 = load float, float* %134
%136 = fneg float %132
%137 = call float @llvm.fmuladd.f32(float %136, float %135, float %130)
%138 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 1
store float %137, float* %138
%139 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%140 = load float, float* %139
%141 = load float*, float** %4
%142 = getelementptr inbounds float, float* %141, i64 2
%143 = load float, float* %142
%144 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%145 = load float, float* %144
%146 = load float*, float** %4
%147 = getelementptr inbounds float, float* %146, i64 3
%148 = load float, float* %147
%149 = fmul float %145, %148
%150 = call float @llvm.fmuladd.f32(float %140, float %143, float %149)
%151 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%152 = load float, float* %151
%153 = load float*, float** %4
%154 = getelementptr inbounds float, float* %153, i64 1
%155 = load float, float* %154
%156 = call float @llvm.fmuladd.f32(float %152, float %155, float %150)
%157 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%158 = load float, float* %157
%159 = load float*, float** %4
%160 = getelementptr inbounds float, float* %159, i64 0
%161 = load float, float* %160
%162 = fneg float %158
%163 = call float @llvm.fmuladd.f32(float %162, float %161, float %156)
%164 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 2
store float %163, float* %164
%165 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 3
%166 = load float, float* %165
%167 = load float*, float** %4
%168 = getelementptr inbounds float, float* %167, i64 3
%169 = load float, float* %168
%170 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 0
%171 = load float, float* %170
%172 = load float*, float** %4
%173 = getelementptr inbounds float, float* %172, i64 0
%174 = load float, float* %173
%175 = fmul float %171, %174
%176 = fneg float %175
%177 = call float @llvm.fmuladd.f32(float %166, float %169, float %176)
%178 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 1
%179 = load float, float* %178
%180 = load float*, float** %4
%181 = getelementptr inbounds float, float* %180, i64 1
%182 = load float, float* %181
%183 = fneg float %179
%184 = call float @llvm.fmuladd.f32(float %183, float %182, float %177)
%185 = getelementptr inbounds [4 x float], [4 x float]* %10, i64 0, i64 2
%186 = load float, float* %185
%187 = load float*, float** %4
%188 = getelementptr inbounds float, float* %187, i64 2
%189 = load float, float* %188
%190 = fneg float %186
%191 = call float @llvm.fmuladd.f32(float %190, float %189, float %184)
%192 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 3
store float %191, float* %192
%193 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 3
%194 = load float, float* %193
%195 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 0
%196 = load float, float* %195
%197 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 0
%198 = load float, float* %197
%199 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 3
%200 = load float, float* %199
%201 = fmul float %198, %200
%202 = call float @llvm.fmuladd.f32(float %194, float %196, float %201)
%203 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 1
%204 = load float, float* %203
%205 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 2
%206 = load float, float* %205
%207 = call float @llvm.fmuladd.f32(float %204, float %206, float %202)
%208 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 2
%209 = load float, float* %208
%210 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 1
%211 = load float, float* %210
%212 = fneg float %209
%213 = call float @llvm.fmuladd.f32(float %212, float %211, float %207)
%214 = load float*, float** %4
%215 = getelementptr inbounds float, float* %214, i64 0
store float %213, float* %215
%216 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 3
%217 = load float, float* %216
%218 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 1
%219 = load float, float* %218
%220 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 1
%221 = load float, float* %220
%222 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 3
%223 = load float, float* %222
%224 = fmul float %221, %223
%225 = call float @llvm.fmuladd.f32(float %217, float %219, float %224)
%226 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 2
%227 = load float, float* %226
%228 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 0
%229 = load float, float* %228
%230 = call float @llvm.fmuladd.f32(float %227, float %229, float %225)
%231 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 0
%232 = load float, float* %231
%233 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 2
%234 = load float, float* %233
%235 = fneg float %232
%236 = call float @llvm.fmuladd.f32(float %235, float %234, float %230)
%237 = load float*, float** %4
%238 = getelementptr inbounds float, float* %237, i64 1
store float %236, float* %238
%239 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 3
%240 = load float, float* %239
%241 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 2
%242 = load float, float* %241
%243 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 2
%244 = load float, float* %243
%245 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 3
%246 = load float, float* %245
%247 = fmul float %244, %246
%248 = call float @llvm.fmuladd.f32(float %240, float %242, float %247)
%249 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 0
%250 = load float, float* %249
%251 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 1
%252 = load float, float* %251
%253 = call float @llvm.fmuladd.f32(float %250, float %252, float %248)
%254 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 1
%255 = load float, float* %254
%256 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 0
%257 = load float, float* %256
%258 = fneg float %255
%259 = call float @llvm.fmuladd.f32(float %258, float %257, float %253)
%260 = load float*, float** %4
%261 = getelementptr inbounds float, float* %260, i64 2
store float %259, float* %261
%262 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 3
%263 = load float, float* %262
%264 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 3
%265 = load float, float* %264
%266 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 0
%267 = load float, float* %266
%268 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 0
%269 = load float, float* %268
%270 = fmul float %267, %269
%271 = fneg float %270
%272 = call float @llvm.fmuladd.f32(float %263, float %265, float %271)
%273 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 1
%274 = load float, float* %273
%275 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 1
%276 = load float, float* %275
%277 = fneg float %274
%278 = call float @llvm.fmuladd.f32(float %277, float %276, float %272)
%279 = getelementptr inbounds [4 x float], [4 x float]* %12, i64 0, i64 2
%280 = load float, float* %279
%281 = getelementptr inbounds [4 x float], [4 x float]* %11, i64 0, i64 2
%282 = load float, float* %281
%283 = fneg float %280
%284 = call float @llvm.fmuladd.f32(float %283, float %282, float %278)
%285 = load float*, float** %4
%286 = getelementptr inbounds float, float* %285, i64 3
store float %284, float* %286
ret void
}

LLVM IR (-O2):
define void @vec4_rotate(float* nocapture %0, float* nocapture %1, float %2) {
%4 = fmul float %2, 5.000000e-01
%5 = tail call float @sinf(float %4)
%6 = tail call float @cosf(float %4)
%7 = bitcast float* %1 to <2 x float>*
%8 = load <2 x float>, <2 x float>* %7
%9 = insertelement <2 x float> poison, float %5, i64 0
%10 = shufflevector <2 x float> %9, <2 x float> poison, <2 x i32> zeroinitializer
%11 = fmul <2 x float> %10, %8
%12 = getelementptr inbounds float, float* %1, i64 2
%13 = load float, float* %12
%14 = fmul float %5, %13
%15 = extractelement <2 x float> %11, i64 1
%16 = fmul float %15, %15
%17 = extractelement <2 x float> %11, i64 0
%18 = tail call float @llvm.fmuladd.f32(float %17, float %17, float %16)
%19 = tail call float @llvm.fmuladd.f32(float %14, float %14, float %18)
%20 = tail call float @llvm.fmuladd.f32(float %6, float %6, float %19)
%21 = tail call float @sqrtf(float %20)
%22 = fneg <2 x float> %11
%23 = fneg float %14
%24 = extractelement <2 x float> %22, i64 0
%25 = insertelement <4 x float> poison, float %24, i64 0
%26 = extractelement <2 x float> %22, i64 1
%27 = insertelement <4 x float> %25, float %26, i64 1
%28 = insertelement <4 x float> %27, float %23, i64 2
%29 = insertelement <4 x float> %28, float %6, i64 3
%30 = insertelement <4 x float> poison, float %21, i64 0
%31 = shufflevector <4 x float> %30, <4 x float> poison, <4 x i32> zeroinitializer
%32 = fdiv <4 x float> %29, %31
%33 = fmul float %17, 0.000000e+00
%34 = bitcast float* %0 to <2 x float>*
%35 = load <2 x float>, <2 x float>* %34
%36 = extractelement <2 x float> %35, i64 0
%37 = tail call float @llvm.fmuladd.f32(float %6, float %36, float %33)
%38 = getelementptr inbounds float, float* %0, i64 2
%39 = load float, float* %38
%40 = tail call float @llvm.fmuladd.f32(float %15, float %39, float %37)
%41 = extractelement <2 x float> %35, i64 1
%42 = tail call float @llvm.fmuladd.f32(float %23, float %41, float %40)
%43 = insertelement <2 x float> poison, float %15, i64 0
%44 = insertelement <2 x float> %43, float %14, i64 1
%45 = fmul <2 x float> %44, zeroinitializer
%46 = insertelement <2 x float> poison, float %6, i64 0
%47 = shufflevector <2 x float> %46, <2 x float> poison, <2 x i32> zeroinitializer
%48 = insertelement <2 x float> poison, float %41, i64 0
%49 = insertelement <2 x float> %48, float %39, i64 1
%50 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %47, <2 x float> %49, <2 x float> %45)
%51 = insertelement <2 x float> poison, float %14, i64 0
%52 = shufflevector <2 x float> %51, <2 x float> %11, <2 x i32> <i32 0, i32 2>
%53 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %52, <2 x float> %35, <2 x float> %50)
%54 = insertelement <2 x float> poison, float %39, i64 0
%55 = shufflevector <2 x float> %54, <2 x float> %35, <2 x i32> <i32 0, i32 2>
%56 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %22, <2 x float> %55, <2 x float> %53)
%57 = fmul <2 x float> %35, %22
%58 = extractelement <2 x float> %57, i64 0
%59 = tail call float @llvm.fmuladd.f32(float %6, float 0.000000e+00, float %58)
%60 = tail call float @llvm.fmuladd.f32(float %26, float %41, float %59)
%61 = tail call float @llvm.fmuladd.f32(float %23, float %39, float %60)
%62 = fneg float %42
%63 = fneg <2 x float> %56
%64 = shufflevector <2 x float> %63, <2 x float> poison, <4 x i32> <i32 0, i32 undef, i32 undef, i32 undef>
%65 = shufflevector <4 x float> %32, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 undef, i32 undef>
%66 = shufflevector <4 x float> %65, <4 x float> poison, <4 x i32> <i32 0, i32 0, i32 0, i32 1>
%67 = insertelement <4 x float> poison, float %42, i64 0
%68 = shufflevector <2 x float> %56, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%69 = shufflevector <4 x float> %67, <4 x float> %68, <4 x i32> <i32 0, i32 4, i32 5, i32 undef>
%70 = insertelement <4 x float> %69, float %62, i64 3
%71 = fmul <4 x float> %66, %70
%72 = insertelement <4 x float> poison, float %61, i64 0
%73 = shufflevector <4 x float> %72, <4 x float> poison, <4 x i32> zeroinitializer
%74 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %73, <4 x float> %32, <4 x float> %71)
%75 = extractelement <2 x float> %56, i64 0
%76 = insertelement <4 x float> poison, float %75, i64 0
%77 = extractelement <2 x float> %56, i64 1
%78 = insertelement <4 x float> %76, float %77, i64 1
%79 = insertelement <4 x float> %78, float %42, i64 2
%80 = shufflevector <4 x float> %79, <4 x float> %64, <4 x i32> <i32 0, i32 1, i32 2, i32 4>
%81 = shufflevector <4 x float> %32, <4 x float> undef, <4 x i32> <i32 2, i32 0, i32 1, i32 1>
%82 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %80, <4 x float> %81, <4 x float> %74)
%83 = extractelement <2 x float> %63, i64 1
%84 = insertelement <4 x float> poison, float %83, i64 0
%85 = insertelement <4 x float> %84, float %62, i64 1
%86 = shufflevector <2 x float> %63, <2 x float> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%87 = shufflevector <4 x float> %85, <4 x float> %86, <4 x i32> <i32 0, i32 1, i32 4, i32 5>
%88 = shufflevector <4 x float> %32, <4 x float> undef, <4 x i32> <i32 1, i32 2, i32 0, i32 2>
%89 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %87, <4 x float> %88, <4 x float> %82)
%90 = bitcast float* %0 to <4 x float>*
store <4 x float> %89, <4 x float>* %90
ret void
}