void corner_strmm_nt_4x1_lib4(float *A, float *B, float *C) {
  const int bs = 4;
  const int lda = bs;
  const int ldc = bs;
  float a_0, a_1, a_2, a_3, b_0, b_1, b_2, b_3, c_00 = 0, c_10 = 0, c_20 = 0,
                                                c_30 = 0;
  a_0 = A[0 + lda * 0];
  a_1 = A[1 + lda * 0];
  a_2 = A[2 + lda * 0];
  a_3 = A[3 + lda * 0];
  b_0 = B[0 + lda * 0];
  c_00 += a_0 * b_0;
  c_10 += a_1 * b_0;
  c_20 += a_2 * b_0;
  c_30 += a_3 * b_0;
  C[0 + ldc * 0] = c_00;
  C[1 + ldc * 0] = c_10;
  C[2 + ldc * 0] = c_20;
  C[3 + ldc * 0] = c_30;
}


x86 assembly (clang, -O0):
<corner_strmm_nt_4x1_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x4,-0x1c(%rbp)
movl   $0x4,-0x20(%rbp)
movl   $0x4,-0x24(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x28(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movss  -0x48(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x2c(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x30(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movss  -0x50(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x34(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
movss  -0x54(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
movss  -0x4c(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x4(%rax)
movss  -0x50(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x8(%rax)
movss  -0x54(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0xc(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<corner_strmm_nt_4x1_lib4>:
movups (%rdi),%xmm0
movss  (%rsi),%xmm1
shufps $0x0,%xmm1,%xmm1
mulps  %xmm0,%xmm1
xorps  %xmm0,%xmm0
addps  %xmm1,%xmm0
movups %xmm0,(%rdx)
ret

LLVM IR (-O0):
define void @corner_strmm_nt_4x1_lib4(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
store i32 4, i32* %7
store i32 4, i32* %8
store i32 4, i32* %9
store float 0.000000e+00, float* %18
store float 0.000000e+00, float* %19
store float 0.000000e+00, float* %20
store float 0.000000e+00, float* %21
%22 = load float*, float** %4
%23 = getelementptr inbounds float, float* %22, i64 0
%24 = load float, float* %23
store float %24, float* %10
%25 = load float*, float** %4
%26 = getelementptr inbounds float, float* %25, i64 1
%27 = load float, float* %26
store float %27, float* %11
%28 = load float*, float** %4
%29 = getelementptr inbounds float, float* %28, i64 2
%30 = load float, float* %29
store float %30, float* %12
%31 = load float*, float** %4
%32 = getelementptr inbounds float, float* %31, i64 3
%33 = load float, float* %32
store float %33, float* %13
%34 = load float*, float** %5
%35 = getelementptr inbounds float, float* %34, i64 0
%36 = load float, float* %35
store float %36, float* %14
%37 = load float, float* %10
%38 = load float, float* %14
%39 = load float, float* %18
%40 = call float @llvm.fmuladd.f32(float %37, float %38, float %39)
store float %40, float* %18
%41 = load float, float* %11
%42 = load float, float* %14
%43 = load float, float* %19
%44 = call float @llvm.fmuladd.f32(float %41, float %42, float %43)
store float %44, float* %19
%45 = load float, float* %12
%46 = load float, float* %14
%47 = load float, float* %20
%48 = call float @llvm.fmuladd.f32(float %45, float %46, float %47)
store float %48, float* %20
%49 = load float, float* %13
%50 = load float, float* %14
%51 = load float, float* %21
%52 = call float @llvm.fmuladd.f32(float %49, float %50, float %51)
store float %52, float* %21
%53 = load float, float* %18
%54 = load float*, float** %6
%55 = getelementptr inbounds float, float* %54, i64 0
store float %53, float* %55
%56 = load float, float* %19
%57 = load float*, float** %6
%58 = getelementptr inbounds float, float* %57, i64 1
store float %56, float* %58
%59 = load float, float* %20
%60 = load float*, float** %6
%61 = getelementptr inbounds float, float* %60, i64 2
store float %59, float* %61
%62 = load float, float* %21
%63 = load float*, float** %6
%64 = getelementptr inbounds float, float* %63, i64 3
store float %62, float* %64
ret void
}

LLVM IR (-O2):
define void @corner_strmm_nt_4x1_lib4(float* nocapture %0, float* nocapture %1, float* nocapture writeonly %2) {
%4 = bitcast float* %0 to <4 x float>*
%5 = load <4 x float>, <4 x float>* %4
%6 = load float, float* %1
%7 = insertelement <4 x float> poison, float %6, i64 0
%8 = shufflevector <4 x float> %7, <4 x float> poison, <4 x i32> zeroinitializer
%9 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %5, <4 x float> %8, <4 x float> zeroinitializer)
%10 = bitcast float* %2 to <4 x float>*
store <4 x float> %9, <4 x float>* %10
ret void
}