comparison test/CodeGen/Thumb/2007-05-05-InvalidPushPop.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 95c75e76d11b
children
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
7 @.str = internal constant [14 x i8] c"Thread 1: %d\0A\00" ; <[14 x i8]*> [#uses=1] 7 @.str = internal constant [14 x i8] c"Thread 1: %d\0A\00" ; <[14 x i8]*> [#uses=1]
8 @.str1 = internal constant [14 x i8] c"Thread 2: %d\0A\00" ; <[14 x i8]*> [#uses=1] 8 @.str1 = internal constant [14 x i8] c"Thread 2: %d\0A\00" ; <[14 x i8]*> [#uses=1]
9 9
10 define i8* @f(i8* %a) { 10 define i8* @f(i8* %a) {
11 entry: 11 entry:
12 %tmp1 = load i32* @i.1882 ; <i32> [#uses=1] 12 %tmp1 = load i32, i32* @i.1882 ; <i32> [#uses=1]
13 %tmp2 = add i32 %tmp1, 1 ; <i32> [#uses=2] 13 %tmp2 = add i32 %tmp1, 1 ; <i32> [#uses=2]
14 store i32 %tmp2, i32* @i.1882 14 store i32 %tmp2, i32* @i.1882
15 %tmp34 = inttoptr i32 %tmp2 to i8* ; <i8*> [#uses=1] 15 %tmp34 = inttoptr i32 %tmp2 to i8* ; <i8*> [#uses=1]
16 ret i8* %tmp34 16 ret i8* %tmp34
17 } 17 }
19 define i32 @main() { 19 define i32 @main() {
20 entry: 20 entry:
21 %t = alloca i32, align 4 ; <i32*> [#uses=4] 21 %t = alloca i32, align 4 ; <i32*> [#uses=4]
22 %ret = alloca i32, align 4 ; <i32*> [#uses=3] 22 %ret = alloca i32, align 4 ; <i32*> [#uses=3]
23 %tmp1 = call i32 @pthread_create( i32* %t, %struct.pthread_attr_t* null, i8* (i8*)* @f, i8* null ) ; <i32> [#uses=0] 23 %tmp1 = call i32 @pthread_create( i32* %t, %struct.pthread_attr_t* null, i8* (i8*)* @f, i8* null ) ; <i32> [#uses=0]
24 %tmp2 = load i32* %t ; <i32> [#uses=1] 24 %tmp2 = load i32, i32* %t ; <i32> [#uses=1]
25 %ret3 = bitcast i32* %ret to i8** ; <i8**> [#uses=2] 25 %ret3 = bitcast i32* %ret to i8** ; <i8**> [#uses=2]
26 %tmp4 = call i32 @pthread_join( i32 %tmp2, i8** %ret3 ) ; <i32> [#uses=0] 26 %tmp4 = call i32 @pthread_join( i32 %tmp2, i8** %ret3 ) ; <i32> [#uses=0]
27 %tmp5 = load i32* %ret ; <i32> [#uses=1] 27 %tmp5 = load i32, i32* %ret ; <i32> [#uses=1]
28 %tmp7 = call i32 (i8*, ...)* @printf( i8* getelementptr ([14 x i8]* @.str, i32 0, i32 0), i32 %tmp5 ) ; <i32> [#uses=0] 28 %tmp7 = call i32 (i8*, ...) @printf( i8* getelementptr ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), i32 %tmp5 ) ; <i32> [#uses=0]
29 %tmp8 = call i32 @pthread_create( i32* %t, %struct.pthread_attr_t* null, i8* (i8*)* @f, i8* null ) ; <i32> [#uses=0] 29 %tmp8 = call i32 @pthread_create( i32* %t, %struct.pthread_attr_t* null, i8* (i8*)* @f, i8* null ) ; <i32> [#uses=0]
30 %tmp9 = load i32* %t ; <i32> [#uses=1] 30 %tmp9 = load i32, i32* %t ; <i32> [#uses=1]
31 %tmp11 = call i32 @pthread_join( i32 %tmp9, i8** %ret3 ) ; <i32> [#uses=0] 31 %tmp11 = call i32 @pthread_join( i32 %tmp9, i8** %ret3 ) ; <i32> [#uses=0]
32 %tmp12 = load i32* %ret ; <i32> [#uses=1] 32 %tmp12 = load i32, i32* %ret ; <i32> [#uses=1]
33 %tmp14 = call i32 (i8*, ...)* @printf( i8* getelementptr ([14 x i8]* @.str1, i32 0, i32 0), i32 %tmp12 ) ; <i32> [#uses=0] 33 %tmp14 = call i32 (i8*, ...) @printf( i8* getelementptr ([14 x i8], [14 x i8]* @.str1, i32 0, i32 0), i32 %tmp12 ) ; <i32> [#uses=0]
34 ret i32 0 34 ret i32 0
35 } 35 }
36 36
37 declare i32 @pthread_create(i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*) 37 declare i32 @pthread_create(i32*, %struct.pthread_attr_t*, i8* (i8*)*, i8*)
38 38