Update tests

This commit is contained in:
Jeehoon Kang
2020-06-12 05:05:23 +09:00
parent c2380efbb0
commit a12db7949c
256 changed files with 49817 additions and 49542 deletions

View File

@@ -6,28 +6,28 @@ init:
%l0:[10 x i32]:a
block b0:
%b0:i0:*i32 = getelementptr %l0:*[10 x i32] offset 0:i32
j b2(%b0:i0:*i32, 0:i32)
%b0:i0:i32* = getelementptr %l0:[10 x i32]* offset 0:i32
j b2(%b0:i0:i32*, 0:i32)
block b2:
%b2:p0:*i32:p
%b2:p0:i32*:p
%b2:p1:i32:i
%b2:i0:u1 = cmp lt %b2:p1:i32 10:i32
br %b2:i0:u1, b3(), b5()
block b3:
%b3:i0:i64 = mul 1:i64 4:i64
%b3:i1:*i32 = getelementptr %b2:p0:*i32 offset %b3:i0:i64
%b3:i2:unit = store %b2:p1:i32 %b2:p0:*i32
%b3:i1:i32* = getelementptr %b2:p0:i32* offset %b3:i0:i64
%b3:i2:unit = store %b2:p1:i32 %b2:p0:i32*
%b3:i3:i32 = add %b2:p1:i32 1:i32
j b2(%b3:i1:*i32, %b3:i3:i32)
j b2(%b3:i1:i32*, %b3:i3:i32)
block b5:
%b5:i0:*i32 = getelementptr %l0:*[10 x i32] offset 0:i32
%b5:i0:i32* = getelementptr %l0:[10 x i32]* offset 0:i32
%b5:i1:i64 = typecast 5:i32 to i64
%b5:i2:i64 = mul %b5:i1:i64 4:i64
%b5:i3:*i32 = getelementptr %b5:i0:*i32 offset %b5:i2:i64
%b5:i4:i32 = load %b5:i3:*i32
%b5:i3:i32* = getelementptr %b5:i0:i32* offset %b5:i2:i64
%b5:i4:i32 = load %b5:i3:i32*
%b5:i5:u1 = cmp eq %b5:i4:i32 5:i32
%b5:i6:i32 = typecast %b5:i5:u1 to i32
ret %b5:i6:i32