Skip to content

Instantly share code, notes, and snippets.

@auroranockert
Last active December 19, 2015 18:09
Show Gist options
  • Save auroranockert/5996993 to your computer and use it in GitHub Desktop.
Save auroranockert/5996993 to your computer and use it in GitHub Desktop.
define <4 x float> @"_ZN7vupdate17_1f893621e1a881317_0$x2e0E"({ i64, %tydesc*, i8*, i8*, i8 }*, <4 x float>) #1 {
static_allocas:
%2 = alloca <4 x float>
%3 = alloca <4 x float>
%4 = alloca <4 x float>
%5 = alloca [2 x float]
br label %"function top level"
"function top level": ; preds = %static_allocas
store <4 x float> %1, <4 x float>* %3
%6 = load <4 x float>* %3
store <4 x float> %6, <4 x float>* %4
%7 = getelementptr inbounds [2 x float]* %5, i32 0, i32 0
%8 = getelementptr inbounds float* %7, i32 0
store float 1.000000e+01, float* %8
%9 = getelementptr inbounds float* %7, i32 1
store float 1.000000e+01, float* %9
%10 = bitcast [2 x float]* %5 to <2 x float>*
%11 = load <2 x float>* %10
%12 = load <4 x float>* %4
%13 = extractelement <2 x float> %11, i32 0
%14 = insertelement <4 x float> %12, float %13, i32 0
%15 = extractelement <2 x float> %11, i32 2
%16 = insertelement <4 x float> %12, float %15, i32 2
%17 = load <4 x float>* %4
store <4 x float> %17, <4 x float>* %2
br label %return
return: ; preds = %"function top level"
%18 = load <4 x float>* %2
ret <4 x float> %18
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment