mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Update tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user