Add all the assignment code.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 18:59:28 -08:00
parent 58c6b1f81c
commit cfe502c598
1277 changed files with 48709 additions and 1 deletions

View file

@ -0,0 +1,24 @@
define i64 @program(i64 %argc, i8** %arcv) {
%1 = alloca i64
%2 = add i64 5, 9
%3 = mul i64 3, 14
%4 = sub i64 42, 2
br label %bar
bar:
%sa = alloca i64
%sb = alloca i64
%sc = alloca i64
store i64 14, i64* %sa
store i64 42, i64* %sb
store i64 40, i64* %sb
br label %foo
foo:
%v1 = load i64, i64* %sa
%v2 = load i64, i64* %sa
%v3 = load i64, i64* %sa
%v4 = add i64 %v1, %v2
%res = add i64 %v4, %v3
store i64 %res, i64* %1
ret i64 %res
}