Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
12
hw3/llprograms/opt_globals_test1.ll
Normal file
12
hw3/llprograms/opt_globals_test1.ll
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
@x = global i64 1
|
||||
@y = global i64 2
|
||||
|
||||
define i64 @program(i64 %argc, i8** %arcv) {
|
||||
%1 = load i64, i64* @x
|
||||
%2 = mul i64 %1, 7
|
||||
%3 = load i64, i64* @y
|
||||
%4 = add i64 %3, 1
|
||||
store i64 %4, i64* @y
|
||||
ret i64 %1
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue