mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update tests
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
struct color : { i32, i8 }
|
||||
struct color : { number:i32, name:i8 }
|
||||
|
||||
fun i32 @main () {
|
||||
init:
|
||||
bid: b0
|
||||
allocations:
|
||||
%l0:i32:temp
|
||||
%l1: struct color:c
|
||||
%l2:* struct color:cp
|
||||
%l1:struct color:c
|
||||
%l2:struct color*:cp
|
||||
%l3:i32:i
|
||||
%l4:i32:j
|
||||
%l5:u1:t0
|
||||
@@ -23,23 +23,23 @@ block b0:
|
||||
%b0:i8:u64 = add %b0:i7:u64 1:u64
|
||||
%b0:i9:i32 = typecast %b0:i8:u64 to i32
|
||||
%b0:i10:unit = nop
|
||||
%b0:i11:*i32 = getelementptr %l1:* struct color offset 0:i64
|
||||
%b0:i12:unit = store 1:i32 %b0:i11:*i32
|
||||
%b0:i13:*i8 = getelementptr %l1:* struct color offset 4:i64
|
||||
%b0:i11:i32* = getelementptr %l1:struct color* offset 0:i64
|
||||
%b0:i12:unit = store 1:i32 %b0:i11:i32*
|
||||
%b0:i13:i8* = getelementptr %l1:struct color* offset 4:i64
|
||||
%b0:i14:i8 = typecast 2:i32 to i8
|
||||
%b0:i15:unit = store %b0:i14:i8 %b0:i13:*i8
|
||||
%b0:i15:unit = store %b0:i14:i8 %b0:i13:i8*
|
||||
%b0:i16:unit = nop
|
||||
%b0:i17:*i8 = getelementptr %l1:* struct color offset 4:i64
|
||||
%b0:i18:i8 = load %b0:i17:*i8
|
||||
%b0:i17:i8* = getelementptr %l1:struct color* offset 4:i64
|
||||
%b0:i18:i8 = load %b0:i17:i8*
|
||||
%b0:i19:i32 = typecast %b0:i18:i8 to i32
|
||||
%b0:i20:i32 = add %b0:i9:i32 %b0:i19:i32
|
||||
%b0:i21:unit = nop
|
||||
%b0:i22: struct color = load %l1:* struct color
|
||||
%b0:i22:struct color = load %l1:struct color*
|
||||
%b0:i23:unit = nop
|
||||
%b0:i24:unit = nop
|
||||
%b0:i25:unit = nop
|
||||
%b0:i26:*i8 = getelementptr %l1:* struct color offset 4:i64
|
||||
%b0:i27:i8 = load %b0:i26:*i8
|
||||
%b0:i26:i8* = getelementptr %l1:struct color* offset 4:i64
|
||||
%b0:i27:i8 = load %b0:i26:i8*
|
||||
%b0:i28:i32 = typecast %b0:i27:i8 to i32
|
||||
%b0:i29:i32 = add %b0:i20:i32 %b0:i28:i32
|
||||
%b0:i30:unit = nop
|
||||
|
||||
Reference in New Issue
Block a user