Skip to content

Instantly share code, notes, and snippets.

@ArchRobison
Created October 14, 2015 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArchRobison/e762cd55b8cfc0e019a3 to your computer and use it in GitHub Desktop.
Save ArchRobison/e762cd55b8cfc0e019a3 to your computer and use it in GitHub Desktop.
define void @julia_quod_24255([4 x float]* sret, [4 x float]*, [4 x float]*, [4 x float]*) {
top:
%4 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 0
%5 = load float, float* %4, align 4
%6 = getelementptr inbounds [4 x float], [4 x float]* %3, i64 0, i64 0
%7 = load float, float* %6, align 4
%8 = fmul float %5, %7
%9 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 1
%10 = load float, float* %9, align 4
%11 = getelementptr inbounds [4 x float], [4 x float]* %3, i64 0, i64 1
%12 = load float, float* %11, align 4
%13 = fmul float %10, %12
%14 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 2
%15 = load float, float* %14, align 4
%16 = getelementptr inbounds [4 x float], [4 x float]* %3, i64 0, i64 2
%17 = load float, float* %16, align 4
%18 = fmul float %15, %17
%19 = getelementptr inbounds [4 x float], [4 x float]* %2, i64 0, i64 3
%20 = load float, float* %19, align 4
%21 = getelementptr inbounds [4 x float], [4 x float]* %3, i64 0, i64 3
%22 = load float, float* %21, align 4
%23 = fmul float %20, %22
%24 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 0
%25 = load float, float* %24, align 4
%26 = fadd float %8, %25
%27 = insertvalue [4 x float] undef, float %26, 0
%28 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 1
%29 = load float, float* %28, align 4
%30 = fadd float %13, %29
%31 = insertvalue [4 x float] %27, float %30, 1
%32 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 2
%33 = load float, float* %32, align 4
%34 = fadd float %18, %33
%35 = insertvalue [4 x float] %31, float %34, 2
%36 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 3
%37 = load float, float* %36, align 4
%38 = fadd float %23, %37
%39 = insertvalue [4 x float] %35, float %38, 3
store [4 x float] %39, [4 x float]* %0, align 4
ret void
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment