Files
cs420/examples/ir4/sizeof.ir
Jeehoon Kang ea9e6afcf8 Add tests
2020-06-09 14:45:11 +00:00

14 lines
199 B
Plaintext

fun i32 @main () {
init:
bid: b0
allocations:
block b0:
%b0:i0:u64 = typecast 4:i32 to u64
%b0:i1:u1 = cmp eq 4:u64 %b0:i0:u64
%b0:i2:i32 = typecast %b0:i1:u1 to i32
ret %b0:i2:i32
}