Skip to content

Instantly share code, notes, and snippets.

@syoyo
Created January 5, 2009 12:45
Show Gist options
  • Save syoyo/43378 to your computer and use it in GitHub Desktop.
Save syoyo/43378 to your computer and use it in GitHub Desktop.
; ModuleID = '<stdin>'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9"
define i32 @func(...) nounwind readnone {
entry:
br label %for.inc
for.inc: ; preds = %for.inc, %entry
%i.0.reg2mem.0 = phi float [ 0.000000e+00, %entry ], [ %add, %for.inc ]; <float> [#uses=1]
%add = add float %i.0.reg2mem.0, 1.000000e+00 ; <float> [#uses=2]
%cmp = fcmp olt float %add, 1.000000e+03 ; <i1> [#uses=1]
br i1 %cmp, label %for.inc, label %return
return: ; preds = %for.inc
ret i32 undef
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment