mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-28 14:10:55 +00:00
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
This commit is contained in:
parent
472e8086cc
commit
5a3e29c661
@ -9,8 +9,10 @@
|
||||
implementation ; Functions:
|
||||
|
||||
uint "vnum_test4"(uint* %data) {
|
||||
%reg1101 = load uint* %data, uint 1
|
||||
%reg1111 = load uint* %data, uint 3
|
||||
%idx1 = getelementptr uint* %data, uint 1
|
||||
%idx2 = getelementptr uint* %data, uint 3
|
||||
%reg1101 = load uint* %idx1
|
||||
%reg1111 = load uint* %idx2
|
||||
%reg109 = mul uint %reg1101, %reg1111
|
||||
%reg108 = mul uint %reg1111, %reg1101
|
||||
%reg121 = sub uint %reg108, %reg109
|
||||
|
@ -12,7 +12,7 @@ void "build_image_array"()
|
||||
begin
|
||||
bb0: ;[#uses=0]
|
||||
%reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, uint 7 ; <%Disjunct * * *> [#uses=1]
|
||||
%reg108 = load %Disjunct * * * %reg109, uint 0 ; <%Disjunct * *> [#uses=1]
|
||||
%reg108 = load %Disjunct * * * %reg109 ; <%Disjunct * *> [#uses=1]
|
||||
%reg1000 = getelementptr %Disjunct * * %reg108, uint 3 ; <%Disjunct * *> [#uses=1]
|
||||
%cast1007 = cast %Disjunct * * %reg1000 to sbyte * * ; <sbyte * *> [#uses=1]
|
||||
%reg110 = load sbyte * * %cast1007 ; <sbyte *> [#uses=1]
|
||||
|
@ -12,6 +12,7 @@ begin
|
||||
bb0: ;[#uses=1]
|
||||
%cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1]
|
||||
%reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1]
|
||||
%reg118 = load %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
|
||||
%idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
|
||||
%reg118 = load %Village** %idx
|
||||
ret %Village *%reg118
|
||||
end
|
||||
|
@ -19,7 +19,7 @@ bb2: ;[#uses=3]
|
||||
%reg2281 = getelementptr sbyte*** %cast219, uint 6 ; <sbyte***> [#uses=1]
|
||||
store sbyte** null, sbyte*** %reg2281
|
||||
%reg2311 = getelementptr sbyte*** %cast219, uint 5 ; <sbyte***> [#uses=1]
|
||||
%reg114 = load sbyte*** %reg2311, uint 0 ; <sbyte**> [#uses=2]
|
||||
%reg114 = load sbyte*** %reg2311 ; <sbyte**> [#uses=2]
|
||||
%cond234 = seteq sbyte** %reg114, null ; <bool> [#uses=1]
|
||||
br bool %cond234, label %bb4, label %bb3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user