Add complement example

This commit is contained in:
Minseong Jang
2022-03-25 14:40:59 +09:00
parent 448335dc39
commit c8813ac7a2
6 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
var i32 @nonce = 1
fun i32 @main () {
init:
bid: b0
allocations:
block b0:
%b0:i0:i32 = load @nonce:i32*
%b0:i1:i32 = xor %b0:i0:i32 -1:i32
ret %b0:i1:i32
}