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

@@ -1,10 +1,10 @@
struct color : { i32, i8 }
struct color : { number:i32, name:i8 }
fun i32 @main () {
init:
bid: b0
allocations:
%l0: struct color:c
%l0:struct color:c
block b0:
%b0:i0:u64 = typecast 0:i32 to u64
@@ -13,17 +13,17 @@ block b0:
%b0:i3:u64 = typecast %b0:i2:i32 to u64
%b0:i4:u64 = add %b0:i3:u64 1:u64
%b0:i5:i32 = typecast %b0:i4:u64 to i32
%b0:i6:*i32 = getelementptr %l0:* struct color offset 0:i64
%b0:i7:unit = store 1:i32 %b0:i6:*i32
%b0:i8:*i8 = getelementptr %l0:* struct color offset 4:i64
%b0:i6:i32* = getelementptr %l0:struct color* offset 0:i64
%b0:i7:unit = store 1:i32 %b0:i6:i32*
%b0:i8:i8* = getelementptr %l0:struct color* offset 4:i64
%b0:i9:i8 = typecast 2:i32 to i8
%b0:i10:unit = store %b0:i9:i8 %b0:i8:*i8
%b0:i11:*i8 = getelementptr %l0:* struct color offset 4:i64
%b0:i12:i8 = load %b0:i11:*i8
%b0:i10:unit = store %b0:i9:i8 %b0:i8:i8*
%b0:i11:i8* = getelementptr %l0:struct color* offset 4:i64
%b0:i12:i8 = load %b0:i11:i8*
%b0:i13:i32 = typecast %b0:i12:i8 to i32
%b0:i14:i32 = add %b0:i5:i32 %b0:i13:i32
%b0:i15:*i8 = getelementptr %l0:* struct color offset 4:i64
%b0:i16:i8 = load %b0:i15:*i8
%b0:i15:i8* = getelementptr %l0:struct color* offset 4:i64
%b0:i16:i8 = load %b0:i15:i8*
%b0:i17:i32 = typecast %b0:i16:i8 to i32
%b0:i18:i32 = add %b0:i14:i32 %b0:i17:i32
j b2(%b0:i18:i32, 0:i32)