Mercurial > hg > CbC > CbC_examples
comparison factorial/test.s @ 0:bacef8675607
init repository
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Oct 2014 17:34:59 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bacef8675607 |
---|---|
1 ; ModuleID = '../../../test.c' | |
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" | |
3 target triple = "x86_64-apple-macosx10.8.0" | |
4 | |
5 @.str = private unnamed_addr constant [6 x i8] c"hello\00", align 1 | |
6 | |
7 ; Function Attrs: nounwind ssp uwtable | |
8 define void @hello() #0 { | |
9 entry: | |
10 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0)) | |
11 ret void | |
12 } | |
13 | |
14 declare i32 @printf(i8*, ...) #1 | |
15 | |
16 ; Function Attrs: nounwind ssp uwtable | |
17 define i32 @main() #0 { | |
18 entry: | |
19 %retval = alloca i32, align 4 | |
20 store i32 0, i32* %retval | |
21 call void @hello() | |
22 call void @hello() | |
23 ret i32 0 | |
24 } | |
25 | |
26 attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } | |
27 attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-fp-math"="false" "use-soft-float"="false" } |