Skip to content

Instantly share code, notes, and snippets.

@bjacob
Created February 3, 2025 17:37
Show Gist options
  • Save bjacob/ee3ca9931c78541f1348a2da10bbbf39 to your computer and use it in GitHub Desktop.
Save bjacob/ee3ca9931c78541f1348a2da10bbbf39 to your computer and use it in GitHub Desktop.
; Function Attrs: convergent mustprogress nofree norecurse nounwind willreturn memory(none)
define linkonce_odr protected float @__ocml_erf_f32(float noundef %0) local_unnamed_addr #2 {
%2 = tail call float @llvm.fabs.f32(float %0)
%3 = fcmp olt float %2, 1.000000e+00
br i1 %3, label %4, label %12
4: ; preds = %1
%5 = fmul float %0, %0
%6 = tail call float @__ocml_fmuladd_f32(float noundef %5, float noundef 0xBF4268BC20000000, float noundef 0x3F74208280000000) #15
%7 = tail call float @__ocml_fmuladd_f32(float noundef %5, float noundef %6, float noundef 0xBF9B593700000000) #15
%8 = tail call float @__ocml_fmuladd_f32(float noundef %5, float noundef %7, float noundef 0x3FBCE077C0000000) #15
%9 = tail call float @__ocml_fmuladd_f32(float noundef %5, float noundef %8, float noundef 0xBFD8126600000000) #15
%10 = tail call float @__ocml_fmuladd_f32(float noundef %5, float noundef %9, float noundef 0x3FC06EBA00000000) #15
%11 = tail call float @llvm.fma.f32(float %2, float %10, float %2)
br label %23
12: ; preds = %1
%13 = tail call float @__ocml_fmuladd_f32(float noundef %2, float noundef 0x3EF1D31560000000, float noundef 0xBF38D12900000000) #15
%14 = tail call float @__ocml_fmuladd_f32(float noundef %2, float noundef %13, float noundef 0x3F6F9A6D20000000) #15
%15 = tail call float @__ocml_fmuladd_f32(float noundef %2, float noundef %14, float noundef 0xBF98C31640000000) #15
%16 = tail call float @__ocml_fmuladd_f32(float noundef %2, float noundef %15, float noundef 0x3FBB4E9C80000000) #15
%17 = tail call float @__ocml_fmuladd_f32(float noundef %2, float noundef %16, float noundef 0x3FE4515FA0000000) #15
%18 = tail call float @__ocml_fmuladd_f32(float noundef %2, float noundef %17, float noundef 0x3FC078E500000000) #15
%19 = tail call float @llvm.fma.f32(float %2, float %18, float %2)
%20 = fneg float %19
%21 = tail call float @__ocml_exp_f32(float noundef %20) #15
%22 = fsub float 1.000000e+00, %21
br label %23
23: ; preds = %12, %4
%24 = phi float [ %11, %4 ], [ %22, %12 ]
%25 = tail call float @llvm.copysign.f32(float %24, float %0)
ret float %25
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment