llvm.org GIT mirror llvm / 5a3e29c
Convert testcases to not use indexed loads/stores git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3460 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
4 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
88 implementation ; Functions:
99
1010 uint "vnum_test4"(uint* %data) {
11 %reg1101 = load uint* %data, uint 1
12 %reg1111 = load uint* %data, uint 3
11 %idx1 = getelementptr uint* %data, uint 1
12 %idx2 = getelementptr uint* %data, uint 3
13 %reg1101 = load uint* %idx1
14 %reg1111 = load uint* %idx2
1315 %reg109 = mul uint %reg1101, %reg1111
1416 %reg108 = mul uint %reg1111, %reg1101
1517 %reg121 = sub uint %reg108, %reg109
1111 begin
1212 bb0: ;[#uses=0]
1313 %reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, uint 7 ; <%Disjunct * * *> [#uses=1]
14 %reg108 = load %Disjunct * * * %reg109, uint 0 ; <%Disjunct * *> [#uses=1]
14 %reg108 = load %Disjunct * * * %reg109 ; <%Disjunct * *> [#uses=1]
1515 %reg1000 = getelementptr %Disjunct * * %reg108, uint 3 ; <%Disjunct * *> [#uses=1]
1616 %cast1007 = cast %Disjunct * * %reg1000 to sbyte * * ; [#uses=1]
1717 %reg110 = load sbyte * * %cast1007 ; [#uses=1]
1111 bb0: ;[#uses=1]
1212 %cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1]
1313 %reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1]
14 %reg118 = load %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
14 %idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
15 %reg118 = load %Village** %idx
1516 ret %Village *%reg118
1617 end
1818 %reg2281 = getelementptr sbyte*** %cast219, uint 6 ; [#uses=1]
1919 store sbyte** null, sbyte*** %reg2281
2020 %reg2311 = getelementptr sbyte*** %cast219, uint 5 ; [#uses=1]
21 %reg114 = load sbyte*** %reg2311, uint 0 ; [#uses=2]
21 %reg114 = load sbyte*** %reg2311 ; [#uses=2]
2222 %cond234 = seteq sbyte** %reg114, null ; [#uses=1]
2323 br bool %cond234, label %bb4, label %bb3
2424