Updated hw6 to a newer version
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
9224001a22
commit
0c04936ccf
356 changed files with 8408 additions and 4725 deletions
13
hw6/llprograms/sp22_hw3/ltoatest.ll
Normal file
13
hw6/llprograms/sp22_hw3/ltoatest.ll
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
declare void @ll_puts(i8*)
|
||||
declare i8* @ll_ltoa(i64)
|
||||
declare i8* @ll_strcat(i8*, i8*)
|
||||
|
||||
@sum = global [6 x i8] c"Sum: \00"
|
||||
|
||||
define i64 @main(i64 %argc, i8** %argv) {
|
||||
%1 = add i64 5, 9
|
||||
%ps = call i8* @ll_ltoa(i64 %1)
|
||||
%p = call i8* @ll_strcat(i8* @sum, i8* %ps)
|
||||
call void @ll_puts(i8* %p)
|
||||
ret i64 0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue