void geom_gam_cyl_rpz_B(double x[], double gam[3][3]) {
  gam[0][0] = 1.0;
  gam[0][1] = 0.0;
  gam[0][2] = 0.0;
  gam[1][0] = 0.0;
  gam[1][1] = x[0] * x[0];
  gam[1][2] = 0.0;
  gam[2][0] = 0.0;
  gam[2][1] = 0.0;
  gam[2][2] = 1.0;
}


x86 assembly (clang, -O0):
<geom_gam_cyl_rpz_B>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xee8(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe77(%rip),%xmm0
movsd  %xmm0,0x40(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<geom_gam_cyl_rpz_B>:
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rsi)
xorps  %xmm0,%xmm0
movups %xmm0,0x8(%rsi)
movq   $0x0,0x18(%rsi)
movsd  (%rdi),%xmm1
mulsd  %xmm1,%xmm1
movsd  %xmm1,0x20(%rsi)
movups %xmm0,0x28(%rsi)
movq   $0x0,0x38(%rsi)
mov    %rax,0x40(%rsi)
ret

LLVM IR (-O0):
define void @geom_gam_cyl_rpz_B(double* %0, [3 x double]* %1) {
%3 = alloca double*
%4 = alloca [3 x double]*
store double* %0, double** %3
store [3 x double]* %1, [3 x double]** %4
%5 = load [3 x double]*, [3 x double]** %4
%6 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0
%7 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
store double 1.000000e+00, double* %7
%8 = load [3 x double]*, [3 x double]** %4
%9 = getelementptr inbounds [3 x double], [3 x double]* %8, i64 0
%10 = getelementptr inbounds [3 x double], [3 x double]* %9, i64 0, i64 1
store double 0.000000e+00, double* %10
%11 = load [3 x double]*, [3 x double]** %4
%12 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0
%13 = getelementptr inbounds [3 x double], [3 x double]* %12, i64 0, i64 2
store double 0.000000e+00, double* %13
%14 = load [3 x double]*, [3 x double]** %4
%15 = getelementptr inbounds [3 x double], [3 x double]* %14, i64 1
%16 = getelementptr inbounds [3 x double], [3 x double]* %15, i64 0, i64 0
store double 0.000000e+00, double* %16
%17 = load double*, double** %3
%18 = getelementptr inbounds double, double* %17, i64 0
%19 = load double, double* %18
%20 = load double*, double** %3
%21 = getelementptr inbounds double, double* %20, i64 0
%22 = load double, double* %21
%23 = fmul double %19, %22
%24 = load [3 x double]*, [3 x double]** %4
%25 = getelementptr inbounds [3 x double], [3 x double]* %24, i64 1
%26 = getelementptr inbounds [3 x double], [3 x double]* %25, i64 0, i64 1
store double %23, double* %26
%27 = load [3 x double]*, [3 x double]** %4
%28 = getelementptr inbounds [3 x double], [3 x double]* %27, i64 1
%29 = getelementptr inbounds [3 x double], [3 x double]* %28, i64 0, i64 2
store double 0.000000e+00, double* %29
%30 = load [3 x double]*, [3 x double]** %4
%31 = getelementptr inbounds [3 x double], [3 x double]* %30, i64 2
%32 = getelementptr inbounds [3 x double], [3 x double]* %31, i64 0, i64 0
store double 0.000000e+00, double* %32
%33 = load [3 x double]*, [3 x double]** %4
%34 = getelementptr inbounds [3 x double], [3 x double]* %33, i64 2
%35 = getelementptr inbounds [3 x double], [3 x double]* %34, i64 0, i64 1
store double 0.000000e+00, double* %35
%36 = load [3 x double]*, [3 x double]** %4
%37 = getelementptr inbounds [3 x double], [3 x double]* %36, i64 2
%38 = getelementptr inbounds [3 x double], [3 x double]* %37, i64 0, i64 2
store double 1.000000e+00, double* %38
ret void
}

LLVM IR (-O2):
define void @geom_gam_cyl_rpz_B(double* nocapture %0, [3 x double]* nocapture writeonly %1) {
%3 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
store double 1.000000e+00, double* %3
%4 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 1
%5 = bitcast double* %4 to i8*
%6 = load double, double* %0
%7 = fmul double %6, %6
%8 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 1
store double %7, double* %8
%9 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 1, i64 2
%10 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 2, i64 2
%11 = bitcast double* %9 to i8*
store double 1.000000e+00, double* %10
ret void
}